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.DefaultMask
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class DefaultMask extends AbstractStyle implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
Author:
2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    LOGGER, STYLE_PERSISTENCE_DEFINITION_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    PAPER, WORLD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
     
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol
     
    org.gvsig.fmap.geom.Geometry
     
    double
     
    boolean
    isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setFillSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol fill)
     
    void
    setSize(double size)
     

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    getDescription, setDescription

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle

    getDescription, setDescription
  • Field Details

    • DEFAULT_MASK_PERSISTENCE_DEFINITION_NAME

      public static final String DEFAULT_MASK_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • DefaultMask

      public DefaultMask()
  • Method Details

    • getSize

      public double getSize()
      Specified by:
      getSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
    • setSize

      public void setSize(double size)
      Specified by:
      setSize in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
    • getFillSymbol

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol getFillSymbol()
      Specified by:
      getFillSymbol in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
    • setFillSymbol

      public void setFillSymbol(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol fill)
      Specified by:
      setFillSymbol in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, Rectangle r)
      Specified by:
      drawInsideRectangle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • getHaloShape

      public org.gvsig.fmap.geom.Geometry getHaloShape(Shape shp)
      Specified by:
      getHaloShape in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IMask
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • drawOutline

      public void drawOutline(Graphics2D g, Rectangle r)
      Specified by:
      drawOutline in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class AbstractStyle
      Throws:
      CloneNotSupportedException
    • 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