Class ViewPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.graphstream.ui.view.View
Direct Known Subclasses:
DefaultView

public abstract class ViewPanel extends JPanel implements org.graphstream.ui.view.View
A view on a graphic graph. Basically a view is a Swing panel where a GraphRenderer renders the graphic graph. If you are in the Swing thread, you can change the view on the graphic graph using methods to translate, zoom and rotate the view.
See Also:
  • Constructor Details

    • ViewPanel

      public ViewPanel(String identifier)
      New view.
      Parameters:
      identifier - The view unique identifier.
  • Method Details

    • getIdView

      public String getIdView()
      Specified by:
      getIdView in interface org.graphstream.ui.view.View
    • resizeFrame

      public abstract void resizeFrame(int width, int height)
      Set the size of the view frame, if any. If this view has been open in a frame, this changes the size of the frame containing it.
      Parameters:
      width - The new width.
      height - The new height.
    • enableMouseOptions

      public abstract void enableMouseOptions()
      Specified by:
      enableMouseOptions in interface org.graphstream.ui.view.View