Package rma.util
Class LinearColorContour
java.lang.Object
rma.util.ColorContour
rma.util.LinearColorContour
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,SingleColorContour
public class LinearColorContour
extends ColorContour
implements Cloneable, Serializable, AsciiSerializable, SingleColorContour
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
protected Color
protected int
protected int
protected boolean
Fields inherited from class rma.util.ColorContour
_bright, _max, _maxClip, _maxMinusMin, _min, _minClip, _sat, _scaleToClipping, _typeToClass, ASPECT_SHADING_TYPE, GRAYSCALE_TYPE, LINEAR_TYPE, mPropertyChangeSupport, PRECIPITATION_TYPE, RED_GREEN_BLUE_TYPE, TERRAIN_TYPE, WATER_DEPTH_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAttributes
(Map map) getColor()
protected ImageIcon
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.protected void
getRGB0
(double[] rgb, double val, double min, double max) protected double[]
getRGB0
(double val, double min, double max) boolean
protected void
read0
(String type, String param, BufferedReader input) protected void
setAttributes
(Map attributes) void
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setReverse
(boolean reversed) void
write
(BufferedWriter output) Methods inherited from class rma.util.ColorContour
addPropertyChangeListener, clone, copyInto, createContourFromAttributes, getAttributes, getBrightness, getColor, getColor, getInstanceForType, getMaxClipping, getMaxValue, getMinClipping, getMinValue, getRGB, getRGB, getSaturation, getScaleToClipping, getType, getTypes, read, removePropertyChangeSupport, setBrightness, setMaxClipping, setMaxValue, setMinClipping, setMinValue, setSaturation, setScaleToClipping
-
Field Details
-
_red
protected int _red -
_green
protected int _green -
_blue
protected int _blue -
_255MinusRed
protected int _255MinusRed -
_255MinusGreen
protected int _255MinusGreen -
_255MinusBlue
protected int _255MinusBlue -
_reversed
protected boolean _reversed -
_color
-
-
Constructor Details
-
LinearColorContour
public LinearColorContour()
-
-
Method Details
-
read0
- Overrides:
read0
in classColorContour
- Throws:
IOException
-
write
- Overrides:
write
in classColorContour
- Throws:
IOException
-
getAttributes
- Overrides:
getAttributes
in classColorContour
-
setAttributes
- Overrides:
setAttributes
in classColorContour
-
setReverse
public void setReverse(boolean reversed) -
isReversed
public boolean isReversed() -
setColor
- Specified by:
setColor
in interfaceSingleColorContour
-
getColor
- Specified by:
getColor
in interfaceSingleColorContour
-
addExtras
- Overrides:
addExtras
in classColorContour
-
getColorIcon
-
getRGB0
protected double[] getRGB0(double val, double min, double max) - Specified by:
getRGB0
in classColorContour
-
getRGB0
protected void getRGB0(double[] rgb, double val, double min, double max) - Specified by:
getRGB0
in classColorContour
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classColorContour
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in classColorContour
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-