use of limelight.ui.MockGraphics in project limelight by slagyr.
the class TextAreaPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextAreaPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
root = new FakeScene();
root.add(parent);
root.setStage(new MockStage());
graphics = new MockGraphics();
model = panel.getModel();
model.setText("Some Text");
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class TextBoxPanelTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
panel = new TextBoxPanel();
parent = new PropPanel(new FakePropProxy());
parent.add(panel);
graphics = new MockGraphics();
model = panel.getModel();
model.setText("Some Text");
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class ScrollBarPainterTest method setUpHorizontally.
private void setUpHorizontally() {
scrollBar = new ScrollBarPanel(ScrollBarPanel.HORIZONTAL);
scrollBar.setSize(100, 15);
scrollBar.setValue(0);
scrollBar.configure(1, 100);
graphics = new MockGraphics();
images = ScrollBarPainter.horizontalImages;
}
use of limelight.ui.MockGraphics 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");
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class TextPanelCaretPainterTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
container = new limelight.ui.model.text.MockTextContainer();
container.bounds = new Box(0, 0, 150, 20);
model = new MockTextModel(container);
model.setText("Some Text");
model.setCaretLocation(TextLocation.at(0, 4));
graphics = new MockGraphics();
container.cursorOn = true;
painter = TextPanelCaretPainter.instance;
}
Aggregations