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 Details

    • node

      protected javafx.scene.control.Label node
    • fx2dAnimationView

      protected FX2DAnimationView 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

      protected String getTextLongestString(String text)
    • render

      public void render()
      Specified by:
      render in class com.amalgamasimulation.animation.util.Renderer<T extends com.amalgamasimulation.animation.shapes.AbstractShape>
    • clear

      public void clear()
    • setIfChanged

      protected <V> void setIfChanged(V oldValue, V newValue, Consumer<V> setter)
    • getNode

      public javafx.scene.control.Label getNode()
    • fxColor

      public static javafx.scene.paint.Color fxColor(Color color)