Package org.jungrapht.visualization
Interface RenderContext<V,E>
-
- Type Parameters:
V
- vertex typeE
- edge type
- All Superinterfaces:
RenderContextStateChange.Producer
- All Known Implementing Classes:
DefaultRenderContext
public interface RenderContext<V,E> extends RenderContextStateChange.Producer
Holds theFunction
s and state for rendering a graph- Author:
- Tom Nelson
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RenderContext.DirectedEdgeArrowPredicate
static class
RenderContext.UndirectedEdgeArrowPredicate
-
Field Summary
Fields Modifier and Type Field Description static float[]
dashing
static float[]
dotting
static int
LABEL_OFFSET
Specifies the offset for the edge labels.
-
Method Summary
-
Methods inherited from interface org.jungrapht.visualization.RenderContextStateChange.Producer
getRenderContextStateChangeSupport
-
-
-
-
Field Detail
-
dotting
static final float[] dotting
-
dashing
static final float[] dashing
-
LABEL_OFFSET
static final int LABEL_OFFSET
Specifies the offset for the edge labels.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabelOffset
int getLabelOffset()
-
setLabelOffset
void setLabelOffset(int labelOffset)
-
getArrowPlacementTolerance
float getArrowPlacementTolerance()
-
setArrowPlacementTolerance
void setArrowPlacementTolerance(float arrow_placement_tolerance)
-
getEdgeArrow
Shape getEdgeArrow()
-
setEdgeArrow
void setEdgeArrow(Shape shape)
-
renderEdgeArrow
boolean renderEdgeArrow()
-
setRenderEdgeArrow
void setRenderEdgeArrow(boolean render)
-
setupArrows
void setupArrows(boolean directed)
-
setArrowsOnUndirectedEdges
void setArrowsOnUndirectedEdges(boolean setArrowsOnUndirectedEdges)
-
getArrowsOnUndirectedEdges
boolean getArrowsOnUndirectedEdges()
-
getEdgeLabelCloseness
float getEdgeLabelCloseness()
-
setEdgeLabelCloseness
void setEdgeLabelCloseness(float closeness)
-
getEdgeLabelRenderer
EdgeLabelRenderer getEdgeLabelRenderer()
-
setEdgeLabelRenderer
void setEdgeLabelRenderer(EdgeLabelRenderer edgeLabelRenderer)
-
setArrowDrawPaintFunction
void setArrowDrawPaintFunction(Function<E,Paint> arrowDrawPaintFunction)
-
setArrowFillPaintFunction
void setArrowFillPaintFunction(Function<E,Paint> arrowFillPaintFunction)
-
getEdgeShapeFunction
BiFunction<org.jgrapht.Graph<V,E>,E,Shape> getEdgeShapeFunction()
-
getUnarticulatedEdgeShapeFunction
default BiFunction<org.jgrapht.Graph<V,E>,E,Shape> getUnarticulatedEdgeShapeFunction()
-
setEdgeShapeFunction
void setEdgeShapeFunction(BiFunction<org.jgrapht.Graph<V,E>,E,Shape> edgeShapeFunction)
-
setEdgeWidth
void setEdgeWidth(float edgeWidth)
-
getEdgeWidth
float getEdgeWidth()
-
setEdgeArrowWidth
void setEdgeArrowWidth(int edgeArrowWidth)
-
getEdgeArrowWidth
int getEdgeArrowWidth()
-
setEdgeArrowLength
void setEdgeArrowLength(int edgeArrowLength)
-
getEdgeArrowLength
int getEdgeArrowLength()
-
setEdgeArrowStrokeFunction
void setEdgeArrowStrokeFunction(Function<E,Stroke> edgeArrowStrokeFunction)
-
getGraphicsContext
GraphicsDecorator getGraphicsContext()
-
setGraphicsContext
void setGraphicsContext(GraphicsDecorator graphicsContext)
-
getParallelEdgeIndexFunction
EdgeIndexFunction<V,E> getParallelEdgeIndexFunction()
-
setParallelEdgeIndexFunction
void setParallelEdgeIndexFunction(EdgeIndexFunction<V,E> parallelEdgeIndexFunction)
-
getSelectedEdgeState
MutableSelectedState<E> getSelectedEdgeState()
-
setSelectedEdgeState
void setSelectedEdgeState(MutableSelectedState<E> selectedEdgeState)
-
getSelectedVertexState
MutableSelectedState<V> getSelectedVertexState()
-
setSelectedVertexState
void setSelectedVertexState(MutableSelectedState<V> selectedVertexState)
-
getRendererPane
CellRendererPane getRendererPane()
-
setRendererPane
void setRendererPane(CellRendererPane rendererPane)
-
getScreenDevice
JComponent getScreenDevice()
-
setScreenDevice
void setScreenDevice(JComponent screenDevice)
-
getVertexLabelRenderer
VertexLabelRenderer getVertexLabelRenderer()
-
setVertexLabelRenderer
void setVertexLabelRenderer(VertexLabelRenderer vertexLabelRenderer)
-
setVertexFillPaintFunction
void setVertexFillPaintFunction(Function<V,Paint> vertexFillPaintFunction)
-
setVertexDrawPaintFunction
void setVertexDrawPaintFunction(Function<V,Paint> vertexDrawPaintFunction)
-
setVertexLabelDrawPaintFunction
void setVertexLabelDrawPaintFunction(Function<V,Paint> vertexLabelDrawPaintFunction)
-
getMultiLayerTransformer
MultiLayerTransformer getMultiLayerTransformer()
-
setMultiLayerTransformer
void setMultiLayerTransformer(MultiLayerTransformer basicTransformer)
-
getPickSupport
GraphElementAccessor<V,E> getPickSupport()
- Returns:
- the pickSupport
-
setPickSupport
void setPickSupport(GraphElementAccessor<V,E> pickSupport)
- Parameters:
pickSupport
- the pickSupport to set
-
getVertexLabelPosition
Renderer.VertexLabel.Position getVertexLabelPosition()
-
setVertexLabelPosition
void setVertexLabelPosition(Renderer.VertexLabel.Position position)
-
-