public class SimpleMarkerFillPropertiesStyle extends AbstractStyle implements IMarkerFillPropertiesStyle
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleMarkerFillPropertiesStyle.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME |
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEGRID_FILL, RANDOM_FILL, SINGLE_CENTERED_SYMBOLPAPER, WORLD| Constructor and Description |
|---|
SimpleMarkerFillPropertiesStyle() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
java.lang.String |
getClassName() |
int |
getFillStyle()
Returns the style of the fill that use marker symbols to do it(the filled).
|
double |
getRotation()
Obtains the rotation of the marker symbol that compose the padding.
|
double |
getXOffset()
Returns the x offset of the markers that compose the padding
|
double |
getXSeparation()
Return the separation (x axis) between the markers that compose the padding
|
double |
getYOffset()
Returns the y offset of the markers that compose the padding
|
double |
getYSeparation()
Return the separation (y axis) between the markers that compose the padding
|
boolean |
isSuitableFor(ISymbol symbol)
True if this symbol is ok for the style or class.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setFillStyle(int fillStyle)
Sets the style for the fill that use marker symbols to do it(the filled).
|
void |
setRotation(double rotation)
Sets the rotation of the marker symbol that compose the padding.
|
void |
setSampleSymbol(IMarkerSymbol marker)
Define an utility symbol to show up a thumbnail
by default, this symbol is a SimpleMarkerSymbol.
|
void |
setXOffset(double offset)
Establishes de x offset of the markers that compose the padding
|
void |
setXSeparation(double separation)
Sets the separation (x axis) between the markers that compose the padding
|
void |
setYOffset(double offset)
Establishes the y offset of the markers that compose the padding
|
void |
setYSeparation(double separation)
Sets the separation (y axis) between the markers that compose the padding
|
getDescription, setDescriptioncopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, setDescriptioncloneQuietly, cloneQuietlycopyCartographicContextpublic static final java.lang.String SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME
public void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
IStyledrawInsideRectangle in interface IStyleg - Graphics2Dr - Rectanglepublic boolean isSuitableFor(ISymbol symbol)
IStyleisSuitableFor in interface IStylesymbol - ISymbolpublic java.lang.String getClassName()
public void drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
IStyledrawOutline in interface IStylepublic void setSampleSymbol(IMarkerSymbol marker)
Define an utility symbol to show up a thumbnail
by default, this symbol is a SimpleMarkerSymbol.
Thus, the drawInsideRectangle will always work. But
it can be changed with setSampleSymbol(IMakerSymbol).
If marker is null, it does nothing
setSampleSymbol in interface IMarkerFillPropertiesStylepublic double getRotation()
IMarkerFillPropertiesStylegetRotation in interface IMarkerFillPropertiesStylepublic void setRotation(double rotation)
IMarkerFillPropertiesStylesetRotation in interface IMarkerFillPropertiesStylepublic double getXOffset()
IMarkerFillPropertiesStylegetXOffset in interface IMarkerFillPropertiesStylepublic void setXOffset(double offset)
IMarkerFillPropertiesStylesetXOffset in interface IMarkerFillPropertiesStylepublic double getXSeparation()
IMarkerFillPropertiesStylegetXSeparation in interface IMarkerFillPropertiesStylepublic void setXSeparation(double separation)
IMarkerFillPropertiesStylesetXSeparation in interface IMarkerFillPropertiesStylepublic double getYOffset()
IMarkerFillPropertiesStylegetYOffset in interface IMarkerFillPropertiesStylepublic void setYOffset(double offset)
IMarkerFillPropertiesStylesetYOffset in interface IMarkerFillPropertiesStylepublic double getYSeparation()
IMarkerFillPropertiesStylegetYSeparation in interface IMarkerFillPropertiesStylepublic void setYSeparation(double separation)
IMarkerFillPropertiesStylesetYSeparation in interface IMarkerFillPropertiesStylepublic void setFillStyle(int fillStyle)
IMarkerFillPropertiesStylesetFillStyle in interface IMarkerFillPropertiesStylepublic int getFillStyle()
IMarkerFillPropertiesStylegetFillStyle in interface IMarkerFillPropertiesStylepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractStylejava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractStylePersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractStylePersistenceException