public class DefaultDynamicSymbol extends AbstractSymbol implements DynamicSymbol
AbstractSymbol.RegisterPersistenceCartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static Expression |
eFillColor |
static Expression |
eOutlineColor |
static Expression |
eRotation |
static Expression |
eSize |
FeatureSymbolTable |
featureSymbolTable |
SymbolTable |
symbolTable |
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMENAMESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
DefaultDynamicSymbol() |
| Modifier and Type | Method and Description |
|---|---|
DynamicSymbol |
clone()
Creates a copy of the object.
|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel,
java.awt.Rectangle r) |
protected void |
drawLine(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel) |
protected void |
drawPoint(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel) |
protected void |
drawPolygon(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel) |
java.awt.Color |
getColor()
Returns the
Color to use to render the symbol. |
Expression |
getComputedColor() |
java.awt.Color |
getComputedFillColor() |
Point |
getComputedOffset() |
java.awt.Color |
getComputedOutlineColor() |
int |
getComputedRotation() |
int |
getComputedSize() |
SymbolTable |
getFeatureSymbolTable() |
Expression |
getFillColor() |
Expression |
getOffset() |
Expression |
getOutlineColor() |
java.lang.String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore) |
Expression |
getRotation() |
Expression |
getSize() |
ISymbol |
getSymbolForSelection(java.awt.Color selectionColor) |
int |
getSymbolType()
The use of this method -and its mechanism- is being valorated.
|
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 |
print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry shape,
PrintAttributes properties) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
static void |
selfRegister() |
void |
setColor(java.awt.Color color)
Sets the
Color to use to render the symbol. |
void |
setColor(Expression color) |
void |
setFeature(Feature feat) |
void |
setFillColor(Expression exp) |
protected void |
setLineSymbolValues() |
void |
setOffset(Expression offset) |
void |
setOutlineColor(Expression exp) |
protected void |
setPointSymbolValues() |
protected void |
setPolygonSymbolValues() |
void |
setRequiredFeatureAttributesNames(java.util.List<java.lang.String> listRequiredAttributeNames) |
void |
setRotation(Expression exp) |
void |
setSize(Expression exp) |
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setIDcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitspublic static Expression eOutlineColor
public static Expression eFillColor
public static Expression eSize
public static Expression eRotation
public FeatureSymbolTable featureSymbolTable
public SymbolTable symbolTable
public void setFeature(Feature feat)
setFeature in interface ISymbolsetFeature in interface DynamicSymbolsetFeature in class AbstractSymbolpublic DynamicSymbol 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 ISymbol getSymbolForSelection(java.awt.Color selectionColor)
getSymbolForSelection in interface ISymbolgetSymbolForSelection in class AbstractSymbolpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel,
java.awt.Rectangle r)
protected void drawPolygon(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel)
protected void setPolygonSymbolValues()
protected void setLineSymbolValues()
protected void drawLine(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel)
protected void setPointSymbolValues()
protected void drawPoint(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel)
public int getSymbolType()
ISymbolgetSymbolType in interface ISymbolpublic boolean isSuitableFor(Geometry geom)
ISymbolisSuitableFor in interface ISymbolpublic SymbolTable getFeatureSymbolTable()
public java.awt.Color getColor()
ISymbolColor to use to render the symbol.public Expression getComputedColor()
public Expression getOutlineColor()
getOutlineColor in interface DynamicSymbolpublic java.awt.Color getComputedOutlineColor()
public void setOutlineColor(Expression exp)
setOutlineColor in interface DynamicSymbolpublic Expression getFillColor()
getFillColor in interface DynamicSymbolpublic java.awt.Color getComputedFillColor()
public void setFillColor(Expression exp)
setFillColor in interface DynamicSymbolpublic Expression getSize()
getSize in interface DynamicSymbolpublic int getComputedSize()
public void setSize(Expression exp)
setSize in interface DynamicSymbolpublic Expression getOffset()
getOffset in interface DynamicSymbolpublic void setOffset(Expression offset)
setOffset in interface DynamicSymbolpublic Point getComputedOffset()
public Expression getRotation()
getRotation in interface DynamicSymbolpublic int getComputedRotation()
public void setRotation(Expression exp)
setRotation in interface DynamicSymbolpublic void setColor(java.awt.Color color)
ISymbolColor to use to render the symbol.public void setColor(Expression color)
setColor in interface DynamicSymbolpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractSymbolPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractSymbolPersistenceExceptionpublic void print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry shape,
PrintAttributes properties)
print in interface IPrintableprint in class AbstractSymbolpublic java.lang.String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
getRequiredFeatureAttributeNames in class AbstractSymbolDataExceptionpublic void setRequiredFeatureAttributesNames(java.util.List<java.lang.String> listRequiredAttributeNames)
setRequiredFeatureAttributesNames in interface DynamicSymbolpublic static void selfRegister()