Klasse GraphicsBaseSkin<C extends GraphicsBase<R>, R extends Row<?,?,?>>

java.lang.Object
javafx.scene.control.SkinBase<C>
impl.com.flexganttfx.skin.graphics.GraphicsBaseSkin<C,R>
Alle implementierten Schnittstellen:
Skin<C>
Bekannte direkte Unterklassen:
ListViewGraphicsSkin, SingleRowGraphicsSkin, SplitPaneGraphicsSkin, VBoxGraphicsSkin

public abstract class GraphicsBaseSkin<C extends GraphicsBase<R>, R extends Row<?,?,?>> extends SkinBase<C>
Abstract base skin for graphics controls. It installs the shared overlays, listeners, cursors, keyboard handling, lasso selection, and drag feedback used by concrete graphics skins.
  • Konstruktordetails

    • GraphicsBaseSkin

      public GraphicsBaseSkin(C graphics)
      Constructs a new skin for the given graphics control.
      Parameter:
      graphics - the graphics control
  • Methodendetails

    • getClippedContent

      protected Node getClippedContent()
      Returns the clipped content node.
      Gibt zurück:
      the clipped content node
    • createDragCanvas

      protected DragCanvas<R> createDragCanvas()
      Creates the drag canvas.
      Gibt zurück:
      the drag canvas
    • createLinksCanvas

      protected LinksCanvas<R> createLinksCanvas()
      Creates the links canvas.
      Gibt zurück:
      the links canvas
    • getDragCanvas

      public final DragCanvas<R> getDragCanvas()
      Returns the drag canvas.
      Gibt zurück:
      the drag canvas
    • getLasso

      protected final Rectangle getLasso()
      Returns the lasso rectangle.
      Gibt zurück:
      the lasso rectangle
    • getLinksCanvas

      protected final LinksCanvas<R> getLinksCanvas()
      Returns the links canvas.
      Gibt zurück:
      the links canvas
    • createRowPaneRegion

      protected abstract Region createRowPaneRegion()
    • findLassoSelectedRows

      protected abstract List<Row<?,?,?>> findLassoSelectedRows()
    • findLassoSelectedActivities

      protected abstract List<ActivityRef<?>> findLassoSelectedActivities()
    • createLassoInfo

      protected final LassoEvent.LassoInfo createLassoInfo(MouseEvent evt)
      Creates lasso information for the given mouse event.
      Parameter:
      evt - the mouse event
      Gibt zurück:
      the lasso information
    • getRowPane

      protected final RowPane<R> getRowPane(ActivityRef<?> ref)
      Returns the row pane for the given activity reference.
      Parameter:
      ref - the activity reference
      Gibt zurück:
      the row pane for the activity reference
    • getRowCanvas

      public final RowCanvas<R> getRowCanvas(ActivityRef<?> ref)
      Returns the row canvas for the given activity reference.
      Parameter:
      ref - the activity reference
      Gibt zurück:
      the row canvas for the activity reference
    • getActivityBounds

      public final Rectangle2D getActivityBounds(ActivityRef<?> ref)
      Returns the activity bounds for the given activity reference.
      Parameter:
      ref - the activity reference
      Gibt zurück:
      the activity bounds for the activity reference
    • getActivityBoundsAt

      public final ActivityBounds getActivityBoundsAt(double x, double y)
      Returns the activity bounds at the given coordinates.
      Parameter:
      x - the x coordinate
      y - the y coordinate
      Gibt zurück:
      the activity bounds at the given coordinates
    • getActivityRefAt

      public final ActivityRef<?> getActivityRefAt(double x, double y)
      Returns the activity reference at the given coordinates.
      Parameter:
      x - the x coordinate
      y - the y coordinate
      Gibt zurück:
      the activity reference at the given coordinates
    • getAllActivityBoundsAt

      public final List<ActivityBounds> getAllActivityBoundsAt(double x, double y)
      Returns all activity bounds at the given coordinates.
      Parameter:
      x - the x coordinate
      y - the y coordinate
      Gibt zurück:
      the activity bounds at the given coordinates
    • getAllActivityRefsAt

      public final List<ActivityRef<?>> getAllActivityRefsAt(double x, double y)
      Returns all activity references at the given coordinates.
      Parameter:
      x - the x coordinate
      y - the y coordinate
      Gibt zurück:
      the activity references at the given coordinates
    • getAllCalendarActivitiesAt

      public final List<CalendarActivity> getAllCalendarActivitiesAt(double x, double y)
      Returns all calendar activities at the given coordinates.
      Parameter:
      x - the x coordinate
      y - the y coordinate
      Gibt zurück:
      the calendar activities at the given coordinates
    • getRowAt

      public final R getRowAt(double y)
      Returns the row at the given y coordinate.
      Parameter:
      y - the y coordinate
      Gibt zurück:
      the row at the given y coordinate
    • getRowPaneAt

      protected abstract RowPane<R> getRowPaneAt(double y)
    • isRowAboveViewport

      protected abstract boolean isRowAboveViewport(R row)
    • getRowCanvasAt

      protected final RowCanvas<R> getRowCanvasAt(double y)
      Returns the row canvas at the given y coordinate.
      Parameter:
      y - the y coordinate
      Gibt zurück:
      the row canvas at the given y coordinate
    • getLayoutAt

      public final Layout getLayoutAt(double y)
      Returns the layout at the given y coordinate.
      Parameter:
      y - the y coordinate
      Gibt zurück:
      the layout at the given y coordinate
    • getLayoutBoundsAt

      protected final Rectangle2D getLayoutBoundsAt(double y)
      Returns the layout bounds at the given y coordinate.
      Parameter:
      y - the y coordinate
      Gibt zurück:
      the layout bounds at the given y coordinate
    • getLocalTimeAt

      public final LocalTime getLocalTimeAt(double y)
      Returns the local time at the given y coordinate.
      Parameter:
      y - the y coordinate
      Gibt zurück:
      the local time at the given y coordinate
    • getRowHeaderWidth

      protected double getRowHeaderWidth()
      Returns the row header width.
      Gibt zurück:
      the row header width
    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Lays out the children of this skin.
      Setzt außer Kraft:
      layoutChildren in Klasse SkinBase<C extends GraphicsBase<R>>
      Parameter:
      contentX - the content x coordinate
      contentY - the content y coordinate
      contentWidth - the content width
      contentHeight - the content height
    • getTimeline

      protected final Timeline getTimeline()
      Returns the timeline control.
      Gibt zurück:
      the timeline control