Class Renderer

    • Method Detail

      • snapPosition

        protected double snapPosition​(double value)
      • snapSpace

        protected double snapSpace​(double value)
      • snapSize

        protected double snapSize​(double value)
      • disableRedrawAfterPropertyChange

        protected final void disableRedrawAfterPropertyChange()
      • enableRedrawAfterPropertyChange

        protected final void enableRedrawAfterPropertyChange()
      • redrawObservable

        protected void redrawObservable​(Observable observable)
      • getName

        public final String getName()
      • getLocation

        protected final double getLocation​(Instant time)
        Calculates the x coordinate for the given time. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work in AgendaLayout.
        Parameters:
        time - the time for which to calculate the x coordinate
        Returns:
        the location of the given time point
        Since:
        1.0
        See Also:
        TimelineModel.calculateLocationForTime(Instant)
      • getTimeAt

        protected final Instant getTimeAt​(double location)
        Calculates the time at the given x coordinate. This method only returns valid results when the renderers is used in a layout with horizontal orientation. It will not work in AgendaLayout.
        Parameters:
        location - the location for which to return the time
        Returns:
        the time at the given x coordinate
        Since:
        1.0
        See Also:
        TimelineModel.calculateTimeForLocation(double)
      • getFill

        protected Paint getFill​(boolean selected,
                                boolean hover,
                                boolean highlighted,
                                boolean pressed)
      • isEnabled

        public final boolean isEnabled()
      • setEnabled

        public final void setEnabled​(boolean enabled)
      • setSnapToPixel

        public final void setSnapToPixel​(boolean snap)
      • isSnapToPixel

        public final boolean isSnapToPixel()
      • getPadding

        public final Insets getPadding()
      • setPadding

        public final void setPadding​(Insets insets)
      • getFill

        public final Paint getFill()
      • setFill

        public final void setFill​(Paint paint)
      • getFillPressed

        public final Paint getFillPressed()
      • setFillPressed

        public final void setFillPressed​(Paint paint)
      • getFillHighlight

        public final Paint getFillHighlight()
      • setFillHighlight

        public final void setFillHighlight​(Paint paint)
      • getFillSelected

        public final Paint getFillSelected()
      • setFillSelected

        public final void setFillSelected​(Paint paint)
      • getFillHover

        public final Paint getFillHover()
      • setFillHover

        public final void setFillHover​(Paint paint)
      • setAlpha

        public final void setAlpha​(double alpha)
      • getAlpha

        public final double getAlpha()