public class SimpleLineSymbol extends AbstractLineSymbol implements ISimpleLineSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleLineSymbol.RegisterPersistence |
static class |
SimpleLineSymbol.RegisterSymbol |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIMPLE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_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 feature,
Cancellable cancel)
Used when a symbol is going to be drawn.The method to do
it will depend on the derived version of the symbol.
|
void |
drawInsideRectangle(java.awt.Graphics2D g,
java.awt.geom.AffineTransform scaleInstance,
java.awt.Rectangle r,
PrintAttributes properties)
Useful to render the symbol inside the TOC, or inside little
rectangles.
|
double |
getLineWidth()
Returns the width of the line symbol
|
int |
getOnePointRgb()
Returns the rgb of the symbol when it is drawn like a point.
|
ISymbol |
getSymbolForSelection()
Returns the derived version of the symbol that will be used to draw the
feature when it is selected.
|
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 |
setLineWidth(double width)
Sets the width of the line symbol.
|
getAlpha, getCartographicSize, getColor, getLineStyle, getPixExtentPlus, getSymbolType, isSuitableFor, offsetFShape, print, setAlpha, setCartographicSize, setColor, setLineColor, setLineStyle, toCartographicSizecloneForSelection, equals, getDescription, getID, getReferenceSystem, getUnit, isOneDotOrPixel, isShapeVisible, setDescription, setID, setIsShapeVisible, setReferenceSystem, setUnitfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStylegetDescription, getPixExtentPlus, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColor, setDescriptionprintgetCartographicSize, getReferenceSystem, getUnit, setCartographicSize, setReferenceSystem, setUnit, toCartographicSizepublic static final java.lang.String SIMPLE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
public ISymbol getSymbolForSelection()
ISymbolgetSymbolForSelection in interface ISymbolpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature feature,
Cancellable cancel)
ISymbolpublic int getOnePointRgb()
ISymbolgetOnePointRgb in interface ISymbolgetOnePointRgb in class AbstractLineSymbolpublic void drawInsideRectangle(java.awt.Graphics2D g,
java.awt.geom.AffineTransform scaleInstance,
java.awt.Rectangle r,
PrintAttributes properties)
throws SymbolDrawingException
ISymboldrawInsideRectangle in interface ISymboldrawInsideRectangle in class AbstractLineSymbolproperties - TODOSymbolDrawingException - TODOpublic 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 AbstractLineSymbolPersistenceException