public class DefaultMask extends AbstractStyle implements IMask
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultMask.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_MASK_PERSISTENCE_DEFINITION_NAME |
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEPAPER, WORLD| Constructor and Description |
|---|
DefaultMask() |
| 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.
|
IFillSymbol |
getFillSymbol() |
Geometry |
getHaloShape(java.awt.Shape shp) |
double |
getSize() |
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 |
setFillSymbol(IFillSymbol fill) |
void |
setSize(double size) |
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 DEFAULT_MASK_PERSISTENCE_DEFINITION_NAME
public IFillSymbol getFillSymbol()
getFillSymbol in interface IMaskpublic void setFillSymbol(IFillSymbol fill)
setFillSymbol in interface IMaskpublic void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.Rectangle r)
IStyledrawInsideRectangle in interface IStyleg - Graphics2Dr - Rectanglepublic Geometry getHaloShape(java.awt.Shape shp)
getHaloShape in interface IMaskpublic boolean isSuitableFor(ISymbol symbol)
IStyleisSuitableFor in interface IStylesymbol - ISymbolpublic void drawOutline(java.awt.Graphics2D g,
java.awt.Rectangle r)
IStyledrawOutline in interface IStylepublic 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