public class SimpleLineSymbol extends AbstractLineSymbol implements ISimpleLineSymbol, TransparencySupport
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleLineSymbol.RegisterPersistence |
static class |
SimpleLineSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIMPLE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
SimpleLineSymbol() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
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) |
double |
getLineWidth()
Returns the width of the line symbol
|
ISymbol |
getSymbolForSelection(java.awt.Color selectionColor) |
double |
getTransparency() |
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 |
setCartographicContext(CartographicSupport.CartographicContext ctx) |
void |
setLineWidth(double width)
Sets the width of the line symbol.
|
void |
setTransparency(double transparency)
Sets the transparency for symbol.
|
getAlpha, getColor, getLineStyle, getSampleGeometry, getSymbolType, isSuitableFor, offsetFShape, setAlpha, setColor, setLineColor, setLineStyle, setReferenceSystem, setUnitcloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStyledraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setColor, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlycopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitspublic static final java.lang.String SIMPLE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
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)
public void setLineWidth(double width)
ILineSymbolsetLineWidth in interface ILineSymbolpublic double getLineWidth()
ILineSymbolgetLineWidth in interface ILineSymbolpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractLineSymboljava.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 AbstractLineSymbolPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractLineSymbolPersistenceExceptionpublic void setTransparency(double transparency)
TransparencySupportsetTransparency in interface TransparencySupportpublic double getTransparency()
getTransparency in interface TransparencySupportpublic void setCartographicContext(CartographicSupport.CartographicContext ctx)
setCartographicContext in interface CartographicSupportsetCartographicContext in class AbstractCartographicSupport