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