java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
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

public class SVGStyle extends BackgroundFileStyle
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..
  • Field Details

  • 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:
      drawInsideRectangle in class BackgroundFileStyle
      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

      public void setSource(URL url) throws IOException
      Description copied from class: BackgroundFileStyle
      Sets the file that is used as a source to create the Background
      Specified by:
      setSource in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle
      Specified by:
      setSource in class BackgroundFileStyle
      Throws:
      IOException
    • getBounds

      public Rectangle getBounds()
      Description copied from class: BackgroundFileStyle
      Gets the bounding Rectangle of this Rectangle.

      This method is included for completeness, to parallel the getBounds method of Component.

      Specified by:
      getBounds in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IBackgroundFileStyle
      Specified by:
      getBounds in class BackgroundFileStyle
      Returns:
      a new Rectangle, equal to the bounding Rectangle for this Rectangle.
      See Also:
      • Component.getBounds()
      • invalid reference
        #setBounds(Rectangle)
      • invalid reference
        #setBounds(int, int, int, int)
    • 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:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class AbstractStyle
      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:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException