Package hec.gfx2d
Class LegendPanelProp
java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.LegendPanelProp
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
Drawing properties for gfx2d labels.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanflag indicating panel has left textbooleanflag indicating panel has right textbooleanintdrawing properties for left textdrawing properties for legend item textintbooleandrawing properties for right text -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorCopy Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetClone()static G2dLabelDrawPropgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static StringReturns the name of the file used for storing the default propertiesprotected static voidInitializes the defaults values for the class.static booleanprotected static booleanloadDefaults(BufferedReader in, String endTag, String cls) protected static voidparseDefaultLine(String type, String param, String cls) voidreadProperties(BufferedReader in, String endTag) voidset(LegendPanelProp dp) static voidsetDefaults(LegendPanelProp defaultProps) protected static voidsetDefaults(LegendPanelProp defaultProps, String cls) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetLegenedVisible(boolean b) static booleanWrites the defaults to a defaults filestatic booleanwriteDefaults(BufferedWriter writer) protected static booleanwriteDefaults(String cls, BufferedWriter writer) voidwriteProperties(BufferedWriter writer, String endTag) Methods inherited from class hec.gfx2d.PlotProperties
dumpDefaults, getDefaultBoolean, getDefaultColor, getDefaultDouble, getDefaultFloat, getDefaultFloatArray, getDefaultFont, getDefaultInsets, getDefaultInt, getDefaultObject, getDefaults, getDefaultString, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefaults
-
Field Details
-
hasLeftText
public boolean hasLeftTextflag indicating panel has left text -
leftTextProp
drawing properties for left text -
hasRightText
public boolean hasRightTextflag indicating panel has right text -
rightTextProp
drawing properties for right text -
legendItemPropVec
drawing properties for legend item text -
titleTextProp
-
hasTitleText
public boolean hasTitleText -
layoutPosition
public int layoutPosition -
legendPosition
public int legendPosition -
legendVisible
public boolean legendVisible
-
-
Constructor Details
-
LegendPanelProp
public LegendPanelProp()Default Constructor -
LegendPanelProp
Copy Constructor- Parameters:
dp- the properties to copy from
-
-
Method Details
-
init
Initializes the defaults values for the class.- Parameters:
cls-
-
getClone
-
writeDefaults
public static boolean writeDefaults()Writes the defaults to a defaults file- Returns:
- true if the write was successful
-
writeDefaults
-
getFileName
Returns the name of the file used for storing the default properties- Returns:
- the file name
-
writeDefaults
-
loadDefaults
-
loadDefaults
-
parseDefaultLine
-
set
-
writeProperties
-
readProperties
-
setDefaults
-
setDefaults
-
getDefaultLegendLabelProperties
-
setLegenedVisible
public void setLegenedVisible(boolean b) -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- 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- 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
-
getLegendItemProperties
-