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 Details

    • node

      protected javafx.scene.shape.Rectangle node
    • fx2dAnimationView

      protected FX2DAnimationView 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:
      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.Rectangle getNode()
    • fxColor

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