|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.styling.MarkImpl
public class MarkImpl
Default implementation of Mark.
Field Summary |
---|
Fields inherited from interface org.geotools.styling.Mark |
---|
MARKS_EMPTY |
Fields inherited from interface org.geotools.styling.Symbol |
---|
SYMBOLS_EMPTY |
Constructor Summary | |
---|---|
MarkImpl()
Creates a new instance of DefaultMark |
|
MarkImpl(org.opengis.filter.FilterFactory filterFactory,
ExternalMark external)
|
|
MarkImpl(java.lang.String name)
|
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
java.lang.Object |
accept(org.opengis.style.StyleVisitor visitor,
java.lang.Object data)
|
java.lang.Object |
clone()
Creates a deep copy of the Mark. |
boolean |
equals(java.lang.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. |
org.opengis.filter.expression.Expression |
getRotation()
Getter for property rotation. |
org.opengis.filter.expression.Expression |
getSize()
Getter for property size. |
StrokeImpl |
getStroke()
This paramterer defines which stroke style should be used when rendering the Mark. |
org.opengis.filter.expression.Expression |
getWellKnownName()
This parameter gives the well-known name of the shape of the mark. Allowed names include at least "square", "circle", "triangle", "star", "cross" and "x" though renderers may draw a different symbol instead if they don't have a shape for all of these. |
int |
hashCode()
The hashcode override for the MarkImpl. |
void |
setExternalMark(org.opengis.style.ExternalMark external)
Mark defined by an external resource. |
void |
setFill(org.opengis.style.Fill fill)
Setter for property fill. |
void |
setRotation(double rotation)
|
void |
setRotation(org.opengis.filter.expression.Expression rotation)
|
void |
setSize(org.opengis.filter.expression.Expression size)
Size to display the mark. |
void |
setSize(int size)
|
void |
setStroke(org.opengis.style.Stroke stroke)
Setter for property stroke. |
void |
setWellKnownName(org.opengis.filter.expression.Expression wellKnownName)
Setter for property wellKnownName. |
void |
setWellKnownName(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkImpl()
public MarkImpl(java.lang.String name)
public MarkImpl(org.opengis.filter.FilterFactory filterFactory, ExternalMark external)
Method Detail |
---|
public FillImpl getFill()
getFill
in interface org.opengis.style.Mark
public StrokeImpl getStroke()
getStroke
in interface org.opengis.style.Mark
public org.opengis.filter.expression.Expression getWellKnownName()
getWellKnownName
in interface org.opengis.style.Mark
public void setFill(org.opengis.style.Fill fill)
fill
- New value of property fill.public void setStroke(org.opengis.style.Stroke stroke)
stroke
- New value of property stroke.public void setSize(org.opengis.filter.expression.Expression size)
Mark
If this value is not provided or is Expression.NIL then a default of 16x16 (or the natural size of the image) will be used.
public void setSize(int size)
public void setWellKnownName(org.opengis.filter.expression.Expression wellKnownName)
wellKnownName
- New value of property wellKnownName.public void setWellKnownName(java.lang.String name)
public void setRotation(org.opengis.filter.expression.Expression rotation)
public void setRotation(double rotation)
public org.opengis.filter.expression.Expression getSize()
public org.opengis.filter.expression.Expression getRotation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
accept
in interface org.opengis.style.Mark
public void accept(StyleVisitor visitor)
accept
in interface Symbol
public java.lang.Object clone()
Only the fill and stroke are cloned since Expressions should be immutable.
clone
in class java.lang.Object
org.geotools.styling.Mark#clone()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.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 java.lang.Object
oth
- The Other MarkImpl to compare with.
public ExternalMarkImpl getExternalMark()
Mark
getExternalMark
in interface org.opengis.style.Mark
public void setExternalMark(org.opengis.style.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 |