public class PictureMarkerSymbol extends AbstractMarkerSymbol implements IPictureMarkerSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
PictureMarkerSymbol.RegisterPersistence |
static class |
PictureMarkerSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PICTURE_MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAME |
MARKER_SYMBOL_PERSISTENCE_DEFINITION_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEPAPER, WORLDSELECTION_COLOR| Constructor and Description |
|---|
PictureMarkerSymbol() |
PictureMarkerSymbol(java.net.URL imageURL,
java.net.URL selImageURL)
Constructor method
|
| Modifier and Type | Method and Description |
|---|---|
PictureMarkerSymbol |
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) |
java.lang.String |
getClassName() |
java.lang.String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore) |
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(java.awt.Color selectionColor) |
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 |
setFeature(Feature feature) |
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)
|
getAdjustedSize, getCartographicSize, getColor, getEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getMask, getOffset, getOffsetXExpression, getOffsetYExpression, getPoint, getRotation, getRotationExpression, getRotationInDegrees, getRotationInRadians, getSampleGeometry, getSize, getSizeExpression, getSymbolTable, getSymbolType, isDrawLineToOffset, isSuitableFor, setAlpha, setColor, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setMask, setOffset, setOffsetXExpression, setOffsetYExpression, setRotation, setRotationExpression, setRotationInDegrees, setRotationInRadians, setSize, setSizeExpressioncloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, print, setDescription, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEfectiveLineToOffsetColor, getEfectiveOffset, getEfectiveRotationInDegres, getEfectiveRotationInRadians, getEfectiveSize, getLineToOffsetColor, getLineToOffsetColorExpression, getOffsetXExpression, getOffsetYExpression, getRotationExpression, getSizeExpression, isDrawLineToOffset, setDrawLineToOffset, setLineToOffsetColor, setLineToOffsetColorExpression, setOffsetXExpression, setOffsetYExpression, setRotationExpression, setSizeExpressiongetColor, getMask, getOffset, getRotation, getSize, setAlpha, setColor, setMask, setOffset, setRotation, setSizecopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsdraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setIDprintcloneQuietly, cloneQuietlypublic 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 final void setImage(java.net.URL imageUrl)
throws java.io.IOException
setImage in interface IPictureMarkerSymbolimageUrl - java.io.IOExceptionpublic final void setSelImage(java.net.URL imageFileUrl)
throws java.io.IOException
setSelImage in interface IPictureMarkerSymbolimageFileUrl - java.io.IOExceptionpublic 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 java.lang.String getClassName()
public java.net.URL getSource()
getSource in interface IPictureMarkerSymbolpublic java.net.URL getSelectedSource()
getSelectedSource in interface IPictureMarkerSymbolpublic PictureMarkerSymbol 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 AbstractMarkerSymbolPersistenceExceptionpublic java.lang.String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
getRequiredFeatureAttributeNames in class AbstractSymbolDataExceptionpublic void setFeature(Feature feature)
setFeature in interface ISymbolsetFeature in class AbstractSymbol