Search in sources :

Example 36 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method release.

public static void release(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseReleasedEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 37 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method wheel.

public static void wheel(PropProxy prop, int scrollAmount, int x, int y, int modifiers, int clickCount, int scrollType, int wheelRotation) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseWheelEvent(modifiers, location, clickCount, scrollType, scrollAmount, wheelRotation).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 38 with Panel

use of limelight.ui.Panel 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

Panel (limelight.ui.Panel)38 Test (org.junit.Test)13 MockPanel (limelight.ui.MockPanel)12 PropPanel (limelight.ui.model.PropPanel)9 BufferedImage (java.awt.image.BufferedImage)4 java.util (java.util)2 MockChangeablePanel (limelight.ui.model.MockChangeablePanel)2 InputPanel (limelight.ui.model.inputs.InputPanel)2 ScrollBarPanel (limelight.ui.model.inputs.ScrollBarPanel)2 Box (limelight.util.Box)2 Before (org.junit.Before)2 LinkedList (java.util.LinkedList)1 FakeProduction (limelight.model.FakeProduction)1 FakePlayerRecruiter (limelight.model.api.FakePlayerRecruiter)1 IntegerAttributeCompiler (limelight.styles.compiling.IntegerAttributeCompiler)1 SimpleIntegerValue (limelight.styles.values.SimpleIntegerValue)1 BufferedImagePool (limelight.ui.BufferedImagePool)1 limelight.ui.events.panel (limelight.ui.events.panel)1 PanelEvent (limelight.ui.events.panel.PanelEvent)1 TextLocation (limelight.ui.text.TextLocation)1