Class FXSegmentRenderer

java.lang.Object
com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.SegmentShape>
com.amalgamasimulation.animation.fx.FXSegmentRenderer

public class FXSegmentRenderer extends com.amalgamasimulation.animation.util.Renderer<com.amalgamasimulation.animation.shapes.shapes2d.SegmentShape>
  • Field Details

    • node

      protected javafx.scene.shape.Polyline node
    • fx2dAnimationView

      protected FX2DAnimationView fx2dAnimationView
  • Constructor Details

    • FXSegmentRenderer

      public FXSegmentRenderer(com.amalgamasimulation.animation.shapes.shapes2d.SegmentShape shape, FX2DAnimationView fx2dAnimationView)
  • Method Details

    • renderInternal

      protected void renderInternal()
    • createNode

      protected javafx.scene.shape.Polyline createNode()
    • 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.shape.Polyline getNode()
    • fxColor

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