public abstract class AbstractFillSymbol extends AbstractSymbol implements IFillSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFillSymbol.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
AbstractFillSymbol() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
double |
getCartographicSize(ViewPort viewPort,
double dpi,
Geometry geom) |
java.awt.Color |
getColor()
Returns the
Color to use to render the symbol. |
int |
getFillAlpha()
Obtains the transparency of the fill symbol
|
java.awt.Color |
getFillColor() |
ILineSymbol |
getOutline()
Obtains the ILineSymbol interface of the outline
|
protected Geometry |
getSampleGeometry(java.awt.Rectangle r) |
boolean |
hasFill() |
boolean |
hasOutline() |
boolean |
isSuitableFor(Geometry geom)
True if this symbol is ok for the geometry.
|
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 |
setCartographicSize(double cartographicSize,
Geometry geom) |
void |
setColor(java.awt.Color color)
Sets the
Color to use to render the symbol. |
void |
setFillColor(java.awt.Color color)
Sets the color that will be used to draw the filling pattern of this symbol.
|
void |
setHasFill(boolean hasFill) |
void |
setHasOutline(boolean hasOutline) |
void |
setOutline(ILineSymbol outline)
Sets the color of the outline.
|
void |
setUnit(int unitIndex)
Defines the unit used to express measures.
|
double |
toCartographicSize(ViewPort viewPort,
double dpi,
Geometry geom) |
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, getSymbolType, isShapeVisible, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, toCartographicUnitspublic static final java.lang.String FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME
public boolean isSuitableFor(Geometry geom)
ISymbolisSuitableFor in interface ISymbolisSuitableFor in interface IFillSymbolpublic void setFillColor(java.awt.Color color)
IFillSymbolsetFillColor in interface IFillSymbolpublic void setOutline(ILineSymbol outline)
IFillSymbolsetOutline in interface IFillSymbolpublic java.awt.Color getFillColor()
getFillColor in interface IFillSymbolpublic ILineSymbol getOutline()
IFillSymbolgetOutline in interface IFillSymbolpublic int getFillAlpha()
IFillSymbolgetFillAlpha in interface IFillSymbolpublic void setCartographicSize(double cartographicSize,
Geometry geom)
public boolean hasFill()
hasFill in interface IFillSymbolpublic void setHasFill(boolean hasFill)
setHasFill in interface IFillSymbolpublic boolean hasOutline()
hasOutline in interface IFillSymbolpublic void setHasOutline(boolean hasOutline)
setHasOutline in interface IFillSymbolpublic void setUnit(int unitIndex)
CartographicSupportsetUnit in interface CartographicSupportsetUnit in class AbstractCartographicSupportpublic java.awt.Color getColor()
ISymbolColor to use to render the symbol.public void setColor(java.awt.Color color)
ISymbolColor to use to render the symbol.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractSymboljava.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 AbstractSymbolPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractSymbolPersistenceExceptionprotected Geometry getSampleGeometry(java.awt.Rectangle r)