Class FXCircleRenderer
java.lang.Object
com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.CircleShape>
com.amalgamasimulation.animation.fx.FXCircleRenderer
public class FXCircleRenderer
extends com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.CircleShape>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FX2DAnimationViewprotected javafx.scene.shape.Ellipse -
Constructor Summary
ConstructorsConstructorDescriptionFXCircleRenderer(com.amalgamasimulation.animation.shapes.shapes2d.CircleShape shape, FX2DAnimationView fx2dAnimationView) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected javafx.scene.shape.Ellipsestatic javafx.scene.paint.Colorjavafx.scene.shape.EllipsegetNode()voidrender()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.Ellipse node -
fx2dAnimationView
-
-
Constructor Details
-
FXCircleRenderer
public FXCircleRenderer(com.amalgamasimulation.animation.shapes.shapes2d.CircleShape shape, FX2DAnimationView fx2dAnimationView)
-
-
Method Details
-
renderInternal
public void renderInternal() -
createNode
protected javafx.scene.shape.Ellipse 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.Ellipse getNode() -
fxColor
-