Class IntervalMarker

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class IntervalMarker
    extends Marker
    implements java.lang.Cloneable, java.io.Serializable
    Represents an interval to be highlighted in some way.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
      • startValue

        private double startValue
        The start value.
      • endValue

        private double endValue
        The end value.
      • gradientPaintTransformer

        private GradientPaintTransformer gradientPaintTransformer
        The gradient paint transformer (optional).
    • Constructor Detail

      • IntervalMarker

        public IntervalMarker​(double start,
                              double end)
        Constructs an interval marker.
        Parameters:
        start - the start of the interval.
        end - the end of the interval.
      • IntervalMarker

        public IntervalMarker​(double start,
                              double end,
                              java.awt.Paint paint)
        Creates a new interval marker with the specified range and fill paint. The outline paint and stroke default to null.
        Parameters:
        start - the lower bound of the interval.
        end - the upper bound of the interval.
        paint - the fill paint (null not permitted).
      • IntervalMarker

        public IntervalMarker​(double start,
                              double end,
                              java.awt.Paint paint,
                              java.awt.Stroke stroke,
                              java.awt.Paint outlinePaint,
                              java.awt.Stroke outlineStroke,
                              float alpha)
        Constructs an interval marker.
        Parameters:
        start - the start of the interval.
        end - the end of the interval.
        paint - the paint (null not permitted).
        stroke - the stroke (null not permitted).
        outlinePaint - the outline paint.
        outlineStroke - the outline stroke.
        alpha - the alpha transparency.
    • Method Detail

      • getStartValue

        public double getStartValue()
        Returns the start value for the interval.
        Returns:
        The start value.
      • setStartValue

        public void setStartValue​(double value)
        Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.
        Parameters:
        value - the value.
      • getEndValue

        public double getEndValue()
        Returns the end value for the interval.
        Returns:
        The end value.
      • setEndValue

        public void setEndValue​(double value)
        Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.
        Parameters:
        value - the value.
      • getGradientPaintTransformer

        public GradientPaintTransformer getGradientPaintTransformer()
        Returns the gradient paint transformer.
        Returns:
        The gradient paint transformer (possibly null).
      • setGradientPaintTransformer

        public void setGradientPaintTransformer​(GradientPaintTransformer transformer)
        Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.
        Parameters:
        transformer - the transformer (null permitted).
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests the marker for equality with an arbitrary object.
        Overrides:
        equals in class Marker
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • canEqual

        public boolean canEqual​(java.lang.Object other)
        Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.
        Overrides:
        canEqual in class Marker
        Parameters:
        other - Object
        Returns:
        true ONLY if the parameter is THIS class type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Marker
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of the marker.
        Overrides:
        clone in class Marker
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - Not thrown by this class, but the exception is declared for the use of subclasses.