public class PictureLineSymbol extends AbstractLineSymbol implements IPictureLineSymbol
| Modifier and Type | Class and Description |
|---|---|
static class |
PictureLineSymbol.RegisterPersistence |
static class |
PictureLineSymbol.RegisterSymbol |
CartographicSupport.CartographicContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME |
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAMELOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMESYMBOL_NAMECIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEPAPER, WORLDSELECTION_COLOR| 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,
java.awt.Rectangle r) |
protected double |
getAdjustedSize(java.awt.Rectangle r,
double size) |
java.lang.String |
getClassName() |
java.awt.Color |
getEfectiveLineToOffsetColor(Feature f) |
java.awt.geom.Point2D |
getEfectiveOffset(Feature f) |
double |
getEfectiveRotationInDegres(Feature f) |
double |
getEfectiveRotationInRadians(Feature f) |
double |
getEfectiveSize(Feature f) |
java.awt.Color |
getLineToOffsetColor() |
java.lang.String |
getLineToOffsetColorExpression() |
double |
getLineWidth()
Returns the width of the line symbol
|
IMask |
getMask() |
java.awt.geom.Point2D |
getOffset()
Gets the offset for a marker symbol
|
java.lang.String |
getOffsetXExpression() |
java.lang.String |
getOffsetYExpression() |
java.lang.String[] |
getRequiredFeatureAttributeNames(FeatureStore featureStore) |
double |
getRotation()
Returns the rotation (in radians, counter-clockwise) of the marker symbol
|
java.lang.String |
getRotationExpression() |
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)
|
double |
getSize()
Obtains the size of a marker symbol
|
java.lang.String |
getSizeExpression() |
java.net.URL |
getSource()
Returns the URL of the image that is used as a picture line symbol
|
ISymbol |
getSymbolForSelection(java.awt.Color selectionColor) |
protected SymbolTable |
getSymbolTable(Feature f) |
boolean |
isDrawLineToOffset() |
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 |
setDrawLineToOffset(boolean drawLineToOffset) |
void |
setImage(java.net.URL imageUrl)
Sets the URL for the image to be used as a picture line symbol
|
void |
setLineToOffsetColor(java.awt.Color color) |
void |
setLineToOffsetColorExpression(java.lang.String lineToOffsetColorExpression) |
void |
setLineWidth(double width)
Sets the width of the line symbol.
|
void |
setMask(IMask mask)
Defines a mask for the symbol
|
void |
setOffset(java.awt.geom.Point2D offset)
Establishes the offset currently set for the marker symbol.
|
void |
setOffsetXExpression(java.lang.String offsetXExpression) |
void |
setOffsetYExpression(java.lang.String offsetYExpression) |
void |
setRotation(double r)
Sets the rotation of the marker symbol
|
void |
setRotationExpression(java.lang.String rotationExpression) |
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 |
setSize(double size)
Sets the size of marker symbol
|
void |
setSizeExpression(java.lang.String sizeExpression) |
getAlpha, getColor, getLineStyle, getSampleGeometry, getSymbolType, isSuitableFor, offsetFShape, setAlpha, setColor, setLineColor, setLineStyle, setReferenceSystem, setUnitcloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisiblecopyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStylesetAlphacopyCartographicContext, copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsdraw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setFeature, setIDprintcloneQuietly, cloneQuietlypublic 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 IPictureMarkerSymbolimageFile, - Filejava.io.IOExceptionpublic void setSelImage(java.net.URL selImageUrl)
throws java.io.IOException
setSelImage in interface IPictureMarkerSymbolimageFile, - Filejava.io.IOExceptionpublic void setLineWidth(double width)
ILineSymbolsetLineWidth in interface ILineSymbolpublic double getLineWidth()
ILineSymbolgetLineWidth in interface ILineSymbolpublic 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)
protected double getAdjustedSize(java.awt.Rectangle r,
double size)
public java.lang.String getClassName()
public java.net.URL getSelectedSource()
getSelectedSource in interface IPictureMarkerSymbolpublic java.net.URL getSource()
getSource in interface IPictureMarkerSymbolpublic 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 AbstractLineSymbolPersistenceExceptionprotected SymbolTable getSymbolTable(Feature f)
public java.awt.Color getEfectiveLineToOffsetColor(Feature f)
getEfectiveLineToOffsetColor in interface IMarkerSymbol_v2public java.awt.geom.Point2D getEfectiveOffset(Feature f)
getEfectiveOffset in interface IMarkerSymbol_v2public double getEfectiveRotationInDegres(Feature f)
getEfectiveRotationInDegres in interface IMarkerSymbol_v2public double getEfectiveRotationInRadians(Feature f)
getEfectiveRotationInRadians in interface IMarkerSymbol_v2public double getEfectiveSize(Feature f)
getEfectiveSize in interface IMarkerSymbol_v2public java.awt.Color getLineToOffsetColor()
getLineToOffsetColor in interface IMarkerSymbol_v2public java.lang.String getLineToOffsetColorExpression()
getLineToOffsetColorExpression in interface IMarkerSymbol_v2public java.lang.String getOffsetXExpression()
getOffsetXExpression in interface IMarkerSymbol_v2public java.lang.String getOffsetYExpression()
getOffsetYExpression in interface IMarkerSymbol_v2public java.lang.String getRotationExpression()
getRotationExpression in interface IMarkerSymbol_v2public java.lang.String getSizeExpression()
getSizeExpression in interface IMarkerSymbol_v2public boolean isDrawLineToOffset()
isDrawLineToOffset in interface IMarkerSymbol_v2public void setDrawLineToOffset(boolean drawLineToOffset)
setDrawLineToOffset in interface IMarkerSymbol_v2public void setLineToOffsetColor(java.awt.Color color)
setLineToOffsetColor in interface IMarkerSymbol_v2public void setLineToOffsetColorExpression(java.lang.String lineToOffsetColorExpression)
setLineToOffsetColorExpression in interface IMarkerSymbol_v2public void setOffsetXExpression(java.lang.String offsetXExpression)
setOffsetXExpression in interface IMarkerSymbol_v2public void setOffsetYExpression(java.lang.String offsetYExpression)
setOffsetYExpression in interface IMarkerSymbol_v2public void setRotationExpression(java.lang.String rotationExpression)
setRotationExpression in interface IMarkerSymbol_v2public void setSizeExpression(java.lang.String sizeExpression)
setSizeExpression in interface IMarkerSymbol_v2public double getRotation()
IMarkerSymbolgetRotation in interface IMarkerSymbolpublic void setRotation(double r)
IMarkerSymbolsetRotation in interface IMarkerSymbolpublic java.awt.geom.Point2D getOffset()
IMarkerSymbolgetOffset in interface IMarkerSymbolpublic void setOffset(java.awt.geom.Point2D offset)
IMarkerSymbolsetOffset in interface IMarkerSymbolpublic double getSize()
IMarkerSymbolgetSize in interface IMarkerSymbolpublic void setSize(double size)
IMarkerSymbolsetSize in interface IMarkerSymbolpublic IMask getMask()
getMask in interface IMarkerSymbolpublic void setMask(IMask mask)
IMarkerSymbolsetMask in interface IMarkerSymbolpublic java.lang.String[] getRequiredFeatureAttributeNames(FeatureStore featureStore) throws DataException
getRequiredFeatureAttributeNames in class AbstractSymbolDataException