Class RoundScaledRamp.ThresholdMarker

  • Enclosing class:
    RoundScaledRamp

    static class RoundScaledRamp.ThresholdMarker
    extends java.lang.Object
    Hold the properties for each threshold.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int absolutePosition
      Its absolute degree position on the scale
      private org.eclipse.swt.graphics.Color color  
      private org.eclipse.draw2d.geometry.Point leftPoint
      The left overlap point.
      private int relativePosition
      Its relative degree position on the scale
      private org.eclipse.draw2d.geometry.Point rightPoint
      The right overlap point.
      private double value  
      private boolean visible  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThresholdMarker​(double value, org.eclipse.swt.graphics.RGB color, boolean visible)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setColor​(org.eclipse.swt.graphics.RGB color)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private double value
      • color

        private org.eclipse.swt.graphics.Color color
      • visible

        private boolean visible
      • absolutePosition

        private int absolutePosition
        Its absolute degree position on the scale
      • relativePosition

        private int relativePosition
        Its relative degree position on the scale
      • rightPoint

        private org.eclipse.draw2d.geometry.Point rightPoint
        The right overlap point. Only used for gradient
      • leftPoint

        private org.eclipse.draw2d.geometry.Point leftPoint
        The left overlap point. Only used for gradient
    • Constructor Detail

      • ThresholdMarker

        public ThresholdMarker​(double value,
                               org.eclipse.swt.graphics.RGB color,
                               boolean visible)
        Parameters:
        value -
        color -
        visible -
    • Method Detail

      • setColor

        public void setColor​(org.eclipse.swt.graphics.RGB color)
        Parameters:
        color - the RGB color to set