Search in sources :

Example 6 with MockGraphics

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

the class BorderPainterTest method setUp.

public void setUp() throws Exception {
    panel = new MockProp();
    style = panel.getStyle();
    border = new Box(5, 5, 100, 100);
    panel.boxInsideMargins = border;
    painter = BorderPainter.instance;
    graphics = new MockGraphics();
}
Also used : MockGraphics(limelight.ui.MockGraphics) MockProp(limelight.ui.model.MockProp) Box(limelight.util.Box)

Example 7 with MockGraphics

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

the class RepeatYFillStrategyValueTest method setUp.

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

Example 8 with MockGraphics

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

the class ScaleFillStrategyValueTest method setUp.

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

Example 9 with MockGraphics

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

the class ScaleXFillStrategyValueTest method setUp.

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

Example 10 with MockGraphics

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

the class PenTest method setUp.

public void setUp() throws Exception {
    graphics = new MockGraphics();
    pen = new Pen(graphics);
}
Also used : MockGraphics(limelight.ui.MockGraphics) Pen(limelight.ui.Pen)

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