Search in sources :

Example 1 with MockTextModel

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;
}
Also used : MockGraphics(limelight.ui.MockGraphics) Box(limelight.util.Box) MockTextModel(limelight.ui.model.inputs.MockTextModel) Before(org.junit.Before)

Aggregations

MockGraphics (limelight.ui.MockGraphics)1 MockTextModel (limelight.ui.model.inputs.MockTextModel)1 Box (limelight.util.Box)1 Before (org.junit.Before)1