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.impl.MultiShapeSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.warning.impl.WarningSymbol
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.fmap.mapcontext.rendering.symbols.IWarningSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.fill.IFillSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.IMultiShapeSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.marker.IMarkerSymbol, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class WarningSymbol extends MultiShapeSymbol implements org.gvsig.fmap.mapcontext.rendering.symbols.IWarningSymbol
Warning symbol
Author:
2005-2008 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
  • Field Details

    • WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String WARNING_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • WarningSymbol

      public WarningSymbol()
      Empty constructor, only used in persistence.
    • WarningSymbol

      public WarningSymbol(String message, String symbolDesc, int symbolDrawExceptionType)
  • Method Details

    • draw

      public void draw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.tools.task.Cancellable cancel)
    • setDrawExceptionType

      public void setDrawExceptionType(int symbolDrawExceptionType)
      Specified by:
      setDrawExceptionType in interface org.gvsig.fmap.mapcontext.rendering.symbols.IWarningSymbol
    • setMessage

      public void setMessage(String message)
      Specified by:
      setMessage in interface org.gvsig.fmap.mapcontext.rendering.symbols.IWarningSymbol
    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, AffineTransform scaleInstance, Rectangle r) throws org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
      Specified by:
      drawInsideRectangle in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
      Overrides:
      drawInsideRectangle in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      org.gvsig.fmap.mapcontext.rendering.symbols.SymbolDrawingException
    • clone

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