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 voidassignValue(String type, String param) clone()booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static StringgetLabel()intintbooleanhasLabel()protected static voidinit()static booleanvoidset(TitleDrawProp dp) static voidsetDefaults(TitleDrawProp defaultProps) voidsetDrawTitle(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetHasLabel(boolean b) voidvoidsetLabelAlignment(int a) voidsetLabelPosition(int align) voidsetModified(boolean modified) static booleanstatic booleanwriteDefaults(BufferedWriter writer) protected static booleanwriteDefaults(String cls) static booleanwriteDefaults(String className, BufferedWriter writer) voidwriteProperties(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, useFontScalingMethods 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, setDefaultsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
writePropertiesin classG2dLabelDrawProp
-
assignValue
- Overrides:
assignValuein classG2dLabelDrawProp
-
getFileName
-
loadDefaults
-
setDefaults
-
writeDefaults
public static boolean writeDefaults() -
writeDefaults
-
writeDefaults
-
writeDefaults
-
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 classG2dLabelDrawProp- 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 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:
getLabelin interfaceLineLabelProperties- Returns:
- See Also:
-
getLabelAlignment
public int getLabelAlignment()- Specified by:
getLabelAlignmentin interfaceLineLabelProperties- Returns:
- See Also:
-
getLabelPosition
public int getLabelPosition()- Specified by:
getLabelPositionin interfaceLineLabelProperties- Returns:
- See Also:
-
hasLabel
public boolean hasLabel()- Specified by:
hasLabelin interfaceLineLabelProperties- Returns:
- See Also:
-
setHasLabel
public void setHasLabel(boolean b) - Specified by:
setHasLabelin interfaceLineLabelProperties- Parameters:
b-- See Also:
-
setLabel
- Specified by:
setLabelin interfaceLineLabelProperties- Parameters:
lbl-- See Also:
-
setLabelAlignment
public void setLabelAlignment(int a) - Specified by:
setLabelAlignmentin interfaceLineLabelProperties- See Also:
-
setLabelPosition
public void setLabelPosition(int align) - Specified by:
setLabelPositionin interfaceLineLabelProperties- Parameters:
align-- See Also:
-
setModified
public void setModified(boolean modified) - Specified by:
setModifiedin interfaceLineLabelProperties- Parameters:
modified-- See Also:
-