Package org.geotools.styling
Class FillImpl
- Object
- 
- FillImpl
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFillImpl.ConstantFill
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedFillImpl()Creates a new instance of DefaultFillFillImpl(FilterFactory factory)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorObjectclone()Returns a clone of the FillImpl.booleanequals(Object oth)Compares a FillImpl with another for equality.ExpressiongetColor()This parameter gives the solid color that will be used for a Fill.
 The color value is RGB-encoded using two hexadecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.GraphicgetGraphicFill()This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.ExpressiongetOpacity()This specifies the level of translucency to use when rendering the fill.inthashCode()Generates a hashcode for the FillImpl.voidsetColor(String rgb)voidsetColor(Expression rgb)This parameter gives the solid color that will be used for a Fill.
 The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.voidsetFilterFactory(FilterFactory factory)voidsetGraphicFill(Graphic graphicFill)Setter for property graphic.voidsetOpacity(String opacity)voidsetOpacity(Expression opacity)Setter for property opacity.
 
- 
- 
- 
Constructor Detail- 
FillImplprotected FillImpl() Creates a new instance of DefaultFill
 - 
FillImplpublic FillImpl(FilterFactory factory) 
 
- 
 - 
Method Detail- 
setFilterFactorypublic void setFilterFactory(FilterFactory factory) 
 - 
getColorpublic Expression getColor() This parameter gives the solid color that will be used for a Fill.
 The color value is RGB-encoded using two hexadecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexadecimal digits between A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be 50% gray ("#808080").Note: in CSS this parameter is just called Fill and not Color. 
 - 
setColorpublic void setColor(Expression rgb) This parameter gives the solid color that will be used for a Fill.
 The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits between A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks).Note: in CSS this parameter is just called Fill and not Color. 
 - 
setColorpublic void setColor(String rgb) 
 - 
getOpacitypublic Expression getOpacity() This specifies the level of translucency to use when rendering the fill.
 The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque, with a linear scale of translucency for intermediate values.
 For example, "0.65" would represent 65% opacity. The default value is 1.0 (opaque).- Specified by:
- getOpacityin interface- Fill
- Returns:
- The opacity of the fill, where 0.0 is completely transparent and 1.0 is completely opaque.
 
 - 
setOpacitypublic void setOpacity(Expression opacity) Setter for property opacity.- Specified by:
- setOpacityin interface- Fill
- Parameters:
- opacity- New value of property opacity.
 
 - 
setOpacitypublic void setOpacity(String opacity) 
 - 
getGraphicFillpublic Graphic getGraphicFill() This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.- Specified by:
- getGraphicFillin interface- Fill
- Returns:
- graphic The graphic to use as a stipple fill. If null then no Stipple fill should be used.
 
 - 
setGraphicFillpublic void setGraphicFill(Graphic graphicFill) Setter for property graphic.- Specified by:
- setGraphicFillin interface- Fill
- Parameters:
- graphicFill- New value of property graphic.
 
 - 
acceptpublic Object accept(TraversingStyleVisitor visitor, Object data) Description copied from interface:Fillcalls the visit method of a StyleVisitor
 - 
acceptpublic void accept(StyleVisitor visitor) 
 - 
clonepublic Object clone() Returns a clone of the FillImpl.- Specified by:
- clonein interface- Cloneable
- Overrides:
- clonein class- Object
- Returns:
- A copy of this object.
- See Also:
- Object.clone()
 
 - 
hashCodepublic int hashCode() Generates a hashcode for the FillImpl.
 - 
equalspublic boolean equals(Object oth) Compares a FillImpl with another for equality.Two FillImpls are equal if they contain the same, color, backgroundcolor, opacity and graphicFill. 
 
- 
 
-