Class ListViewGraphics<R extends Row<?,​?,​?>>

  • Type Parameters:
    R - the type of the rows displayed inside the list view
    All Implemented Interfaces:
    Styleable, EventTarget, Skinnable

    public class ListViewGraphics<R extends Row<?,​?,​?>>
    extends GraphicsBase<R>
    A specialization of GraphicsBase that uses a ListView to display a list of rows. The user can use the arrow up and down keys for scrolling vertically and arrows left and right for scrolling horizontally.
    Since:
    1.0
    • Constructor Detail

      • ListViewGraphics

        public ListViewGraphics()
    • Method Detail

      • getListView

        public final ListView<R> getListView()
        Returns the list view control used by this graphics view.
        Returns:
        the list view
        Since:
        1.0
      • createListView

        protected ListView<R> createListView()
        Creates the list view instance to be used by this graphics view. This method can be overridden to return a specialization of ListView.
        Returns:
        a list view
        Since:
        1.0
      • autoscrollProximityProperty

        public final DoubleProperty autoscrollProximityProperty()
        This property defines the distance from the viewport borders (in pixels) where the viewport will automatically start scrolling, either horizontally or vertically. This behaviour is needed when the user performs a drag operation and needs to reach an area inside the graphics that is currently not visible. Setting this value to 0 disables the automatic scrolling feature.
        Returns:
        the property used to control the autoscroll proximity
        Since:
        1.3
      • getAutoscrollProximity

        public final double getAutoscrollProximity()
        Returns the value of autoscrollProximityProperty().
        Returns:
        the distance in pixels to the viewport borders
        Since:
        1.3
      • setAutoscrollProximity

        public final void setAutoscrollProximity​(double value)
        Parameters:
        value - the distance in pixels to the viewport borders
        Since:
        1.3
      • scrollValueProperty

        public final DoubleProperty scrollValueProperty()
        Stores the number of pixels that the list view will scroll when the user uses the arrow up and down keys.
        Returns:
        the scroll value
        Since:
        1.3
        See Also:
        scrollDown(), scrollUp()
      • getScrollValue

        public final double getScrollValue()
        Returns the value of scrollValueProperty().
        Returns:
        the scroll value (in pixels)
        Since:
        1.3
      • setScrollValue

        public final void setScrollValue​(double pixels)
        Sets the value of scrollValueProperty().
        Parameters:
        pixels - the scroll value (in pixels)
        Since:
        1.3