Search in sources :

Example 16 with MockGraphics

use of limelight.ui.MockGraphics in project limelight by slagyr.

the class TextPanelTextPainterTest method setUp.

@Before
public void setUp() {
    assumeTrue(TestUtil.notHeadless());
    container = new limelight.ui.model.text.MockTextContainer();
    container.bounds = new Box(0, 0, 150, 50);
    model = new limelight.ui.model.text.MultiLineTextModel(container);
    model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
    model.setText("Some Text");
    model.setCaretLocation(TextLocation.at(0, 4));
    graphics = new MockGraphics();
    container.cursorOn = true;
    painter = TextPanelTextPainter.instance;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box) Before(org.junit.Before)

Example 17 with MockGraphics

use of limelight.ui.MockGraphics in project limelight by slagyr.

the class RepeatFillStrategyValueTest method setUp.

public void setUp() throws Exception {
    attribute = new RepeatFillStrategyValue();
    graphics = new MockGraphics();
    clip = new Box(0, 0, 60, 60);
    graphics.clip = clip;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box)

Example 18 with MockGraphics

use of limelight.ui.MockGraphics in project limelight by slagyr.

the class RepeatXFillStrategyValueTest method setUp.

public void setUp() throws Exception {
    attribute = new RepeatXFillStrategyValue();
    graphics = new MockGraphics();
    clip = new Box(0, 0, 60, 60);
    graphics.clip = clip;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box)

Example 19 with MockGraphics

use of limelight.ui.MockGraphics in project limelight by slagyr.

the class ScaleYFillStrategyValueTest method setUp.

public void setUp() throws Exception {
    attribute = new ScaleYFillStrategyValue();
    graphics = new MockGraphics();
    clip = new Box(0, 0, 60, 60);
    graphics.clip = clip;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box)

Example 20 with MockGraphics

use of limelight.ui.MockGraphics in project limelight by slagyr.

the class StaticFillStrategyValueTest method setUp.

public void setUp() throws Exception {
    attribute = new StaticFillStrategyValue();
    graphics = new MockGraphics();
    clip = new Box(0, 0, 60, 60);
    graphics.clip = clip;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box)

Aggregations

MockGraphics (limelight.ui.MockGraphics)24 Box (limelight.util.Box)11 Test (org.junit.Test)6 Before (org.junit.Before)5 FakePropProxy (limelight.model.api.FakePropProxy)3 MockProp (limelight.ui.model.MockProp)3 PropPanel (limelight.ui.model.PropPanel)3 FakeScene (limelight.ui.model.FakeScene)2 MockStage (limelight.ui.model.MockStage)2 ScrollBarPanel (limelight.ui.model.inputs.ScrollBarPanel)2 Pen (limelight.ui.Pen)1 MockDrawable (limelight.ui.model.MockDrawable)1 MockTextModel (limelight.ui.model.inputs.MockTextModel)1 TextBoxPanel (limelight.ui.model.inputs.TextBoxPanel)1