Class FXPolylineRenderer
java.lang.Object
com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.PolylineShape>
com.amalgamasimulation.animation.fx.FXPolylineRenderer
public class FXPolylineRenderer
extends com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.PolylineShape>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FX2DAnimationViewprotected javafx.scene.shape.Polyline -
Constructor Summary
ConstructorsConstructorDescriptionFXPolylineRenderer(com.amalgamasimulation.animation.shapes.shapes2d.PolylineShape shape, FX2DAnimationView swt2dAnimationView) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected javafx.scene.shape.Polylinestatic javafx.scene.paint.Colorjavafx.scene.shape.PolylinegetNode()voidrender()protected voidprotected <V> voidsetIfChanged(V oldValue, V newValue, Consumer<V> setter) Methods inherited from class com.amalgamasimulation.animation.util.Renderer
getShape, memoized
-
Field Details
-
node
protected javafx.scene.shape.Polyline node -
fx2dAnimationView
-
-
Constructor Details
-
FXPolylineRenderer
public FXPolylineRenderer(com.amalgamasimulation.animation.shapes.shapes2d.PolylineShape shape, FX2DAnimationView swt2dAnimationView)
-
-
Method Details
-
renderInternal
protected void renderInternal() -
createNode
protected javafx.scene.shape.Polyline createNode() -
render
public void render()- Specified by:
renderin classcom.amalgamasimulation.animation.util.Renderer<T extends com.amalgamasimulation.animation.shapes.AbstractShape>
-
clear
public void clear() -
setIfChanged
-
getNode
public javafx.scene.shape.Polyline getNode() -
fxColor
-