public class GraphRenderer<NodeType extends de.bioforscher.singa.mathematics.graphs.model.Node<NodeType,de.bioforscher.singa.mathematics.vectors.Vector2D,IdentifierType>,EdgeType extends de.bioforscher.singa.mathematics.graphs.model.Edge<NodeType>,IdentifierType,GraphType extends de.bioforscher.singa.mathematics.graphs.model.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) |
void |
fillBackground() |
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 |
relaxGraph(GraphType graph) |
void |
render(GraphType graph) |
void |
renderVoronoi(boolean flag) |
void |
setGraphicsContext(javafx.scene.canvas.GraphicsContext graphicsContext) |
void |
setRenderAfter(Function<GraphType,Void> renderAfterFunction) |
void |
setRenderBefore(Function<GraphType,Void> renderBeforeFunction) |
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, drawTextCenteredOnPoint, fillPolygonpublic javafx.beans.property.DoubleProperty drawingWidthProperty
getDrawingWidth()public javafx.beans.property.DoubleProperty drawingHeightProperty
getDrawingHeight()public void arrangeGraph(GraphType graph)
public void relaxGraph(GraphType graph)
public void handle(long now)
handle in class javafx.animation.AnimationTimerpublic void render(GraphType graph)
public void fillBackground()
protected void drawNode(NodeType node)
public ConcurrentLinkedQueue<GraphType> getGraphQueue()
protected void drawEdge(EdgeType edge)
public void renderVoronoi(boolean flag)
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.