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()
boolean
drawLine()
boolean
static String
font2string
(Font font) boolean
int
boolean
boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static String
getLabel()
int
int
int
double
double
int
int
boolean
hasLabel()
static boolean
void
readProperties
(BufferedReader in, String endTag) static void
setDefaults
(G2dMarkerPointProperties defaultProps) protected static void
setDefaults
(G2dMarkerPointProperties defaultProps, String cls) void
setDrawLabel
(boolean b) void
setDrawOnAxis
(int propValue) void
setDrawPoint
(boolean b) void
setEditableProperties
(boolean b) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
void
setHasLabel
(boolean b) void
void
setLabelAlign
(int i) void
setLabelAlignment
(int align) void
void
setLabelFont
(Font f) void
setLabelPosition
(int i) void
void
setMarkerXValue
(double propValue) void
setMarkerYValue
(double yValue) void
setModified
(boolean modified) void
void
setPointSize
(int i) void
setPointStyle
(int sType) static Font
string2font
(String str) static boolean
protected static boolean
writeDefaults
(String cls) void
writeProperties
(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:
setModified
in 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:
setLabelPosition
in 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:
getLabelPosition
in 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:
setHasLabel
in interfaceLineLabelProperties
-
setLabelAlignment
public void setLabelAlignment(int align) - Specified by:
setLabelAlignment
in interfaceLineLabelProperties
-
setLabel
- Specified by:
setLabel
in interfaceLineLabelProperties
-
getLabelAlignment
public int getLabelAlignment()- Specified by:
getLabelAlignment
in interfaceLineLabelProperties
-
getLabel
- Specified by:
getLabel
in interfaceLineLabelProperties
-
hasLabel
public boolean hasLabel()- Specified by:
hasLabel
in interfaceLineLabelProperties
-
font2string
-
string2font
-
writeProperties
-
writeDefaults
public static boolean writeDefaults() -
writeDefaults
-
readProperties
-
clone
-
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
- 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
- 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
-