Package hec.gfx2d
Class G2dMarkerProperties
java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.G2dMarkerProperties
- All Implemented Interfaces:
LineLabelProperties,LineProperties,AsciiSerializable,FieldAccessor,Serializable,Cloneable
public class G2dMarkerProperties
extends PlotProperties
implements AsciiSerializable, LineLabelProperties, Cloneable, LineProperties
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleandrawLine()booleanbooleanstatic Stringfont2string(Font font) booleanbooleanintbooleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static StringintintgetLabel()intintintfloat[]floatdoublegetName()floatintbooleanhasLabel()static voidinit()static booleanstatic voidvoidreadProperties(BufferedReader in, String endTag) static voidsetDefaults(G2dMarkerProperties defaultProps) protected static voidsetDefaults(G2dMarkerProperties defaultProps, String cls) voidsetDrawLabel(boolean b) voidsetDrawLine(boolean b) voidsetDrawOnAxis(int propValue) voidsetEditableProperties(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidvoidsetFillPattern(int i) voidsetFillType(int i) voidsetHasLabel(boolean b) voidvoidsetLabelAlign(int i) voidsetLabelAlignment(int align) voidvoidsetLabelFont(Font f) voidsetLabelPosition(int i) voidvoidsetLinePattern(float[] f) voidsetLineWidth(float f) voidvoidsetMarkerValue(double propValue) voidsetModified(boolean modified) voidstatic Fontstring2font(String str) static booleanprotected static booleanwriteDefaults(String cls, BufferedWriter writer) voidwriteProperties(BufferedWriter writer, String endTag) static booleanwriterDefaults(BufferedWriter writer) 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, writeDefaults
-
Field Details
-
_name
-
markerValue
public double markerValue -
markerLabel
-
drawOnAxis
public int drawOnAxis -
lineColor
-
fillColor
-
drawLine
public boolean drawLine -
drawLabel
public boolean drawLabel -
fillType
public int fillType -
fillPattern
public int fillPattern -
fillPaint
-
lineWidth
public float lineWidth -
lineStylePattern
public float[] lineStylePattern -
labelPosition
public int labelPosition -
labelAlign
public int labelAlign -
editableProperties
public boolean editableProperties -
labelColor
-
labelFont
-
MARKER_BEGIN
- See Also:
-
MARKER_END
- See Also:
-
-
Constructor Details
-
G2dMarkerProperties
public G2dMarkerProperties() -
G2dMarkerProperties
-
G2dMarkerProperties
-
-
Method Details
-
init
public static void init() -
equals
-
setName
-
setModified
public void setModified(boolean modified) - Specified by:
setModifiedin interfaceLineLabelProperties
-
setMarkerLabel
-
setLineColor
-
setFillColor
-
setDrawLine
public void setDrawLine(boolean b) -
setDrawLabel
public void setDrawLabel(boolean b) -
setFillType
public void setFillType(int i) -
setFillPattern
public void setFillPattern(int i) -
setFillPaint
-
setLineWidth
public void setLineWidth(float f) -
setLinePattern
public void setLinePattern(float[] f) -
setLabelPosition
public void setLabelPosition(int i) - Specified by:
setLabelPositionin interfaceLineLabelProperties
-
setLabelAlign
public void setLabelAlign(int i) -
setEditableProperties
public void setEditableProperties(boolean b) -
setLabelColor
-
setLabelFont
-
getMarkerValue
public double getMarkerValue() -
getMarkerLabel
-
getDrawOnAxis
public int getDrawOnAxis() -
getLineColor
- Specified by:
getLineColorin interfaceLineProperties- Returns:
-
getFillColor
- Specified by:
getFillColorin interfaceLineProperties- Returns:
-
getDrawLine
public boolean getDrawLine() -
getDrawLabel
public boolean getDrawLabel() -
getFillType
public int getFillType()- Specified by:
getFillTypein interfaceLineProperties- Returns:
-
getFillPattern
public int getFillPattern()- Specified by:
getFillPatternin interfaceLineProperties- Returns:
-
getFillPaint
-
getLineWidth
public float getLineWidth()- Specified by:
getLineWidthin interfaceLineProperties- Returns:
-
getLinePattern
public float[] getLinePattern()- Specified by:
getLinePatternin interfaceLineProperties- Returns:
-
getLabelPosition
public int getLabelPosition()- Specified by:
getLabelPositionin interfaceLineLabelProperties
-
getLabelAlign
public int getLabelAlign() -
getEditableProperties
public boolean getEditableProperties() -
getLabelColor
-
getLabelFont
-
getName
-
getFileName
-
setDrawOnAxis
public void setDrawOnAxis(int propValue) -
setMarkerValue
public void setMarkerValue(double propValue) -
drawLine
public boolean drawLine()- Specified by:
drawLinein interfaceLineProperties- Returns:
-
setHasLabel
public void setHasLabel(boolean b) - Specified by:
setHasLabelin interfaceLineLabelProperties
-
setLabelAlignment
public void setLabelAlignment(int align) - Specified by:
setLabelAlignmentin interfaceLineLabelProperties
-
setLabel
- Specified by:
setLabelin interfaceLineLabelProperties
-
getLabelAlignment
public int getLabelAlignment()- Specified by:
getLabelAlignmentin interfaceLineLabelProperties
-
getLabel
- Specified by:
getLabelin interfaceLineLabelProperties
-
hasLabel
public boolean hasLabel()- Specified by:
hasLabelin interfaceLineLabelProperties
-
font2string
-
string2font
-
writeProperties
- Specified by:
writePropertiesin interfaceLineProperties
-
writeDefaults
public static boolean writeDefaults() -
writerDefaults
-
writeDefaults
-
readProperties
-
clone
-
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
-
loadDefaults
-
setDefaults
-
setDefaults
-
drawPoints
public boolean drawPoints()- Specified by:
drawPointsin interfaceLineProperties- Returns:
-
getSymbolType
public int getSymbolType()- Specified by:
getSymbolTypein interfaceLineProperties- Returns:
-
getPointFillColor
- Specified by:
getPointFillColorin interfaceLineProperties- Returns:
-
getPointLineColor
- Specified by:
getPointLineColorin interfaceLineProperties- Returns:
-
getSymbolSize
public float getSymbolSize()- Specified by:
getSymbolSizein interfaceLineProperties- Returns:
-
main
- Throws:
IOException
-