Interface VisualizationServer<V,E>

Type Parameters:
V - the vertex type
E - the edge type
All Known Implementing Classes:
BasicVisualizationServer, SatelliteVisualizationViewer, VisualizationImageServer, VisualizationViewer

public interface VisualizationServer<V,E>
  • Method Details

    • setDoubleBuffered

      void setDoubleBuffered(boolean doubleBuffered)
      Specify whether this class uses its offscreen image or not.
      Parameters:
      doubleBuffered - if true, then doubleBuffering in the superclass is set to 'false'
    • isDoubleBuffered

      boolean isDoubleBuffered()
      Returns whether this class uses double buffering. The superclass will be the opposite state.
      Returns:
      the double buffered state
    • getModel

      VisualizationModel<V,E> getModel()
      Returns:
      the model.
    • setModel

      void setModel(VisualizationModel<V,E> model)
      Parameters:
      model - the model for this class to use
    • stateChanged

      void stateChanged(ChangeEvent e)
      In response to changes from the model, repaint the view, then fire an event to any listeners. Examples of listeners are the GraphZoomScrollPane and the BirdsEyeVisualizationViewer
      Parameters:
      e - the change event
    • setRenderer

      void setRenderer(Renderer<V,E> r)
      Sets the showing Renderer to be the input Renderer. Also tells the Renderer to refer to this instance as a PickedKey. (Because Renderers maintain a small amount of state, such as the PickedKey, it is important to create a separate instance for each VV instance.)
      Parameters:
      r - the renderer to use
    • getRenderer

      Renderer<V,E> getRenderer()
      Returns:
      the renderer used by this instance.
    • setGraphLayout

      void setGraphLayout(Layout<V,E> layout)
      Replaces the current graph layout with layout.
      Parameters:
      layout - the new layout to set
    • getGraphLayout

      Layout<V,E> getGraphLayout()
      Returns:
      the current graph layout.
    • setVisible

      void setVisible(boolean aFlag)
      Makes the component visible if aFlag is true, or invisible if false.
      Parameters:
      aFlag - true iff the component should be visible
      See Also:
    • getRenderingHints

      Map<RenderingHints.Key,Object> getRenderingHints()
      Returns:
      the renderingHints
    • setRenderingHints

      void setRenderingHints(Map<RenderingHints.Key,Object> renderingHints)
      Parameters:
      renderingHints - The renderingHints to set.
    • addPreRenderPaintable

      void addPreRenderPaintable(VisualizationServer.Paintable paintable)
      Parameters:
      paintable - The paintable to add.
    • removePreRenderPaintable

      void removePreRenderPaintable(VisualizationServer.Paintable paintable)
      Parameters:
      paintable - The paintable to remove.
    • addPostRenderPaintable

      void addPostRenderPaintable(VisualizationServer.Paintable paintable)
      Parameters:
      paintable - The paintable to add.
    • removePostRenderPaintable

      void removePostRenderPaintable(VisualizationServer.Paintable paintable)
      Parameters:
      paintable - The paintable to remove.
    • addChangeListener

      void addChangeListener(ChangeListener l)
      Adds a ChangeListener.
      Parameters:
      l - the listener to be added
    • removeChangeListener

      void removeChangeListener(ChangeListener l)
      Removes a ChangeListener.
      Parameters:
      l - the listener to be removed
    • getChangeListeners

      ChangeListener[] getChangeListeners()
      Returns an array of all the ChangeListeners added with addChangeListener().
      Returns:
      all of the ChangeListeners added or an empty array if no listeners have been added
    • fireStateChanged

      void fireStateChanged()
      Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created.
      See Also:
    • getPickedVertexState

      PickedState<V> getPickedVertexState()
      Returns:
      the vertex PickedState instance
    • getPickedEdgeState

      PickedState<E> getPickedEdgeState()
      Returns:
      the edge PickedState instance
    • setPickedVertexState

      void setPickedVertexState(PickedState<V> pickedVertexState)
    • setPickedEdgeState

      void setPickedEdgeState(PickedState<E> pickedEdgeState)
    • getPickSupport

      GraphElementAccessor<V,E> getPickSupport()
      Returns:
      the GraphElementAccessor
    • setPickSupport

      void setPickSupport(GraphElementAccessor<V,E> pickSupport)
      Parameters:
      pickSupport - The pickSupport to set.
    • getCenter

      Point2D getCenter()
    • getRenderContext

      RenderContext<V,E> getRenderContext()
    • setRenderContext

      void setRenderContext(RenderContext<V,E> renderContext)
    • repaint

      void repaint()