Package hec.gfx2d
Class G2dPolygonProperties
java.lang.Object
hec.gfx2d.G2dPolygonProperties
- All Implemented Interfaces:
PatternProperties
,AsciiSerializable
,FieldAccessor
,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float[]
float
boolean
boolean
Determines the color of the fillint
Determines the pattern to fill the polygond with -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
boolean
boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.float[]
float
void
readProperties
(BufferedReader in, String endTag) void
setAlphaComposite
(float flt) void
void
setBackgroundFill
(int i) void
setDrawBackground
(boolean b) void
setDrawLine
(boolean b) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
void
setLineStyle
(float[] s) void
setLineWeight
(float f) void
writeProperties
(BufferedWriter writer, String endTag)
-
Field Details
-
fillColor
Determines the color of the fill -
fillPattern
public int fillPatternDetermines the pattern to fill the polygond with -
drawBorder
public boolean drawBorder -
drawBackground
public boolean drawBackground -
borderColor
-
borderStyle
public float[] borderStyle -
borderWeight
public float borderWeight -
alphaComposite
public float alphaComposite
-
-
Constructor Details
-
G2dPolygonProperties
public G2dPolygonProperties()
-
-
Method Details
-
setDrawLine
public void setDrawLine(boolean b) - Specified by:
setDrawLine
in interfacePatternProperties
-
setDrawBackground
public void setDrawBackground(boolean b) - Specified by:
setDrawBackground
in interfacePatternProperties
-
setLineColor
- Specified by:
setLineColor
in interfacePatternProperties
-
setLineStyle
public void setLineStyle(float[] s) - Specified by:
setLineStyle
in interfacePatternProperties
-
setLineWeight
public void setLineWeight(float f) - Specified by:
setLineWeight
in interfacePatternProperties
-
setBackgroundColor
- Specified by:
setBackgroundColor
in interfacePatternProperties
-
setBackgroundFill
public void setBackgroundFill(int i) - Specified by:
setBackgroundFill
in interfacePatternProperties
-
setAlphaComposite
public void setAlphaComposite(float flt) - Specified by:
setAlphaComposite
in interfacePatternProperties
-
getLineColor
- Specified by:
getLineColor
in interfacePatternProperties
-
getLineStyle
public float[] getLineStyle()- Specified by:
getLineStyle
in interfacePatternProperties
-
getLineWeight
public float getLineWeight()- Specified by:
getLineWeight
in interfacePatternProperties
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfacePatternProperties
-
getDrawLine
public boolean getDrawLine()- Specified by:
getDrawLine
in interfacePatternProperties
-
getDrawBackground
public boolean getDrawBackground()- Specified by:
getDrawBackground
in interfacePatternProperties
-
getBackgroundFill
public int getBackgroundFill()- Specified by:
getBackgroundFill
in interfacePatternProperties
-
getAlphaComposite
public float getAlphaComposite()- Specified by:
getAlphaComposite
in interfacePatternProperties
-
writeProperties
-
readProperties
-
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
-