use of limelight.ui.MockGraphics in project limelight by slagyr.
the class TextPanelTextPainterTest method setUp.
@Before
public void setUp() {
assumeTrue(TestUtil.notHeadless());
container = new limelight.ui.model.text.MockTextContainer();
container.bounds = new Box(0, 0, 150, 50);
model = new limelight.ui.model.text.MultiLineTextModel(container);
model.setTypedLayoutFactory(MockTypedLayoutFactory.instance);
model.setText("Some Text");
model.setCaretLocation(TextLocation.at(0, 4));
graphics = new MockGraphics();
container.cursorOn = true;
painter = TextPanelTextPainter.instance;
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class RepeatFillStrategyValueTest method setUp.
public void setUp() throws Exception {
attribute = new RepeatFillStrategyValue();
graphics = new MockGraphics();
clip = new Box(0, 0, 60, 60);
graphics.clip = clip;
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class RepeatXFillStrategyValueTest method setUp.
public void setUp() throws Exception {
attribute = new RepeatXFillStrategyValue();
graphics = new MockGraphics();
clip = new Box(0, 0, 60, 60);
graphics.clip = clip;
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class ScaleYFillStrategyValueTest method setUp.
public void setUp() throws Exception {
attribute = new ScaleYFillStrategyValue();
graphics = new MockGraphics();
clip = new Box(0, 0, 60, 60);
graphics.clip = clip;
}
use of limelight.ui.MockGraphics in project limelight by slagyr.
the class StaticFillStrategyValueTest method setUp.
public void setUp() throws Exception {
attribute = new StaticFillStrategyValue();
graphics = new MockGraphics();
clip = new Box(0, 0, 60, 60);
graphics.clip = clip;
}
Aggregations