Search in sources :

Example 1 with MockDrawable

use of limelight.ui.model.MockDrawable in project limelight by slagyr.

the class TextPanelBorderPainterTest method setUp.

@Before
public void setUp() throws Exception {
    FakeScene root = new FakeScene();
    parent = new PropPanel(new FakePropProxy());
    root.add(parent);
    stage = new MockStage();
    root.setStage(stage);
    panel = new TextBoxPanel();
    parent.add(panel);
    graphics = new MockGraphics();
    TextPanelBorderPainter.normalBorder = normalDrawable = new MockDrawable();
    TextPanelBorderPainter.focusedBorder = focusDrawable = new MockDrawable();
    painter = TextPanelBorderPainter.instance;
    parent.getStyle().setBorderColor("transparent");
}
Also used : PropPanel(limelight.ui.model.PropPanel) MockGraphics(limelight.ui.MockGraphics) TextBoxPanel(limelight.ui.model.inputs.TextBoxPanel) MockDrawable(limelight.ui.model.MockDrawable) FakeScene(limelight.ui.model.FakeScene) MockStage(limelight.ui.model.MockStage) FakePropProxy(limelight.model.api.FakePropProxy)

Aggregations

FakePropProxy (limelight.model.api.FakePropProxy)1 MockGraphics (limelight.ui.MockGraphics)1 FakeScene (limelight.ui.model.FakeScene)1 MockDrawable (limelight.ui.model.MockDrawable)1 MockStage (limelight.ui.model.MockStage)1 PropPanel (limelight.ui.model.PropPanel)1 TextBoxPanel (limelight.ui.model.inputs.TextBoxPanel)1