Package hec.gfx2d
Class G2dMarkerPointProperties
java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.G2dMarkerPointProperties
- All Implemented Interfaces:
LineLabelProperties,AsciiSerializable,FieldAccessor,Serializable,Cloneable
public class G2dMarkerPointProperties
extends PlotProperties
implements AsciiSerializable, LineLabelProperties, Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionclone()booleandrawLine()booleanstatic Stringfont2string(Font font) booleanintbooleanbooleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static StringgetLabel()intintintdoubledoubleintintbooleanhasLabel()static booleanvoidreadProperties(BufferedReader in, String endTag) static voidsetDefaults(G2dMarkerPointProperties defaultProps) protected static voidsetDefaults(G2dMarkerPointProperties defaultProps, String cls) voidsetDrawLabel(boolean b) voidsetDrawOnAxis(int propValue) voidsetDrawPoint(boolean b) voidsetEditableProperties(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetHasLabel(boolean b) voidvoidsetLabelAlign(int i) voidsetLabelAlignment(int align) voidvoidsetLabelFont(Font f) voidsetLabelPosition(int i) voidvoidsetMarkerXValue(double propValue) voidsetMarkerYValue(double yValue) voidsetModified(boolean modified) voidvoidsetPointSize(int i) voidsetPointStyle(int sType) static Fontstring2font(String str) static booleanprotected static booleanwriteDefaults(String cls) 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, writeDefaults
-
Field Details
-
markerXValue
public double markerXValue -
markerYValue
public double markerYValue -
markerLabel
-
drawOnAxis
public int drawOnAxis -
pointColor
-
fillColor
-
drawPoint
public boolean drawPoint -
drawLabel
public boolean drawLabel -
pointSize
public int pointSize -
labelPosition
public int labelPosition -
labelAlign
public int labelAlign -
editableProperties
public boolean editableProperties -
labelColor
-
labelFont
-
pointStyle
public int pointStyle -
MARKER_BEGIN
- See Also:
-
MARKER_END
- See Also:
-
-
Constructor Details
-
G2dMarkerPointProperties
public G2dMarkerPointProperties() -
G2dMarkerPointProperties
-
-
Method Details
-
equals
-
setModified
public void setModified(boolean modified) - Specified by:
setModifiedin interfaceLineLabelProperties
-
setMarkerLabel
-
setPointColor
-
setFillColor
-
setDrawPoint
public void setDrawPoint(boolean b) -
setDrawLabel
public void setDrawLabel(boolean b) -
setPointSize
public void setPointSize(int i) -
setLabelPosition
public void setLabelPosition(int i) - Specified by:
setLabelPositionin interfaceLineLabelProperties
-
setLabelAlign
public void setLabelAlign(int i) -
setEditableProperties
public void setEditableProperties(boolean b) -
setLabelColor
-
setLabelFont
-
getMarkerXValue
public double getMarkerXValue() -
getMarkerYValue
public double getMarkerYValue() -
getMarkerLabel
-
getDrawOnAxis
public int getDrawOnAxis() -
getPointColor
-
getFillColor
-
getDrawPoint
public boolean getDrawPoint() -
getDrawLabel
public boolean getDrawLabel() -
getPointSize
public int getPointSize() -
getLabelPosition
public int getLabelPosition()- Specified by:
getLabelPositionin interfaceLineLabelProperties
-
getLabelAlign
public int getLabelAlign() -
getEditableProperties
public boolean getEditableProperties() -
getLabelColor
-
getLabelFont
-
getFileName
-
getPointStyle
public int getPointStyle() -
setPointStyle
public void setPointStyle(int sType) -
setDrawOnAxis
public void setDrawOnAxis(int propValue) -
setMarkerXValue
public void setMarkerXValue(double propValue) -
setMarkerYValue
public void setMarkerYValue(double yValue) -
drawLine
public boolean drawLine() -
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
-
writeDefaults
public static boolean writeDefaults() -
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
-