public abstract class AbstractMarkerSymbol extends AbstractSymbol implements IMarkerSymbol_v2
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMarkerSymbol.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEPAPER, WORLDSELECTION_COLOR| Constructor and Description |
|---|
AbstractMarkerSymbol() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
protected double |
getAdjustedSize(java.awt.Rectangle r,
double size) |
protected double |
getCartographicSize() |
java.awt.Color |
getColor()
Returns the color of the marker symbol.
|
java.awt.Color |
getEfectiveLineToOffsetColor(Feature f) |
java.awt.geom.Point2D |
getEfectiveOffset(Feature f) |
double |
getEfectiveRotationInDegres(Feature f) |
double |
getEfectiveRotationInRadians(Feature f) |
double |
getEfectiveSize(Feature f) |
java.awt.Color |
getLineToOffsetColor() |
java.lang.String |
getLineToOffsetColorExpression() |
IMask |
getMask() |
java.awt.geom.Point2D |
getOffset()
Gets the offset for a marker symbol
|
java.lang.String |
getOffsetXExpression() |
java.lang.String |
getOffsetYExpression() |
protected Point |
getPoint(double x,
double y) |
double |
getRotation()
Returns the rotation (in radians, counter-clockwise) of the marker symbol
|
java.lang.String |
getRotationExpression() |
double |
getRotationInDegrees() |
double |
getRotationInRadians() |
protected Geometry |
getSampleGeometry(java.awt.Rectangle r) |
double |
getSize()
Obtains the size of a marker symbol
|
java.lang.String |
getSizeExpression() |
protected SymbolTable |
getSymbolTable(Feature f) |
int |
getSymbolType()
The use of this method -and its mechanism- is being valorated.
|
boolean |
isDrawLineToOffset() |
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 |
setAlpha(int outlineAlpha)
Defines the transparency of a line symbol.
|
void |
setColor(java.awt.Color color)
Establishes a color for the marker symbol
|
void |
setDrawLineToOffset(boolean drawLineToOffset) |
void |
setLineToOffsetColor(java.awt.Color color) |
void |
setLineToOffsetColorExpression(java.lang.String lineToOffsetColorExpression) |
void |
setMask(IMask mask)
Defines a mask for the symbol
|
void |
setOffset(java.awt.geom.Point2D offset)
Establishes the offset currently set for the marker symbol.
|
void |
setOffsetXExpression(java.lang.String offsetXExpression) |
void |
setOffsetYExpression(java.lang.String offsetYExpression) |
void |
setRotation(double r)
Sets the rotation of the marker symbol
|
void |
setRotationExpression(java.lang.String rotationExpression) |
void |
setRotationInDegrees(double r) |
void |
setRotationInRadians(double r) |
void |
setSize(double size)
Sets the size of marker symbol
|
void |
setSizeExpression(java.lang.String sizeExpression) |
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, setUnit, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsdraw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlypublic static final java.lang.String MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
protected Point getPoint(double x, double y)
public final int getSymbolType()
ISymbolgetSymbolType in interface ISymbolpublic double getRotation()
IMarkerSymbolgetRotation in interface IMarkerSymbolpublic void setRotation(double r)
IMarkerSymbolsetRotation in interface IMarkerSymbolpublic double getRotationInDegrees()
public void setRotationInDegrees(double r)
public double getRotationInRadians()
public void setRotationInRadians(double r)
public java.awt.geom.Point2D getOffset()
IMarkerSymbolgetOffset in interface IMarkerSymbolpublic void setOffset(java.awt.geom.Point2D offset)
IMarkerSymbolsetOffset in interface IMarkerSymbolprotected SymbolTable getSymbolTable(Feature f)
public java.awt.Color getLineToOffsetColor()
getLineToOffsetColor in interface IMarkerSymbol_v2public void setLineToOffsetColor(java.awt.Color color)
setLineToOffsetColor in interface IMarkerSymbol_v2public boolean isDrawLineToOffset()
isDrawLineToOffset in interface IMarkerSymbol_v2public void setDrawLineToOffset(boolean drawLineToOffset)
setDrawLineToOffset in interface IMarkerSymbol_v2public java.lang.String getOffsetXExpression()
getOffsetXExpression in interface IMarkerSymbol_v2public void setOffsetXExpression(java.lang.String offsetXExpression)
setOffsetXExpression in interface IMarkerSymbol_v2public java.lang.String getOffsetYExpression()
getOffsetYExpression in interface IMarkerSymbol_v2public void setOffsetYExpression(java.lang.String offsetYExpression)
setOffsetYExpression in interface IMarkerSymbol_v2public java.lang.String getRotationExpression()
getRotationExpression in interface IMarkerSymbol_v2public void setRotationExpression(java.lang.String rotationExpression)
setRotationExpression in interface IMarkerSymbol_v2public java.lang.String getSizeExpression()
getSizeExpression in interface IMarkerSymbol_v2public void setSizeExpression(java.lang.String sizeExpression)
setSizeExpression in interface IMarkerSymbol_v2public java.lang.String getLineToOffsetColorExpression()
getLineToOffsetColorExpression in interface IMarkerSymbol_v2public void setLineToOffsetColorExpression(java.lang.String lineToOffsetColorExpression)
setLineToOffsetColorExpression in interface IMarkerSymbol_v2public java.awt.geom.Point2D getEfectiveOffset(Feature f)
getEfectiveOffset in interface IMarkerSymbol_v2public double getEfectiveRotationInDegres(Feature f)
getEfectiveRotationInDegres in interface IMarkerSymbol_v2public double getEfectiveRotationInRadians(Feature f)
getEfectiveRotationInRadians in interface IMarkerSymbol_v2public java.awt.Color getEfectiveLineToOffsetColor(Feature f)
getEfectiveLineToOffsetColor in interface IMarkerSymbol_v2public double getEfectiveSize(Feature f)
getEfectiveSize in interface IMarkerSymbol_v2public boolean isSuitableFor(Geometry geom)
ISymbolisSuitableFor in interface ISymbolpublic double getSize()
IMarkerSymbolgetSize in interface IMarkerSymbolpublic void setSize(double size)
IMarkerSymbolsetSize in interface IMarkerSymbolpublic java.awt.Color getColor()
IMarkerSymbolgetColor in interface ISymbolgetColor in interface IMarkerSymbolpublic void setColor(java.awt.Color color)
IMarkerSymbolsetColor in interface ISymbolsetColor in interface IMarkerSymbolcolor - to render the symbolpublic void setAlpha(int outlineAlpha)
IMarkerSymbolsetAlpha in interface IMarkerSymbolpublic final IMask getMask()
getMask in interface IMarkerSymbolpublic final void setMask(IMask mask)
IMarkerSymbolsetMask in interface IMarkerSymbolprotected double getCartographicSize()
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 double getAdjustedSize(java.awt.Rectangle r,
double size)
protected Geometry getSampleGeometry(java.awt.Rectangle r)