use of limelight.ui.Panel in project limelight by slagyr.
the class StageMouseListener method mouseWheelMoved.
public void mouseWheelMoved(MouseWheelEvent e) {
if (getRoot() == null)
return;
final Panel panel = panelFor(e.getPoint());
new limelight.ui.events.panel.MouseWheelEvent(e.getModifiers(), e.getPoint(), e.getClickCount(), e.getScrollType(), e.getScrollAmount(), e.getWheelRotation()).dispatch(panel);
}
use of limelight.ui.Panel in project limelight by slagyr.
the class StageMouseListener method mouseReleased.
public void mouseReleased(MouseEvent e) {
if (getRoot() == null)
return;
Panel releasedPanel = panelFor(e.getPoint());
new MouseReleasedEvent(e.getModifiers(), e.getPoint(), e.getClickCount()).dispatch(releasedPanel);
if (releasedPanel == pressedPanel) {
new MouseClickedEvent(e.getModifiers(), e.getPoint(), e.getClickCount()).dispatch(releasedPanel);
}
}
use of limelight.ui.Panel in project limelight by slagyr.
the class PaintJob method paintChildren.
public void paintChildren(ParentPanelBase panel, Graphics2D graphics) {
if (panel.hasChildren()) {
Box innards = panel instanceof PropPanel ? ((PropPanel) panel).getPaddedBounds() : panel.getChildConsumableBounds();
graphics.clipRect(innards.x, innards.y, innards.width, innards.height);
for (Panel child : panel.getChildren()) if (!child.isFloater())
paintChild(graphics, child);
for (Panel child : panel.getChildren()) if (child.isFloater())
paintChild(graphics, child);
}
}
use of limelight.ui.Panel in project limelight by slagyr.
the class PanelIterator method next.
public Panel next() {
Panel value = next;
next = null;
if (value != null) {
Iterator<Panel> iterator = findNextValidIterator();
if (iterator != null) {
next = iterator.next();
if (next instanceof ParentPanelBase) {
final ParentPanelBase nextParent = (ParentPanelBase) next;
if (nextParent.hasChildren())
iterators.push(nextParent.getChildren().iterator());
}
}
}
return value;
}
use of limelight.ui.Panel 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>();
}
Aggregations