Package hec.gfx2d
Class G2dPolygonProperties
java.lang.Object
hec.gfx2d.G2dPolygonProperties
- All Implemented Interfaces:
PatternProperties,AsciiSerializable,FieldAccessor,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloat[]floatbooleanbooleanDetermines the color of the fillintDetermines the pattern to fill the polygond with -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatintbooleanbooleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.float[]floatvoidreadProperties(BufferedReader in, String endTag) voidsetAlphaComposite(float flt) voidvoidsetBackgroundFill(int i) voidsetDrawBackground(boolean b) voidsetDrawLine(boolean b) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetLineStyle(float[] s) voidsetLineWeight(float f) voidwriteProperties(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:
setDrawLinein interfacePatternProperties
-
setDrawBackground
public void setDrawBackground(boolean b) - Specified by:
setDrawBackgroundin interfacePatternProperties
-
setLineColor
- Specified by:
setLineColorin interfacePatternProperties
-
setLineStyle
public void setLineStyle(float[] s) - Specified by:
setLineStylein interfacePatternProperties
-
setLineWeight
public void setLineWeight(float f) - Specified by:
setLineWeightin interfacePatternProperties
-
setBackgroundColor
- Specified by:
setBackgroundColorin interfacePatternProperties
-
setBackgroundFill
public void setBackgroundFill(int i) - Specified by:
setBackgroundFillin interfacePatternProperties
-
setAlphaComposite
public void setAlphaComposite(float flt) - Specified by:
setAlphaCompositein interfacePatternProperties
-
getLineColor
- Specified by:
getLineColorin interfacePatternProperties
-
getLineStyle
public float[] getLineStyle()- Specified by:
getLineStylein interfacePatternProperties
-
getLineWeight
public float getLineWeight()- Specified by:
getLineWeightin interfacePatternProperties
-
getBackgroundColor
- Specified by:
getBackgroundColorin interfacePatternProperties
-
getDrawLine
public boolean getDrawLine()- Specified by:
getDrawLinein interfacePatternProperties
-
getDrawBackground
public boolean getDrawBackground()- Specified by:
getDrawBackgroundin interfacePatternProperties
-
getBackgroundFill
public int getBackgroundFill()- Specified by:
getBackgroundFillin interfacePatternProperties
-
getAlphaComposite
public float getAlphaComposite()- Specified by:
getAlphaCompositein interfacePatternProperties
-
writeProperties
-
readProperties
-
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
-