Package hec.map
Class ElevationGlyphDataRecord
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.map.GlyphDataRecord
hec.map.ElevationGlyphDataRecord
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
,ColorContourRecord
- Direct Known Subclasses:
AiDemGlyphDataRecord
,DemGlyphDataRecord
,GridGlyphDataRecord
,NetTinGlyphDataRec
,RasterGlyphDataRecord
,TmsGlyphDataRecord
public class ElevationGlyphDataRecord
extends GlyphDataRecord
implements Cloneable, ColorContourRecord, Serializable, AsciiSerializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected double
protected double
protected boolean
protected boolean
protected ColorContour
protected boolean
protected double
protected int
protected boolean
protected double
protected String
protected int
Fields inherited from class hec.map.GlyphDataRecord
GDR_EXTENSION
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a new object of the same class as this object.float
getAlpha()
double
double
boolean
boolean
double
boolean
double
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
int
double
boolean
boolean
getSet()
double
getUnits()
int
boolean
isSet()
protected void
read0
(String type, String param, BufferedReader input) The abstract read which the concrete subclass must define.void
setAlpha
(float f) void
setAsimuthAngle
(double d) void
setAspectAngle
(double d) void
setAspectEnabled
(boolean tf) void
setAutoContour
(boolean tf) void
setBrightness
(double d) void
void
setDrawEdges
(boolean d) void
setElevFactor
(double d) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
void
setMap
(Collection maps) void
void
void
setNumberConturs
(int d) void
setSaturation
(double d) void
setScaleToClipping
(boolean b) void
setSet
(boolean b) void
setTicInterval
(double d) void
void
setUnitSystem
(int unitSystem) protected void
write0
(BufferedWriter output) The abstract write which the concrete subclass must define.Methods inherited from class hec.map.GlyphDataRecord
getShowLegend, read, readAsciiSerialized, setShowLegend, useAsciiSerialization, write
Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface rma.util.contour.ColorContourRecord
addObserver, deleteObserver
-
Field Details
-
_set
protected boolean _set -
_autoContour
protected boolean _autoContour -
_colorContour
-
_aspectEnabled
protected boolean _aspectEnabled -
_aspectAngle
protected double _aspectAngle -
_asimuthAngle
protected double _asimuthAngle -
_elevFactor
protected double _elevFactor -
_drawEdges
protected boolean _drawEdges -
_numberConturs
protected int _numberConturs -
_alpha
protected float _alpha -
_ticInterval
protected double _ticInterval -
_units
-
_unitSystem
protected int _unitSystem
-
-
Constructor Details
-
ElevationGlyphDataRecord
public ElevationGlyphDataRecord()
-
-
Method Details
-
setGlyph
-
setSet
public void setSet(boolean b) -
isSet
public boolean isSet() -
setMap
- Overrides:
setMap
in classGlyphDataRecord
-
clone
Description copied from class:NamedType
Creates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called.- Overrides:
clone
in classGlyphDataRecord
-
getAutoContour
public boolean getAutoContour() -
setAutoContour
public void setAutoContour(boolean tf) -
getColorContour
- Specified by:
getColorContour
in interfaceColorContourRecord
- Returns:
-
setColorContour
-
getBrightness
public double getBrightness() -
setBrightness
public void setBrightness(double d) -
getSaturation
public double getSaturation() -
setSaturation
public void setSaturation(double d) -
getAspectEnabled
public boolean getAspectEnabled() -
setAspectEnabled
public void setAspectEnabled(boolean tf) -
getAspectAngle
public double getAspectAngle() -
setAspectAngle
public void setAspectAngle(double d) -
getAsimuthAngle
public double getAsimuthAngle() -
setAsimuthAngle
public void setAsimuthAngle(double d) -
getElevFactor
public double getElevFactor() -
setElevFactor
public void setElevFactor(double d) -
getDrawEdges
public boolean getDrawEdges() -
setDrawEdges
public void setDrawEdges(boolean d) -
getNumberConturs
public int getNumberConturs() -
setNumberConturs
public void setNumberConturs(int d) -
getMinClipping
-
setMinClipping
-
getMaxClipping
-
setMaxClipping
-
getScaleToClipping
public boolean getScaleToClipping() -
setScaleToClipping
public void setScaleToClipping(boolean b) -
getTicInterval
public double getTicInterval()- Specified by:
getTicInterval
in interfaceColorContourRecord
- Returns:
-
setTicInterval
public void setTicInterval(double d) -
getSet
public boolean getSet() -
getAlpha
public float getAlpha()- Specified by:
getAlpha
in interfaceColorContourRecord
- Returns:
-
setAlpha
public void setAlpha(float f) -
getUnits
- Specified by:
getUnits
in interfaceColorContourRecord
- Returns:
-
setUnits
-
getUnitSystem
public int getUnitSystem()- Specified by:
getUnitSystem
in interfaceColorContourRecord
- Returns:
-
setUnitSystem
public void setUnitSystem(int unitSystem) -
read0
Description copied from class:GlyphDataRecord
The abstract read which the concrete subclass must define.- Specified by:
read0
in classGlyphDataRecord
- Throws:
IOException
-
write0
Description copied from class:GlyphDataRecord
The abstract write which the concrete subclass must define.- Specified by:
write0
in classGlyphDataRecord
- Throws:
IOException
-
getParamId
public int getParamId()- Specified by:
getParamId
in interfaceColorContourRecord
- Returns:
-
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 classGlyphDataRecord
- 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 classGlyphDataRecord
- 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
-