Class PictureLineSymbol
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.AbstractLineSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.PictureLineSymbol
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol,org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.IPictureLineSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2,org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
public class PictureLineSymbol
extends AbstractLineSymbol
implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.IPictureLineSymbol
PictureLineSymbol allows to use any symbol defined as an image (by an image file)
supported by gvSIG.This symbol will be used as an initial object.The line will be
painted as a succession of puntual symbols through the path defined by it(the line).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.AbstractLineSymbol
LINE_SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
SYMBOL_NAMEFields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
CIRCLE_STYLE, CROSS_STYLE, DIAMOND_STYLE, HORIZONTAL_LINE_STYLE, SQUARE_STYLE, STAR_STYLE, SYMBOL_NAME, TRIANGLE_STYLE, VERTICAL_LINE_STYLE, X_STYLEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
SELECTION_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionConstructor methodPictureLineSymbol(URL imageURL, URL selImageURL) Constructor method -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddraw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) protected doublegetAdjustedSize(Rectangle r, double size) getEfectiveLineToOffsetColor(org.gvsig.fmap.dal.feature.Feature f) getEfectiveOffset(org.gvsig.fmap.dal.feature.Feature f) doublegetEfectiveRotationInDegres(org.gvsig.fmap.dal.feature.Feature f) doublegetEfectiveRotationInRadians(org.gvsig.fmap.dal.feature.Feature f) doublegetEfectiveSize(org.gvsig.fmap.dal.feature.Feature f) doubleorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMaskgetMask()String[]getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) doubleReturns the URL of the image that is used as a picture line symbol (when it is selected in the map)doublegetSize()Returns the URL of the image that is used as a picture line symbolorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolForSelection(Color selectionColor) protected org.gvsig.expressionevaluator.SymbolTablegetSymbolTable(org.gvsig.fmap.dal.feature.Feature f) booleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetDrawLineToOffset(boolean drawLineToOffset) voidSets the URL for the image to be used as a picture line symbolvoidsetLineToOffsetColor(Color color) voidsetLineToOffsetColorExpression(String lineToOffsetColorExpression) voidsetLineWidth(double width) voidsetMask(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask mask) voidvoidsetOffsetXExpression(String offsetXExpression) voidsetOffsetYExpression(String offsetYExpression) voidsetRotation(double r) voidsetRotationExpression(String rotationExpression) voidsetSelImage(URL selImageUrl) Sets the URL for the image to be used as a picture line symbol (when it is selected in the map)voidsetSize(double size) voidsetSizeExpression(String sizeExpression) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.AbstractLineSymbol
getAlpha, getColor, getLineStyle, getSampleGeometry, getSymbolType, isSuitableFor, offsetFShape, setAlpha, setColor, setLineColor, setLineStyle, setReferenceSystem, setUnitMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisibleMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnitsMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsMethods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
getAlpha, getColor, getLineStyle, setAlpha, setLineColor, setLineStyleMethods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
getColor, setAlpha, setColorMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolType, isShapeVisible, isSuitableFor, setDescription, setFeature, setID
-
Field Details
-
PICTURE_LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
- See Also:
-
-
Constructor Details
-
PictureLineSymbol
public PictureLineSymbol()Constructor method -
PictureLineSymbol
Constructor method- Parameters:
imageURL- , URL of the normal imageselImageURL- , URL of the image when it is selected in the map- Throws:
IOException
-
-
Method Details
-
setImage
Sets the URL for the image to be used as a picture line symbol- Specified by:
setImagein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol- Parameters:
imageFile- , File- Throws:
IOException
-
setSelImage
Sets the URL for the image to be used as a picture line symbol (when it is selected in the map)- Specified by:
setSelImagein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol- Parameters:
imageFile- , File- Throws:
IOException
-
setLineWidth
public void setLineWidth(double width) - Specified by:
setLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
getLineWidth
public double getLineWidth()- Specified by:
getLineWidthin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
-
getSymbolForSelection
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolForSelection(Color selectionColor) - Specified by:
getSymbolForSelectionin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol- Overrides:
getSymbolForSelectionin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
-
draw
public void draw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature f, org.gvsig.tools.task.Cancellable cancel, Rectangle r) - Specified by:
drawin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
-
getAdjustedSize
-
getClassName
-
getSelectedSource
Returns the URL of the image that is used as a picture line symbol (when it is selected in the map)- Specified by:
getSelectedSourcein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol- Returns:
- selimagePath,URL
-
getSource
Returns the URL of the image that is used as a picture line symbol- Specified by:
getSourcein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IPictureMarkerSymbol- Returns:
- imagePath,URL
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classAbstractLineSymbol- Throws:
CloneNotSupportedException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classAbstractLineSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classAbstractLineSymbol- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getSymbolTable
protected org.gvsig.expressionevaluator.SymbolTable getSymbolTable(org.gvsig.fmap.dal.feature.Feature f) -
getEfectiveLineToOffsetColor
- Specified by:
getEfectiveLineToOffsetColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getEfectiveOffset
- Specified by:
getEfectiveOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getEfectiveRotationInDegres
public double getEfectiveRotationInDegres(org.gvsig.fmap.dal.feature.Feature f) - Specified by:
getEfectiveRotationInDegresin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getEfectiveRotationInRadians
public double getEfectiveRotationInRadians(org.gvsig.fmap.dal.feature.Feature f) - Specified by:
getEfectiveRotationInRadiansin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getEfectiveSize
public double getEfectiveSize(org.gvsig.fmap.dal.feature.Feature f) - Specified by:
getEfectiveSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getLineToOffsetColor
- Specified by:
getLineToOffsetColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getLineToOffsetColorExpression
- Specified by:
getLineToOffsetColorExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getOffsetXExpression
- Specified by:
getOffsetXExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getOffsetYExpression
- Specified by:
getOffsetYExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getRotationExpression
- Specified by:
getRotationExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getSizeExpression
- Specified by:
getSizeExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
isDrawLineToOffset
public boolean isDrawLineToOffset()- Specified by:
isDrawLineToOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setDrawLineToOffset
public void setDrawLineToOffset(boolean drawLineToOffset) - Specified by:
setDrawLineToOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setLineToOffsetColor
- Specified by:
setLineToOffsetColorin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setLineToOffsetColorExpression
- Specified by:
setLineToOffsetColorExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setOffsetXExpression
- Specified by:
setOffsetXExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setOffsetYExpression
- Specified by:
setOffsetYExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setRotationExpression
- Specified by:
setRotationExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
setSizeExpression
- Specified by:
setSizeExpressionin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol_v2
-
getRotation
public double getRotation()- Specified by:
getRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setRotation
public void setRotation(double r) - Specified by:
setRotationin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getOffset
- Specified by:
getOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setOffset
- Specified by:
setOffsetin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getSize
public double getSize()- Specified by:
getSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setSize
public void setSize(double size) - Specified by:
setSizein interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getMask
public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask getMask()- Specified by:
getMaskin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
setMask
public void setMask(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask mask) - Specified by:
setMaskin interfaceorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol
-
getRequiredFeatureAttributeNames
public String[] getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException - Overrides:
getRequiredFeatureAttributeNamesin classorg.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol- Throws:
org.gvsig.fmap.dal.exception.DataException
-