Class ZoomFitChangeComponent

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.zoomfit.ZoomFitChangeComponent
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants, GraffitiComponent, ViewListener, ZoomListener, SelectionListener, SessionListener

public class ZoomFitChangeComponent
extends JToolBar
implements GraffitiComponent, ActionListener, ViewListener, SessionListener, SelectionListener, ZoomListener
Author:
Christian Klukas
See Also:
Serialized Form
  • Constructor Details

    • ZoomFitChangeComponent

      public ZoomFitChangeComponent​(String prefComp)
  • Method Details

    • zoomIn

      public static void zoomIn()
    • zoomOut

      public static void zoomOut()
    • zoomRegion

      public static void zoomRegion​(boolean smooth)
    • zoomRegion

      public static void zoomRegion​(boolean smooth, Zoomable view)
    • zoomRegion

      public static void zoomRegion​(boolean smooth, Zoomable view, Collection<GraphElement> elements)
    • zoomRegion

      public static void zoomRegion​(boolean smooth, Zoomable view, Collection<GraphElement> elements, int zoomIntoValue)
    • actionPerformed

      public void actionPerformed​(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • zoomToPoint

      public static void zoomToPoint​(Zoomable myView, Point coords, double zoomFactor)
    • sessionChanged

      public void sessionChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the session changes.
      Specified by:
      sessionChanged in interface SessionListener
      Parameters:
      s - the new Session.
    • sessionDataChanged

      public void sessionDataChanged​(Session s)
      Description copied from interface: SessionListener
      This method is called when the data (except the graph data) are changed.
      Specified by:
      sessionDataChanged in interface SessionListener
    • viewChanged

      public void viewChanged​(View newView)
      Description copied from interface: ViewListener
      This method is called when the view changes. This method is not called when another session is activated. Implement SessionListener if you are interested in session changed events.
      Specified by:
      viewChanged in interface ViewListener
      Parameters:
      newView - the new View.
    • selectionChanged

      public void selectionChanged​(SelectionEvent e)
      Description copied from interface: SelectionListener
      Is called, if something in the selection model changed.
      Specified by:
      selectionChanged in interface SelectionListener
    • selectionListChanged

      public void selectionListChanged​(SelectionEvent e)
      Description copied from interface: SelectionListener
      Is called, if a named selection is added or removed.
      Specified by:
      selectionListChanged in interface SelectionListener
    • getPreferredComponent

      public String getPreferredComponent()
      Description copied from interface: GraffitiComponent
      Returns the id of the component this component should be placed in.
      Specified by:
      getPreferredComponent in interface GraffitiComponent
      Returns:
      the id of the component this component should be placed in.
    • zoomChanged

      public void zoomChanged​(AffineTransform newZoom)
      Description copied from interface: ZoomListener
      Indicates that a zoom value has changed.
      Specified by:
      zoomChanged in interface ZoomListener