Class SVGStyle
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.BackgroundFileStyle
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.SVGStyle
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle,org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.persistence.Persistent
Style for a SVG files.This is a XML specification and file format for
describing two-dimensional vector graphics, both static and animated.
SVG can be purely declarative or may include scripting. Images can contain
hyperlinks using outbound simple XLinks.It is an open standard created
by the World Wide Web Consortium..
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.BackgroundFileStyle
BackgroundFileStyle.PersistenceCantSetSourceExceptionNested 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.style.BackgroundFileStyle
BACKGROUND_FILE_STYLE_PERSISTENCE_DEFINITION_NAME, source, SOURCE_SYMBOL_IN_LIBRARY, symbolTableFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
LOGGER, STYLE_PERSISTENCE_DEFINITION_NAMEFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawInsideRectangle(Graphics2D g, Rectangle rect, boolean keepAspectRatio) voiddrawOutline(Graphics2D g, Rectangle r) Gets the boundingRectangleof thisRectangle.booleanisSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidSets the file that is used as a source to create the BackgroundMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.BackgroundFileStyle
clone, createStyleByURL, drawInsideRectangle, getSource, getSourceSymbolInLibrary, getSymbolLibraryURL, isLibrarySymbol, setSymbolTableMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
getDescription, setDescriptionMethods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
getDescription, setDescription
-
Field Details
-
SVG_STYLE_PERSISTENCE_DEF_NAME
- See Also:
-
-
Constructor Details
-
SVGStyle
public SVGStyle()Constructor method
-
-
Method Details
-
drawInsideRectangle
public void drawInsideRectangle(Graphics2D g, Rectangle rect, boolean keepAspectRatio) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException - Specified by:
drawInsideRectanglein classBackgroundFileStyle- Parameters:
g-rect-keepAspectRatio-- Throws:
org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
-
isSuitableFor
public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol) -
setSource
Description copied from class:BackgroundFileStyleSets the file that is used as a source to create the Background- Specified by:
setSourcein interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle- Specified by:
setSourcein classBackgroundFileStyle- Throws:
IOException
-
getBounds
Description copied from class:BackgroundFileStyleGets the boundingRectangleof thisRectangle.This method is included for completeness, to parallel the
getBoundsmethod ofComponent.- Specified by:
getBoundsin interfaceorg.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle- Specified by:
getBoundsin classBackgroundFileStyle- Returns:
- a new
Rectangle, equal to the boundingRectanglefor thisRectangle. - See Also:
-
drawOutline
public void drawOutline(Graphics2D g, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException - Throws:
org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
-
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 classAbstractStyle- 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 classAbstractStyle- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-