Class SatelliteUI

java.lang.Object
javax.swing.plaf.ComponentUI
org.jdesktop.jxlayer.plaf.LayerUI<V>
org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>
net.hironico.minisql.ui.visualdb.SatelliteUI
All Implemented Interfaces:
ComponentListener, Serializable, EventListener, org.netbeans.api.visual.widget.Scene.SceneListener

public class SatelliteUI extends org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent> implements org.netbeans.api.visual.widget.Scene.SceneListener, ComponentListener
Cette classe est utile pour remplacer le SatelliteComponent de la VisualLibrary de netbeans. On va en faire une UI pour le framework JXLayer de telle sorte à décorer par exemple le JScrollPane d'affichage de la scène de la visual library pour affiher le satellite par dessus. L'affichage est conditionné à la porperty satelliteVisible dont le changement déclenche le repaint.
Since:
2.1.0
Author:
hironico
See Also:
  • Field Details

    • graphScene

      protected org.netbeans.api.visual.vmd.VMDGraphScene graphScene
    • satelliteVisible

      protected boolean satelliteVisible
    • size

      protected Dimension size
    • location

      protected Point location
  • Constructor Details

  • Method Details

    • addNotify

      public void addNotify()
    • removeNotify

      public void removeNotify()
    • isSatelliteVisible

      public boolean isSatelliteVisible()
    • setSatellitevisible

      public void setSatellitevisible(boolean satelliteVisible)
    • paintLayer

      protected void paintLayer(Graphics2D g, org.jdesktop.jxlayer.JXLayer<? extends JComponent> layer)
      Overrides:
      paintLayer in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>
    • processMouseEvent

      public void processMouseEvent(MouseEvent e, org.jdesktop.jxlayer.JXLayer<? extends JComponent> layer)
      Overrides:
      processMouseEvent in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>
    • processMouseMotionEvent

      public void processMouseMotionEvent(MouseEvent e, org.jdesktop.jxlayer.JXLayer<? extends JComponent> layer)
      Overrides:
      processMouseMotionEvent in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<JComponent>
    • sceneRepaint

      public void sceneRepaint()
      Specified by:
      sceneRepaint in interface org.netbeans.api.visual.widget.Scene.SceneListener
    • sceneValidating

      public void sceneValidating()
      Specified by:
      sceneValidating in interface org.netbeans.api.visual.widget.Scene.SceneListener
    • sceneValidated

      public void sceneValidated()
      Specified by:
      sceneValidated in interface org.netbeans.api.visual.widget.Scene.SceneListener
    • componentResized

      public void componentResized(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Specified by:
      componentShown in interface ComponentListener
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener