public class PictureMarkerSymbol extends AbstractMarkerSymbol implements IPictureMarkerSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
PictureMarkerSymbol.RegisterPersistence |
static class |
PictureMarkerSymbol.RegisterSymbol |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PICTURE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_PERSISTENCE_DEFINITION_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLESELECTION_COLORPAPER, WORLD| Constructor and Description |
|---|
PictureMarkerSymbol()
Constructor method
|
PictureMarkerSymbol(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.
|
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.
|
java.lang.String |
getClassName() |
java.net.URL |
getSelectedSource()
Returns the URL of the image that is used as a marker symbol (when it
is selected in the map)
|
java.net.URL |
getSource()
Returns the URL of the image that is used as a marker symbol
|
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 |
setImage(java.net.URL imageUrl)
Sets the file for the image to be used as a marker symbol
|
void |
setSelImage(java.net.URL imageFileUrl)
Sets the file for the image to be used as a marker symbol (when it is
selected in the map)
|
getCartographicSize, getColor, getMask, getOffset, getOnePointRgb, getPixExtentPlus, getRotation, getSize, getSymbolType, isSuitableFor, print, setAlpha, setCartographicSize, setColor, setMask, setOffset, setRotation, setSize, toCartographicSizecloneForSelection, equals, getDescription, getID, getReferenceSystem, getUnit, isOneDotOrPixel, isShapeVisible, setDescription, setID, setIsShapeVisible, setReferenceSystem, setUnitfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColor, getMask, getOffset, getRotation, getSize, setAlpha, setColor, setMask, setOffset, setRotation, setSizegetDescription, getOnePointRgb, getPixExtentPlus, getSymbolType, isOneDotOrPixel, isShapeVisible, isSuitableFor, setDescriptionprintgetCartographicSize, getReferenceSystem, getUnit, setCartographicSize, setReferenceSystem, setUnit, toCartographicSizepublic static final java.lang.String PICTURE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME
public PictureMarkerSymbol()
public PictureMarkerSymbol(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 IPictureMarkerSymbolimageFile - , Filejava.io.IOExceptionpublic void setSelImage(java.net.URL imageFileUrl)
throws java.io.IOException
setSelImage in interface IPictureMarkerSymbolimageFile - , Filejava.io.IOExceptionpublic 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 drawInsideRectangle(java.awt.Graphics2D g,
java.awt.geom.AffineTransform scaleInstance,
java.awt.Rectangle r,
PrintAttributes properties)
throws SymbolDrawingException
ISymboldrawInsideRectangle in interface ISymboldrawInsideRectangle in class AbstractMarkerSymbolproperties - TODOSymbolDrawingException - TODOpublic java.lang.String getClassName()
public java.net.URL getSource()
getSource in interface IPictureMarkerSymbolpublic java.net.URL getSelectedSource()
getSelectedSource in interface IPictureMarkerSymbolpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class AbstractMarkerSymboljava.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 AbstractMarkerSymbolPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractMarkerSymbolPersistenceException