public class PictureLineSymbol extends AbstractLineSymbol implements IPictureLineSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
PictureLineSymbol.RegisterPersistence |
static class |
PictureLineSymbol.RegisterSymbol |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
PictureLineSymbol()
Constructor method
|
PictureLineSymbol(java.net.URL imageURL,
java.net.URL selImageURL)
Constructor method
|
| 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)
Used when a symbol is going to be drawn.The method to do
it will depend on the derived version of the symbol.
|
java.lang.String |
getClassName() |
double |
getLineWidth()
Returns the width of the line symbol
|
java.net.URL |
getSelectedSource()
Returns the URL of the image that is used as a picture line symbol (when it
is selected in the map)
|
java.net.URL |
getSource()
Returns the URL of the image that is used as a picture line symbol
|
ISymbol |
getSymbolForSelection()
Returns the derived version of the symbol that will be used to draw the
feature when it is selected.
|
double |
getXScale()
Returns the xscale for the picture line symbol
|
double |
getYScale()
Returns the yscale for the picture line symbol
|
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 geom,
PrintAttributes properties) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setCartographicSize(double cartographicSize,
Geometry geom)
Sets the size of the cartographic element in pixels.
|
void |
setImage(java.net.URL imageUrl)
Sets the URL for the image to be used as a picture line symbol
|
void |
setLineWidth(double width)
Sets the width of the line symbol.
|
void |
setSelImage(java.net.URL selImageUrl)
Sets the URL for the image to be used as a picture line symbol (when it is selected in the map)
|
void |
setXScale(double xScale)
Sets the xscale for the picture line symbol
|
void |
setYScale(double yScale)
Sets the yscale for the picture line symbol
|
double |
toCartographicSize(ViewPort viewPort,
double dpi,
Geometry geom)
Computes and sets the size (in pixels) of the cartographic element according
to the current rendering context (output dpi, map scale, map units) and the
symbol cartgraphic settings (unit, size, and unit reference system).
|
drawInsideRectangle, getAlpha, getCartographicSize, getColor, getLineStyle, getOnePointRgb, getPixExtentPlus, getSymbolType, isSuitableFor, offsetFShape, setAlpha, setColor, setLineColor, setLineStylecloneForSelection, equals, getDescription, getID, getReferenceSystem, getUnit, isOneDotOrPixel, isShapeVisible, setDescription, setID, setIsShapeVisible, setReferenceSystem, setUnitfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStyledrawInsideRectangle, getDescription, getOnePointRgb, getPixExtentPlus, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setColor, setDescriptiongetCartographicSize, getReferenceSystem, getUnit, setReferenceSystem, setUnitpublic static final java.lang.String PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
public PictureLineSymbol()
public PictureLineSymbol(java.net.URL imageURL,
java.net.URL selImageURL)
throws java.io.IOException
imageURL, - URL of the normal imageselImageURL, - URL of the image when it is selected in the mapjava.io.IOExceptionpublic void setImage(java.net.URL imageUrl)
throws java.io.IOException
setImage in interface IPictureLineSymbolimageFile, - Filejava.io.IOExceptionpublic void setSelImage(java.net.URL selImageUrl)
throws java.io.IOException
setSelImage in interface IPictureLineSymbolimageFile, - Filejava.io.IOExceptionpublic void setLineWidth(double width)
ILineSymbolsetLineWidth in interface ILineSymbolpublic double getLineWidth()
ILineSymbolgetLineWidth in interface ILineSymbolpublic ISymbol getSymbolForSelection()
ISymbolgetSymbolForSelection in interface ISymbolpublic void draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform affineTransform,
Geometry geom,
Feature f,
Cancellable cancel)
ISymbolpublic void setYScale(double yScale)
setYScale in interface IPictureLineSymbolyScale - public void setXScale(double xScale)
setXScale in interface IPictureLineSymbolxScale - public java.lang.String getClassName()
public void print(java.awt.Graphics2D g,
java.awt.geom.AffineTransform at,
Geometry geom,
PrintAttributes properties)
print in interface IPrintableprint in class AbstractLineSymbolpublic java.net.URL getSelectedSource()
getSelectedSource in interface IPictureLineSymbolpublic java.net.URL getSource()
getSource in interface IPictureLineSymbolpublic double getXScale()
getXScale in interface IPictureLineSymbolxScale - public double getYScale()
getYScale in interface IPictureLineSymbolyScale - public void setCartographicSize(double cartographicSize,
Geometry geom)
CartographicSupportsetCartographicSize in interface CartographicSupportsetCartographicSize in class AbstractLineSymbolpublic double toCartographicSize(ViewPort viewPort, double dpi, Geometry geom)
CartographicSupporttoCartographicSize in interface CartographicSupporttoCartographicSize in class AbstractLineSymbolpublic 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