Documentation of 'sgtplot.TransformColorMap' Java class
TransformColorMap
sgtplot

Class TransformColorMap

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, TransformAccess, TransformColor


    public class TransformColorMap
    extends ColorMap
    implements java.lang.Cloneable, java.beans.PropertyChangeListener, TransformColor, TransformAccess
    TransformColorMap provides a mapping from a value to a Color.
    Since:
    2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • TransformColorMap

        public TransformColorMap(Transform rTrans,
                                 Transform gTrans,
                                 Transform bTrans)
        Initialize the color map to use red, green, and blue transforms. Sets up ColorMap for TRANSFORM access. Each Transform should have identical user ranges. The physical range will be set to 0.0 to 1.0 for each color component.
        See Also:
        Transform
    • Method Detail

      • copy

        public ColorMap copy()
        Create a copy of the ColorMap object.
        Specified by:
        copy in class ColorMap
      • getColor

        public java.awt.Color getColor(double val)
        Get a Color. Returns a Color by one of four methods. INDEXED, TRANSFORM, LEVEL_INDEXED, and LEVEL_TRANSFORM.
        Specified by:
        getColor in class ColorMap
        Parameters:
        val - Value
        Returns:
        Color
      • getRange

        public Range2D getRange()
        Get the current user range for the Transforms.
        Specified by:
        getRange in class ColorMap
        Returns:
        user range
      • setColorTransforms

        public void setColorTransforms(Transform rTrans,
                                       Transform gTrans,
                                       Transform bTrans)
        Set the color Transforms.
        Property Change: redColorTransform, greenColorTransform, and blueColorTransform.
        Specified by:
        setColorTransforms in interface TransformColor
        Parameters:
        rTrans - red Transform
        gTrans - green Transform
        bTrans - blue Transform
      • equals

        public boolean equals(ColorMap cm)
        Description copied from class: ColorMap
        Test for equality of color maps.
        Specified by:
        equals in class ColorMap

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.