Modifier | Constructor and Description |
---|---|
protected |
FillImpl()
Creates a new instance of DefaultFill
|
|
FillImpl(FilterFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
accept(StyleVisitor visitor) |
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
Object |
clone()
Returns a clone of the FillImpl.
|
boolean |
equals(Object oth)
Compares a FillImpl with another for equality.
|
Expression |
getBackgroundColor()
This parameter gives the solid color that will be used as a background for a Fill.
|
Expression |
getColor()
This parameter gives the solid color that will be used for a Fill.
|
Graphic |
getGraphicFill()
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the
fill graphic to use.
|
Expression |
getOpacity()
This specifies the level of translucency to use when rendering the fill.
|
int |
hashCode()
Generates a hashcode for the FillImpl.
|
void |
setBackgroundColor(Expression rgb)
This parameter gives the solid color that will be used as a background for a Fill.
|
void |
setBackgroundColor(String rgb) |
void |
setColor(Expression rgb)
This parameter gives the solid color that will be used for a Fill.
|
void |
setColor(String rgb) |
void |
setFilterFactory(FilterFactory factory) |
void |
setGraphicFill(Graphic graphicFill)
Setter for property graphic.
|
void |
setOpacity(Expression opacity)
Setter for property opacity.
|
void |
setOpacity(String opacity) |
protected FillImpl()
public FillImpl(FilterFactory factory)
public void setFilterFactory(FilterFactory factory)
public Expression getColor()
Note: in CSS this parameter is just called Fill and not Color.
public void setColor(Expression rgb)
Note: in CSS this parameter is just called Fill and not Color.
rgb
- The color of the Fill encoded as a hexidecimal RGB value.public void setColor(String rgb)
public Expression getBackgroundColor()
public void setBackgroundColor(Expression rgb)
rgb
- The color of the Fill encoded as a hexidecimal RGB value.public void setBackgroundColor(String rgb)
public Expression getOpacity()
getOpacity
in interface Fill
public void setOpacity(Expression opacity)
opacity
- New value of property opacity.public void setOpacity(String opacity)
public Graphic getGraphicFill()
getGraphicFill
in interface Fill
public void setGraphicFill(Graphic graphicFill)
graphicFill
- New value of property graphic.public Object accept(StyleVisitor visitor, Object data)
Fill
public void accept(StyleVisitor visitor)
public Object clone()
public int hashCode()
public boolean equals(Object oth)
Two FillImpls are equal if they contain the same, color, backgroundcolor, opacity and graphicFill.
Copyright © 1996–2019 Geotools. All rights reserved.