public class GraphRenderer<NodeType extends Node<NodeType,Vector2D,IdentifierType>,EdgeType extends Edge<NodeType>,IdentifierType,GraphType extends Graph<NodeType,EdgeType,IdentifierType>> extends javafx.animation.AnimationTimer implements Renderer
| Type | Property and Description |
|---|---|
javafx.beans.property.DoubleProperty |
drawingHeight |
javafx.beans.property.DoubleProperty |
drawingWidth |
| Constructor and Description |
|---|
GraphRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
arrangeGraph(GraphType graph) |
protected void |
drawEdge(EdgeType edge) |
javafx.beans.property.DoubleProperty |
drawingHeightProperty() |
javafx.beans.property.DoubleProperty |
drawingWidthProperty() |
protected void |
drawNode(NodeType node) |
double |
getDrawingHeight()
Gets the value of the property drawingHeight.
|
double |
getDrawingWidth()
Gets the value of the property drawingWidth.
|
javafx.scene.canvas.GraphicsContext |
getGraphicsContext()
Returns the assigned GraphicContext.
|
ConcurrentLinkedQueue<GraphType> |
getGraphQueue() |
GraphRenderOptions |
getRenderingOptions() |
void |
handle(long now) |
void |
render(GraphType graph) |
void |
setGraphicsContext(javafx.scene.canvas.GraphicsContext graphicsContext) |
void |
setRenderingOptions(GraphRenderOptions renderingOptions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcirclePoint, connectPoints, dashLineSegment, drawDraggedRectangle, drawLine, drawLineSegment, drawParabola, drawParabola, drawPoint, drawPoint, drawRectangle, drawStraight, drawTextCenteredOnPointpublic javafx.beans.property.DoubleProperty drawingWidthProperty
getDrawingWidth()public javafx.beans.property.DoubleProperty drawingHeightProperty
getDrawingHeight()public void arrangeGraph(GraphType graph)
public void handle(long now)
handle in class javafx.animation.AnimationTimerpublic void render(GraphType graph)
protected void drawNode(NodeType node)
public ConcurrentLinkedQueue<GraphType> getGraphQueue()
protected void drawEdge(EdgeType edge)
public javafx.beans.property.DoubleProperty drawingWidthProperty()
getDrawingWidth()public javafx.beans.property.DoubleProperty drawingHeightProperty()
getDrawingHeight()public javafx.scene.canvas.GraphicsContext getGraphicsContext()
RenderergetGraphicsContext in interface Rendererpublic void setGraphicsContext(javafx.scene.canvas.GraphicsContext graphicsContext)
public double getDrawingWidth()
getDrawingWidth in interface Rendererpublic double getDrawingHeight()
getDrawingHeight in interface Rendererpublic GraphRenderOptions getRenderingOptions()
public void setRenderingOptions(GraphRenderOptions renderingOptions)
Copyright © 2017. All rights reserved.