Class FXTextRenderer
java.lang.Object
com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.TextShape>
com.amalgamasimulation.animation.fx.FXTextRenderer
public class FXTextRenderer
extends com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.TextShape>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FX2DAnimationViewprotected javafx.scene.control.Label -
Constructor Summary
ConstructorsConstructorDescriptionFXTextRenderer(com.amalgamasimulation.animation.shapes.shapes2d.TextShape shape, FX2DAnimationView fx2dAnimationView) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected javafx.scene.control.Labelstatic javafx.scene.paint.Colorjavafx.scene.control.LabelgetNode()protected StringgetTextLongestString(String text) 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.control.Label node -
fx2dAnimationView
-
-
Constructor Details
-
FXTextRenderer
public FXTextRenderer(com.amalgamasimulation.animation.shapes.shapes2d.TextShape shape, FX2DAnimationView fx2dAnimationView)
-
-
Method Details
-
renderInternal
protected void renderInternal() -
createNode
protected javafx.scene.control.Label createNode() -
getTextLongestString
-
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.control.Label getNode() -
fxColor
-