public class SimpleMarkerFillPropertiesStyle extends AbstractStyle implements IMarkerFillPropertiesStyle
Modifier and Type | Class and Description |
---|---|
static class |
SimpleMarkerFillPropertiesStyle.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static String |
SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME |
STYLE_PERSISTENCE_DEFINITION_NAME
GRID_FILL, RANDOM_FILL, SINGLE_CENTERED_SYMBOL
Constructor and Description |
---|
SimpleMarkerFillPropertiesStyle() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
void |
drawInsideRectangle(Graphics2D g,
Rectangle r)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
void |
drawOutline(Graphics2D g,
Rectangle r)
Used to show an outline of the style to graphically show its properties.
|
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, setDescription
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, setDescription
public static final String SIMPLE_MARKER_FILL_STYLE_PERSISTENCE_DEFINITION_NAME
public void drawInsideRectangle(Graphics2D g, Rectangle r)
IStyle
drawInsideRectangle
in interface IStyle
g
- Graphics2Dr
- Rectanglepublic boolean isSuitableFor(ISymbol symbol)
IStyle
isSuitableFor
in interface IStyle
symbol
- ISymbolpublic String getClassName()
public void drawOutline(Graphics2D g, Rectangle r)
IStyle
drawOutline
in interface IStyle
public 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 IMarkerFillPropertiesStyle
public double getRotation()
IMarkerFillPropertiesStyle
getRotation
in interface IMarkerFillPropertiesStyle
public void setRotation(double rotation)
IMarkerFillPropertiesStyle
setRotation
in interface IMarkerFillPropertiesStyle
public double getXOffset()
IMarkerFillPropertiesStyle
getXOffset
in interface IMarkerFillPropertiesStyle
public void setXOffset(double offset)
IMarkerFillPropertiesStyle
setXOffset
in interface IMarkerFillPropertiesStyle
public double getXSeparation()
IMarkerFillPropertiesStyle
getXSeparation
in interface IMarkerFillPropertiesStyle
public void setXSeparation(double separation)
IMarkerFillPropertiesStyle
setXSeparation
in interface IMarkerFillPropertiesStyle
public double getYOffset()
IMarkerFillPropertiesStyle
getYOffset
in interface IMarkerFillPropertiesStyle
public void setYOffset(double offset)
IMarkerFillPropertiesStyle
setYOffset
in interface IMarkerFillPropertiesStyle
public double getYSeparation()
IMarkerFillPropertiesStyle
getYSeparation
in interface IMarkerFillPropertiesStyle
public void setYSeparation(double separation)
IMarkerFillPropertiesStyle
setYSeparation
in interface IMarkerFillPropertiesStyle
public void setFillStyle(int fillStyle)
IMarkerFillPropertiesStyle
setFillStyle
in interface IMarkerFillPropertiesStyle
public int getFillStyle()
IMarkerFillPropertiesStyle
getFillStyle
in interface IMarkerFillPropertiesStyle
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class AbstractStyle
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
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractStyle
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractStyle
PersistenceException