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 intprotected intprotected intprotected intprotected Colorprotected intprotected intprotected booleanFields 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 TypeMethodDescriptionvoidgetAttributes(Map map) getColor()protected ImageIcongetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.protected voidgetRGB0(double[] rgb, double val, double min, double max) protected double[]getRGB0(double val, double min, double max) booleanprotected voidread0(String type, String param, BufferedReader input) protected voidsetAttributes(Map attributes) voidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetReverse(boolean reversed) voidwrite(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:
read0in classColorContour- Throws:
IOException
-
write
- Overrides:
writein classColorContour- Throws:
IOException
-
getAttributes
- Overrides:
getAttributesin classColorContour
-
setAttributes
- Overrides:
setAttributesin classColorContour
-
setReverse
public void setReverse(boolean reversed) -
isReversed
public boolean isReversed() -
setColor
- Specified by:
setColorin interfaceSingleColorContour
-
getColor
- Specified by:
getColorin interfaceSingleColorContour
-
addExtras
- Overrides:
addExtrasin classColorContour
-
getColorIcon
-
getRGB0
protected double[] getRGB0(double val, double min, double max) - Specified by:
getRGB0in classColorContour
-
getRGB0
protected void getRGB0(double[] rgb, double val, double min, double max) - Specified by:
getRGB0in classColorContour
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classColorContour- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin 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
-