Package limelight.ui

Examples of limelight.ui.Panel


  public void mouseDragged(MouseEvent e)
  {
    if(getRoot() == null)
      return;

    Panel panel = panelFor(e.getPoint());
    if(panel != hooveredPanel)
      transition(panel, e);
    if(pressedPanel != null)
    {
      new MouseDraggedEvent(e.getModifiers(), e.getPoint(), e.getClickCount()).dispatch(pressedPanel);
View Full Code Here


  public void mouseMoved(MouseEvent e)
  {
    if(getRoot() == null)
      return;

    Panel panel = panelFor(e.getPoint());
    if(panel != hooveredPanel)
      transition(panel, e);
    new MouseMovedEvent(e.getModifiers(), e.getPoint(), e.getClickCount()).dispatch(panel);
  }
View Full Code Here

  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);
  }
View Full Code Here

      exit(hooveredPanel, panel, e);
    else if(panel.isDescendantOf(hooveredPanel))
      enter(panel, hooveredPanel, e);
    else
    {
      Panel ancestor = hooveredPanel.getClosestCommonAncestor(panel);
      exit(hooveredPanel, ancestor, e);
      enter(panel, ancestor, e);
    }
    hooveredPanel = panel;
  }
View Full Code Here

  public void focusOn(Panel panel)
  {
    if(panel == null || panel == focusedPanel)
      return;

    Panel previouslyFocusPanel = focusedPanel;
    focusedPanel = panel;

    if(previouslyFocusPanel != null)
      new FocusLostEvent().dispatch(previouslyFocusPanel);
View Full Code Here

    return parent != null && (parent == panel || parent.isDescendantOf(panel));
  }

  public Panel getClosestCommonAncestor(Panel panel)
  {
    Panel ancestor = getParent();
    while(ancestor != null && !panel.isDescendantOf(ancestor))
      ancestor = ancestor.getParent();

    return ancestor;
  }
View Full Code Here

  }

  public static void press(PropProxy prop, int x, int y, int modifiers, int click_count)
  {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MousePressedEvent(modifiers, location, click_count).dispatch(owner);
  }
View Full Code Here

  }

  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);
  }
View Full Code Here

  }

  public static void click(PropProxy prop, int x, int y, int modifiers, int click_count)
  {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseClickedEvent(modifiers, location, click_count).dispatch(owner);
  }
View Full Code Here

  }

  public static void move(PropProxy prop, int x, int y, int modifiers, int click_count)
  {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseMovedEvent(modifiers, location, click_count).dispatch(owner);
  }
View Full Code Here

TOP

Related Classes of limelight.ui.Panel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.