|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMarkImpl
public class MarkImpl
Default implementation of Mark.
Field Summary |
---|
Fields inherited from interface Mark |
---|
MARKS_EMPTY |
Fields inherited from interface Symbol |
---|
SYMBOLS_EMPTY |
Constructor Summary | |
---|---|
MarkImpl()
Creates a new instance of DefaultMark |
|
MarkImpl(FilterFactory filterFactory,
ExternalMark external)
|
|
MarkImpl(String name)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor |
Object |
clone()
Creates a deep copy of the Mark. |
boolean |
equals(Object oth)
Compares this MarkImpl with another for equality. |
ExternalMarkImpl |
getExternalMark()
Mark defined by an external resource. |
FillImpl |
getFill()
This parameter defines which fill style to use when rendering the Mark. |
StrokeImpl |
getStroke()
This paramterer defines which stroke style should be used when rendering the Mark. |
Expression |
getWellKnownName()
This parameter gives the well-known name of the shape of the mark. |
int |
hashCode()
The hashcode override for the MarkImpl. |
void |
setExternalMark(ExternalMark external)
Mark defined by an external resource. |
void |
setFill(Fill fill)
Setter for property fill. |
void |
setStroke(Stroke stroke)
Setter for property stroke. |
void |
setWellKnownName(Expression wellKnownName)
Setter for property wellKnownName. |
void |
setWellKnownName(String name)
|
String |
toString()
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkImpl()
public MarkImpl(String name)
public MarkImpl(FilterFactory filterFactory, ExternalMark external)
Method Detail |
---|
public FillImpl getFill()
getFill
in interface Mark
public StrokeImpl getStroke()
getStroke
in interface Mark
public Expression getWellKnownName()
getWellKnownName
in interface Mark
public void setFill(Fill fill)
fill
- New value of property fill.public void setStroke(Stroke stroke)
stroke
- New value of property stroke.public void setWellKnownName(Expression wellKnownName)
wellKnownName
- New value of property wellKnownName.public void setWellKnownName(String name)
public String toString()
toString
in class Object
public Object accept(StyleVisitor visitor, Object data)
Mark
accept
in interface Mark
visitor
- the style visitorpublic void accept(StyleVisitor visitor)
accept
in interface Symbol
public Object clone()
Only the fill and stroke are cloned since Expressions should be immutable.
clone
in class Object
org.geotools.styling.Mark#clone()
public int hashCode()
hashCode
in class Object
public boolean equals(Object oth)
Two MarkImpls are equal if they have the same well Known Name, the same size and rotation and the same stroke and fill.
equals
in class Object
oth
- The Other MarkImpl to compare with.
public ExternalMarkImpl getExternalMark()
Mark
getExternalMark
in interface Mark
public void setExternalMark(ExternalMark external)
Mark
external
- Indicate an mark defined by an external resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |