public class DefaultDynamicSymbol extends AbstractSymbol implements DynamicSymbol
AbstractSymbol.RegisterPersistence
CartographicSupport.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_NAME
NAME
SELECTION_COLOR
PAPER, 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, setIsShapeVisible
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, setDescription, setID
cloneQuietly, cloneQuietly
copyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
public 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 ISymbol
setFeature
in interface DynamicSymbol
setFeature
in class AbstractSymbol
public DynamicSymbol clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class AbstractSymbol
java.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 ISymbol
getSymbolForSelection
in class AbstractSymbol
public 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()
ISymbol
getSymbolType
in interface ISymbol
public boolean isSuitableFor(Geometry geom)
ISymbol
isSuitableFor
in interface ISymbol
public SymbolTable getFeatureSymbolTable()
public java.awt.Color getColor()
ISymbol
Color
to use to render the symbol.public Expression getComputedColor()
public Expression getOutlineColor()
getOutlineColor
in interface DynamicSymbol
public java.awt.Color getComputedOutlineColor()
public void setOutlineColor(Expression exp)
setOutlineColor
in interface DynamicSymbol
public Expression getFillColor()
getFillColor
in interface DynamicSymbol
public java.awt.Color getComputedFillColor()
public void setFillColor(Expression exp)
setFillColor
in interface DynamicSymbol
public Expression getSize()
getSize
in interface DynamicSymbol
public int getComputedSize()
public void setSize(Expression exp)
setSize
in interface DynamicSymbol
public Expression getOffset()
getOffset
in interface DynamicSymbol
public void setOffset(Expression offset)
setOffset
in interface DynamicSymbol
public Point getComputedOffset()
public Expression getRotation()
getRotation
in interface DynamicSymbol
public int getComputedRotation()
public void setRotation(Expression exp)
setRotation
in interface DynamicSymbol
public void setColor(java.awt.Color color)
ISymbol
Color
to use to render the symbol.public void setColor(Expression color)
setColor
in interface DynamicSymbol
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractSymbol
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractSymbol
PersistenceException
public void print(java.awt.Graphics2D g, java.awt.geom.AffineTransform at, Geometry shape, PrintAttributes properties)
print
in interface IPrintable
print
in class AbstractSymbol
public java.lang.String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
getRequiredFeatureAttributeNames
in class AbstractSymbol
DataException
public void setRequiredFeatureAttributesNames(java.util.List<java.lang.String> listRequiredAttributeNames)
setRequiredFeatureAttributesNames
in interface DynamicSymbol
public static void selfRegister()