Package hec.map.image
Class ImageGlyphDataRecord
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.map.GlyphDataRecord
hec.map.image.ImageGlyphDataRecord
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,Modifiable
public class ImageGlyphDataRecord
extends GlyphDataRecord
implements Cloneable, Serializable, AsciiSerializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected booleanprotected booleanFields inherited from class hec.map.GlyphDataRecord
GDR_EXTENSIONFields 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.floatgetAlpha()booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleanprotected voidread0(String type, String param, BufferedReader input) The abstract read which the concrete subclass must define.voidsetAlpha(float f) voidsetDrawImageOutline(boolean drawImageOutline) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetShowImageWhileDragging(boolean dragImageOutline) protected voidwrite0(BufferedWriter output) The abstract write which the concrete subclass must define.Methods inherited from class hec.map.GlyphDataRecord
getShowLegend, read, readAsciiSerialized, setMap, setShowLegend, useAsciiSerialization, writeMethods 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, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
_alpha
protected float _alpha -
_showImageWhileDragging
protected boolean _showImageWhileDragging -
_drawImageOutline
protected boolean _drawImageOutline
-
-
Constructor Details
-
ImageGlyphDataRecord
public ImageGlyphDataRecord()
-
-
Method Details
-
clone
Description copied from class:NamedTypeCreates 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:
clonein classGlyphDataRecord
-
getAlpha
public float getAlpha() -
setAlpha
public void setAlpha(float f) -
setDrawImageOutline
public void setDrawImageOutline(boolean drawImageOutline) -
getDrawImageOutline
public boolean getDrawImageOutline() -
setShowImageWhileDragging
public void setShowImageWhileDragging(boolean dragImageOutline) -
getShowImageWhileDragging
public boolean getShowImageWhileDragging() -
read0
Description copied from class:GlyphDataRecordThe abstract read which the concrete subclass must define.- Specified by:
read0in classGlyphDataRecord- Throws:
IOException
-
write0
Description copied from class:GlyphDataRecordThe abstract write which the concrete subclass must define.- Specified by:
write0in classGlyphDataRecord- Throws:
IOException
-
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 classGlyphDataRecord- 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 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
-