Package hec.gfx2d
Class TitleDrawProp
java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.G2dLabelDrawProp
hec.gfx2d.TitleDrawProp
- All Implemented Interfaces:
FontProperties
,LineLabelProperties
,PatternProperties
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
public class TitleDrawProp
extends G2dLabelDrawProp
implements Cloneable, PatternProperties, LineLabelProperties, AsciiSerializable
Drawing properties for gfx2d AxisTics.
- See Also:
-
Field Summary
FieldsFields inherited from class hec.gfx2d.G2dLabelDrawProp
align, alphaComposite, backgroundColor, borderColor, borderStyle, borderWeight, drawBackground, drawBorder, fillPattern, font, FONT_FAMILY, FONT_SIZE, FONT_STYLE, fontFamily, fontSize, fontStyle, iconPath, LABEL_BEGIN, LABEL_END, MAX_FONT_SIZE, maxFontSize, MIN_FONT_SIZE, minFontSize, MULTI_LINE_CHARACTER, rotation, SAVE_TEXT_PROPERTY, showLabel, space, text, TEXT, TEXT_COLOR, textColor, TINY_FONT_SIZE, tinyFontSize, useFontScaling
-
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorCopy Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assignValue
(String type, String param) clone()
boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static String
getLabel()
int
int
boolean
hasLabel()
protected static void
init()
static boolean
void
set
(TitleDrawProp dp) static void
setDefaults
(TitleDrawProp defaultProps) void
setDrawTitle
(boolean b) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setHasLabel
(boolean b) void
void
setLabelAlignment
(int a) void
setLabelPosition
(int align) void
setModified
(boolean modified) static boolean
static boolean
writeDefaults
(BufferedWriter writer) protected static boolean
writeDefaults
(String cls) static boolean
writeDefaults
(String className, BufferedWriter writer) void
writeProperties
(BufferedWriter writer, String endTag) Methods inherited from class hec.gfx2d.G2dLabelDrawProp
getAlign, getAlphaComposite, getBackgroundColor, getBackgroundFill, getClone, getDrawBackground, getDrawLine, getFont, getFontFamily, getFontSize, getFontStyle, getLineColor, getLineStyle, getLineWeight, getMaxFontSize, getMaxFontSize, getMinFontSize, getMinFontSize, getRotation, getShowLabel, getSpace, getTextColor, getTinyFontSize, loadDefaults, parseDefaultLine, readProperties, set, setAlign, setAlphaComposite, setBackgroundColor, setBackgroundFill, setDefaults, setDefaults, setDrawBackground, setDrawLine, setFont, setFontFamily, setFontSize, setFontStyle, setLineColor, setLineStyle, setLineWeight, setMaxFontSize, setMinFontSize, setRotation, setShowLabel, setSpace, setTextColor, setTinyFontSize, setUseFontScaling, useFontScaling
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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hec.gfx2d.PatternProperties
getAlphaComposite, getBackgroundColor, getBackgroundFill, getDrawBackground, getDrawLine, getLineColor, getLineStyle, getLineWeight, setAlphaComposite, setBackgroundColor, setBackgroundFill, setDrawBackground, setDrawLine, setLineColor, setLineStyle, setLineWeight
-
Field Details
-
END_TAG
- See Also:
-
BEGIN_TAG
- See Also:
-
drawTitle
public boolean drawTitle
-
-
Constructor Details
-
TitleDrawProp
public TitleDrawProp()Default Constructor -
TitleDrawProp
Copy Constructor
-
-
Method Details
-
init
protected static void init() -
clone
-
set
-
setDrawTitle
public void setDrawTitle(boolean b) -
getDrawTitle
public boolean getDrawTitle() -
writeProperties
- Overrides:
writeProperties
in classG2dLabelDrawProp
-
assignValue
- Overrides:
assignValue
in classG2dLabelDrawProp
-
getFileName
-
loadDefaults
-
setDefaults
-
writeDefaults
public static boolean writeDefaults() -
writeDefaults
-
writeDefaults
-
writeDefaults
-
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 classG2dLabelDrawProp
- 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 classG2dLabelDrawProp
- 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
-
getLabel
- Specified by:
getLabel
in interfaceLineLabelProperties
- Returns:
- See Also:
-
getLabelAlignment
public int getLabelAlignment()- Specified by:
getLabelAlignment
in interfaceLineLabelProperties
- Returns:
- See Also:
-
getLabelPosition
public int getLabelPosition()- Specified by:
getLabelPosition
in interfaceLineLabelProperties
- Returns:
- See Also:
-
hasLabel
public boolean hasLabel()- Specified by:
hasLabel
in interfaceLineLabelProperties
- Returns:
- See Also:
-
setHasLabel
public void setHasLabel(boolean b) - Specified by:
setHasLabel
in interfaceLineLabelProperties
- Parameters:
b
-- See Also:
-
setLabel
- Specified by:
setLabel
in interfaceLineLabelProperties
- Parameters:
lbl
-- See Also:
-
setLabelAlignment
public void setLabelAlignment(int a) - Specified by:
setLabelAlignment
in interfaceLineLabelProperties
- See Also:
-
setLabelPosition
public void setLabelPosition(int align) - Specified by:
setLabelPosition
in interfaceLineLabelProperties
- Parameters:
align
-- See Also:
-
setModified
public void setModified(boolean modified) - Specified by:
setModified
in interfaceLineLabelProperties
- Parameters:
modified
-- See Also:
-