Search in sources :

Example 1 with MockChangeablePanel

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

the class StyleAttributeTest method setUp.

@Before
public void setUp() throws Exception {
    panel = new MockChangeablePanel();
    attribute = new StyleAttribute("NAME", new IntegerAttributeCompiler(), new SimpleIntegerValue(50));
    Context.instance().bufferedImageCache = new SimpleCache<Panel, BufferedImage>();
}
Also used : MockChangeablePanel(limelight.ui.model.MockChangeablePanel) Panel(limelight.ui.Panel) MockChangeablePanel(limelight.ui.model.MockChangeablePanel) SimpleIntegerValue(limelight.styles.values.SimpleIntegerValue) IntegerAttributeCompiler(limelight.styles.compiling.IntegerAttributeCompiler) BufferedImage(java.awt.image.BufferedImage) Before(org.junit.Before)

Example 2 with MockChangeablePanel

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

the class AbstractStyleAttributeTestBase method setUpPanel.

public void setUpPanel() throws Exception {
    panel = new MockChangeablePanel();
    cache = new SimpleCache<Panel, BufferedImage>();
    Context.instance().bufferedImageCache = cache;
    cache.cache(panel, new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));
}
Also used : MockChangeablePanel(limelight.ui.model.MockChangeablePanel) Panel(limelight.ui.Panel) MockChangeablePanel(limelight.ui.model.MockChangeablePanel) BufferedImage(java.awt.image.BufferedImage)

Aggregations

BufferedImage (java.awt.image.BufferedImage)2 Panel (limelight.ui.Panel)2 MockChangeablePanel (limelight.ui.model.MockChangeablePanel)2 IntegerAttributeCompiler (limelight.styles.compiling.IntegerAttributeCompiler)1 SimpleIntegerValue (limelight.styles.values.SimpleIntegerValue)1 Before (org.junit.Before)1