Documentation of 'de.erichseifert.gral.plots.colors.ScaledContinuousColorMapper' Java class
ScaledContinuousColorMapper
de.erichseifert.gral.plots.colors

Class ScaledContinuousColorMapper

    • Constructor Summary

      Constructors 
      Constructor and Description
      ScaledContinuousColorMapper()
      Default constructor that initializes a new instance with a default offset of 0.0 and a scale of 1.0.
      ScaledContinuousColorMapper(double offset, double scale)
      Constructor that initializes a new instance with a specified offset and scaling factor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      double getOffset()
      Returns the current offset value.
      double getScale()
      Returns the current scaling factor.
      int hashCode() 
      void setOffset(double offset)
      Sets a new offset value.
      void setRange(double start, double end)
      Sets offset and scale based on start and end values.
      void setScale(double scale)
      Sets a new scaling factor for passed values.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScaledContinuousColorMapper

        public ScaledContinuousColorMapper()
        Default constructor that initializes a new instance with a default offset of 0.0 and a scale of 1.0.
      • ScaledContinuousColorMapper

        public ScaledContinuousColorMapper(double offset,
                                           double scale)
        Constructor that initializes a new instance with a specified offset and scaling factor.
        Parameters:
        offset - Offset.
        scale - Scaling factor.
    • Method Detail

      • getOffset

        public double getOffset()
        Returns the current offset value.
        Returns:
        Offset value.
      • setOffset

        public void setOffset(double offset)
        Sets a new offset value.
        Parameters:
        offset - Offset value.
      • getScale

        public double getScale()
        Returns the current scaling factor.
        Returns:
        Scaling factor.
      • setScale

        public void setScale(double scale)
        Sets a new scaling factor for passed values.
        Parameters:
        scale - Scaling factor.
      • setRange

        public void setRange(double start,
                             double end)
        Sets offset and scale based on start and end values.
        Parameters:
        start - Start value.
        end - End value.
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.