Class RowCanvas<R extends Row<?,?,?>>

java.lang.Object
javafx.scene.Node
javafx.scene.canvas.Canvas
impl.com.flexganttfx.skin.graphics.RowCanvas<R>
All Implemented Interfaces:
Styleable, EventTarget

public final class RowCanvas<R extends Row<?,?,?>> extends Canvas
  • Property Details

  • Constructor Details

  • Method Details

    • requestRedraw

      public void requestRedraw(String reason, Instant oldTime)
    • getGraphics

      public final GraphicsBase<R> getGraphics()
    • rowProperty

      public final ObjectProperty<R> rowProperty()
      Returns:
      the row property
      See Also:
    • setRow

      public final void setRow(R row)
      Sets the value of the row property.
      Property description:
      Parameters:
      row - the value for the row property
      See Also:
    • getRow

      public final R getRow()
      Gets the value of the row property.
      Property description:
      Returns:
      the value of the row property
      See Also:
    • getTimelineModel

      public final TimelineModel<?> getTimelineModel()
    • isResizable

      public final boolean isResizable()
      Overrides:
      isResizable in class Node
    • prefHeight

      public final double prefHeight(double width)
      Overrides:
      prefHeight in class Node
    • prefWidth

      public final double prefWidth(double height)
      Overrides:
      prefWidth in class Node
    • isDirty

      public boolean isDirty()
    • requestRedraw

      public final void requestRedraw(String reason)
    • draw

      public final void draw()
    • getAllActivityBounds

      public final List<ActivityBounds> getAllActivityBounds()
    • getAllActivityBounds

      public final List<ActivityBounds> getAllActivityBounds(double x, double y)
    • getActivityBounds

      public final ActivityBounds getActivityBounds(double x, double y)
    • getActivityBounds

      public final ActivityBounds getActivityBounds(ActivityRef<?> activityRef)
    • getActivityBounds

      public final List<ActivityBounds> getActivityBounds(double x, double y, double w, double h)
    • getLayoutAt

      public final Layout getLayoutAt(double y)
    • getLayoutBoundsAt

      public final Rectangle2D getLayoutBoundsAt(double y)
    • snapToPixelProperty

      public final BooleanProperty snapToPixelProperty()
      Returns:
      the snapToPixel property
      See Also:
    • setSnapToPixel

      public final void setSnapToPixel(boolean snap)
      Sets the value of the snapToPixel property.
      Property description:
      Parameters:
      snap - the value for the snapToPixel property
      See Also:
    • isSnapToPixel

      public final boolean isSnapToPixel()
      Gets the value of the snapToPixel property.
      Property description:
      Returns:
      the value of the snapToPixel property
      See Also:
    • snapSpaceX

      public double snapSpaceX(double value)
      If this canvas' snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.
      Parameters:
      value - the space value to be snapped
      Returns:
      value rounded to nearest pixel
    • snapSpaceY

      public double snapSpaceY(double value)
      If this canvas' snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.
      Parameters:
      value - the space value to be snapped
      Returns:
      value rounded to nearest pixel
    • snapSizeX

      public double snapSizeX(double value)
      If this canvas' snapToPixel property is true, returns a value ceiled to the nearest pixel in the horizontal direction, else returns the same value.
      Parameters:
      value - the size value to be snapped
      Returns:
      value ceiled to nearest pixel
    • snapSizeY

      public double snapSizeY(double value)
      If this canvas' snapToPixel property is true, returns a value ceiled to the nearest pixel in the vertical direction, else returns the same value.
      Parameters:
      value - the size value to be snapped
      Returns:
      value ceiled to nearest pixel
    • snapPositionX

      public double snapPositionX(double value)
      If this canvas' snapToPixel property is true, returns a value rounded to the nearest pixel in the horizontal direction, else returns the same value.
      Parameters:
      value - the position value to be snapped
      Returns:
      value rounded to nearest pixel
    • snapPositionY

      public double snapPositionY(double value)
      If this canvas' snapToPixel property is true, returns a value rounded to the nearest pixel in the vertical direction, else returns the same value.
      Parameters:
      value - the position value to be snapped
      Returns:
      value rounded to nearest pixel