Class AbstractDrawableGraph2d<V,E>
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.graphs.AbstractDrawableGraph2d<V,E>
- All Implemented Interfaces:
IDrawableGraph2d<V,,E> IGLRenderer,ISortableDraw
- Direct Known Subclasses:
DefaultDrawableGraph2d
public abstract class AbstractDrawableGraph2d<V,E>
extends Drawable
implements IDrawableGraph2d<V,E>
An implementation based on
}
Pickable objects should register mapping between vertex model
and vertex representation through invalid input: '{@link PickSupport.registerPickableObject(IPickable pickable, V
v)'}
Registration should be done by overriding setGraphModel.
One can later listen to picking events through:
invalid @link
{@link PickSupport.addVertexPickListener(IVertexPickListener<V> listener)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IGraphFormatter<V,E> protected Coord3dprotected Coord2dprotected IGraphLayout2d<V>protected TextRendererprotected static floatFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCall OpenGL2 routines for rendering the object.protected abstract voidprotected abstract voiddrawVertexLabels(IPainter painter) protected abstract voiddrawVertices(IPainter painter) booleanbooleanvoidsetGraphFormatter(IGraphFormatter<V, E> formatter) voidsetGraphLayout(IGraphLayout2d<V> layout) voidsetGraphModel(IGraph<V, E> graph) voidsetGraphModel(IGraph<V, E> graph, PickingSupport picking) voidsetLabelSceneOffset(Coord3d labelSceneOffset) voidsetLabelScreenOffset(Coord2d labelOffset) voidsetVertexHighlighted(V v, boolean nodeDisplayed) Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, applyGeometryTransform, asWireframeable, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, updateBounds
-
Field Details
-
highlights
-
graph
-
formatter
-
layout
-
labelScreenOffset
-
labelSceneOffset
-
Z
protected static float Z -
txt
-
-
Constructor Details
-
AbstractDrawableGraph2d
public AbstractDrawableGraph2d()
-
-
Method Details
-
getGraphFormatter
- Specified by:
getGraphFormatterin interfaceIDrawableGraph2d<V,E>
-
getGraphLayout
- Specified by:
getGraphLayoutin interfaceIDrawableGraph2d<V,E>
-
getGraphModel
- Specified by:
getGraphModelin interfaceIDrawableGraph2d<V,E>
-
setGraphFormatter
- Specified by:
setGraphFormatterin interfaceIDrawableGraph2d<V,E>
-
setGraphLayout
- Specified by:
setGraphLayoutin interfaceIDrawableGraph2d<V,E>
-
setGraphModel
- Specified by:
setGraphModelin interfaceIDrawableGraph2d<V,E>
-
setGraphModel
- Specified by:
setGraphModelin interfaceIDrawableGraph2d<V,E>
-
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
drawVertices
-
drawVertexLabels
-
drawEdges
-
getLabelScreenOffset
-
setLabelScreenOffset
-
getLabelSceneOffset
-
setLabelSceneOffset
-
isEdgeHighlighted
- Specified by:
isEdgeHighlightedin interfaceIDrawableGraph2d<V,E>
-
isVertexHighlighted
- Specified by:
isVertexHighlightedin interfaceIDrawableGraph2d<V,E>
-
setVertexHighlighted
- Specified by:
setVertexHighlightedin interfaceIDrawableGraph2d<V,E>
-
clearHighlighted
public void clearHighlighted()- Specified by:
clearHighlightedin interfaceIDrawableGraph2d<V,E>
-