public abstract class AbstractLineSymbol extends AbstractSymbol implements ILineSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractLineSymbol.RegisterPersistence |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
AbstractLineSymbol() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
int |
getAlpha()
Obtains the transparency of the line symbol
|
java.awt.Color |
getColor()
Returns the color of the line symbol
|
ILineStyle |
getLineStyle()
Obtains the style of the line symbol.
|
protected Geometry |
getSampleGeometry(java.awt.Rectangle r) |
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.
|
static Geometry |
offsetFShape(Geometry shp,
double offset) |
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)
Sets the
Color to use to render the symbol. |
void |
setLineColor(java.awt.Color color)
Sets the color for a line symbol
|
void |
setLineStyle(ILineStyle lineStyle)
Defines the style of the line symbol to be used.
|
void |
setReferenceSystem(int system)
Sets the Reference System that defines how this units have to be
handled.
|
void |
setUnit(int unitIndex)
Defines the unit used to express measures.
|
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, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLineWidth, setLineWidthdraw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitspublic static final java.lang.String LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
public java.awt.Color getColor()
ILineSymbolgetColor in interface ISymbolgetColor in interface ILineSymbolpublic void setLineColor(java.awt.Color color)
ILineSymbolsetLineColor in interface ILineSymbolpublic void setColor(java.awt.Color color)
ISymbolColor to use to render the symbol.public final int getSymbolType()
ISymbolgetSymbolType in interface ISymbolpublic boolean isSuitableFor(Geometry geom)
ISymbolisSuitableFor in interface ISymbolpublic ILineStyle getLineStyle()
ILineSymbolgetLineStyle in interface ILineSymbolpublic void setLineStyle(ILineStyle lineStyle)
ILineSymbolsetLineStyle in interface ILineSymbolpublic void setUnit(int unitIndex)
CartographicSupportsetUnit in interface CartographicSupportsetUnit in class AbstractCartographicSupportpublic void setReferenceSystem(int system)
CartographicSupportsetReferenceSystem in interface CartographicSupportsetReferenceSystem in class AbstractCartographicSupportpublic int getAlpha()
ILineSymbolgetAlpha in interface ILineSymbolpublic void setAlpha(int outlineAlpha)
ILineSymbolsetAlpha in interface ILineSymbolprotected Geometry getSampleGeometry(java.awt.Rectangle r)
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 AbstractSymbolPersistenceException