V
- the vertex typeE
- the edge typepublic interface VisualizationServer<V,E>
Modifier and Type | Interface and Description |
---|---|
static interface |
VisualizationServer.Paintable
an interface for the preRender and postRender
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a
ChangeListener . |
void |
addPostRenderPaintable(VisualizationServer.Paintable paintable) |
void |
addPreRenderPaintable(VisualizationServer.Paintable paintable) |
void |
fireStateChanged()
Notifies all listeners that have registered interest for
notification on this event type.
|
Point2D |
getCenter() |
ChangeListener[] |
getChangeListeners()
Returns an array of all the
ChangeListener s added
with addChangeListener(). |
Layout<V,E> |
getGraphLayout() |
VisualizationModel<V,E> |
getModel() |
PickedState<E> |
getPickedEdgeState() |
PickedState<V> |
getPickedVertexState() |
GraphElementAccessor<V,E> |
getPickSupport() |
RenderContext<V,E> |
getRenderContext() |
Renderer<V,E> |
getRenderer() |
Map<RenderingHints.Key,Object> |
getRenderingHints() |
boolean |
isDoubleBuffered()
Returns whether this class uses double buffering.
|
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener.
|
void |
removePostRenderPaintable(VisualizationServer.Paintable paintable) |
void |
removePreRenderPaintable(VisualizationServer.Paintable paintable) |
void |
repaint() |
void |
setDoubleBuffered(boolean doubleBuffered)
Specify whether this class uses its offscreen image or not.
|
void |
setGraphLayout(Layout<V,E> layout)
Replaces the current graph layout with
layout . |
void |
setModel(VisualizationModel<V,E> model) |
void |
setPickedEdgeState(PickedState<E> pickedEdgeState) |
void |
setPickedVertexState(PickedState<V> pickedVertexState) |
void |
setPickSupport(GraphElementAccessor<V,E> pickSupport) |
void |
setRenderContext(RenderContext<V,E> renderContext) |
void |
setRenderer(Renderer<V,E> r)
Sets the showing Renderer to be the input Renderer.
|
void |
setRenderingHints(Map<RenderingHints.Key,Object> renderingHints) |
void |
setVisible(boolean aFlag)
Makes the component visible if
aFlag is true, or invisible if false. |
void |
stateChanged(ChangeEvent e)
In response to changes from the model, repaint the
view, then fire an event to any listeners.
|
void setDoubleBuffered(boolean doubleBuffered)
doubleBuffered
- if true, then doubleBuffering in the superclass is set to 'false'boolean isDoubleBuffered()
VisualizationModel<V,E> getModel()
void setModel(VisualizationModel<V,E> model)
model
- the model for this class to usevoid stateChanged(ChangeEvent e)
e
- the change eventvoid setRenderer(Renderer<V,E> r)
r
- the renderer to usevoid setGraphLayout(Layout<V,E> layout)
layout
.layout
- the new layout to setvoid setVisible(boolean aFlag)
aFlag
is true, or invisible if false.aFlag
- true iff the component should be visibleJComponent.setVisible(boolean)
Map<RenderingHints.Key,Object> getRenderingHints()
void setRenderingHints(Map<RenderingHints.Key,Object> renderingHints)
renderingHints
- The renderingHints to set.void addPreRenderPaintable(VisualizationServer.Paintable paintable)
paintable
- The paintable to add.void removePreRenderPaintable(VisualizationServer.Paintable paintable)
paintable
- The paintable to remove.void addPostRenderPaintable(VisualizationServer.Paintable paintable)
paintable
- The paintable to add.void removePostRenderPaintable(VisualizationServer.Paintable paintable)
paintable
- The paintable to remove.void addChangeListener(ChangeListener l)
ChangeListener
.l
- the listener to be addedvoid removeChangeListener(ChangeListener l)
l
- the listener to be removedChangeListener[] getChangeListeners()
ChangeListener
s added
with addChangeListener().ChangeListener
s added or an empty
array if no listeners have been addedvoid fireStateChanged()
EventListenerList
PickedState<V> getPickedVertexState()
PickedState<E> getPickedEdgeState()
void setPickedVertexState(PickedState<V> pickedVertexState)
void setPickedEdgeState(PickedState<E> pickedEdgeState)
GraphElementAccessor<V,E> getPickSupport()
void setPickSupport(GraphElementAccessor<V,E> pickSupport)
pickSupport
- The pickSupport to set.Point2D getCenter()
RenderContext<V,E> getRenderContext()
void setRenderContext(RenderContext<V,E> renderContext)
void repaint()
Copyright © 2015. All rights reserved.