Package com.iizix.prop
Class GFillPattern
java.lang.Object
com.iizix.prop.GFill
com.iizix.prop.GFillPattern
- All Implemented Interfaces:
- Cloneable
Pattern fill for a shape with a close relation to dojox/gfx.Pattern.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class com.iizix.prop.GFill- GFill.Type
- Field SummaryFieldsModifier and TypeFieldDescription- final intThe height of the pattern image.- final intThe width of the pattern image.- final StringThe image reference string.- final intThe X coordinate of the position of the pattern.- final intThe Y coordinate of the position of the pattern.
- Constructor SummaryConstructorsConstructorDescription- GFillPattern- (int x, int y, int width, int height, String imageReference) Creates a pattern fill from an image reference string path as "module:/image/path".
- Method SummaryModifier and TypeMethodDescription- clone()Clones this instance.- booleanChecks if two fill objects are equal.Gets the image reference string path.- getRect()Gets the rectangle of the image x, y, width and height.- getType()Gets the fill type.- protected StringReturns the parameter string representing the state of this event.
- Field Details- xpublic final int xThe X coordinate of the position of the pattern.
- ypublic final int yThe Y coordinate of the position of the pattern.
- cxpublic final int cxThe height of the pattern image.
- cypublic final int cyThe width of the pattern image.
- imageReferenceThe image reference string.
 
- Constructor Details- GFillPatternCreates a pattern fill from an image reference string path as "module:/image/path".- Parameters:
- x- The X coordinate of the position of the pattern.
- y- The Y coordinate of the position of the pattern.
- width- The height of the pattern image.
- height- The width of the pattern image.
- imageReference- The image reference.
- Throws:
- IllegalArgumentException- For invalid x, y, width or height values.
- NullPointerException- If imageReference is null.
 
 
- Method Details- getRectGets the rectangle of the image x, y, width and height.
- getImageReferenceGets the image reference string path.
- getTypeGets the fill type.
- equalsChecks if two fill objects are equal.
- cloneClones this instance.
- paramStringReturns the parameter string representing the state of this event. This string is useful for debugging. Subclasses adds extra information to the string by preceding it with a comma followed by the extra information.- Returns:
- the parameter string of this event.