use of limelight.ui.model.inputs.MockTextModel 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