Class DefaultAggregateLegend

java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
org.gvsig.legend.aggregate.lib.impl.DefaultAggregateLegend
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable, org.gvsig.fmap.mapcontext.rendering.legend.ILegend, org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend, org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend, org.gvsig.fmap.mapcontext.rendering.legend.Legend, AggregateLegend, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class DefaultAggregateLegend extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend implements AggregateLegend
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend

    org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend.RegisterPersistence
  • Field Summary

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend

    VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSort

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend

    LEGEND_PERSISTENCE_DEFINITION_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend

    LEGEND_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    draw(BufferedImage image, Graphics2D g, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, Map queryParameters, org.gvsig.crs.projection.lib.CoordinateTransformation coordTrans, org.gvsig.fmap.dal.feature.FeatureStore featureStore, org.gvsig.fmap.dal.feature.FeatureQuery featureQuery, double dpi)
     
    protected void
    drawFeatures(BufferedImage image, Graphics2D g, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.crs.projection.lib.CoordinateTransformation coordTrans, double dpi, org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.DefaultFeatureDrawnNotification drawnNotification, org.gvsig.fmap.dal.feature.FeatureSet featureSet, org.gvsig.fmap.dal.feature.FeatureSelection selection)
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
     
     
     
    org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle
     
     
     
    protected String[]
    getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore)
     
    int
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature ftr)
     
    int
     
     
    boolean
     
    boolean
    isSuitableForShapeType(int shapeType)
     
    boolean
     
    boolean
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol is)
     
    void
    setFillColor(Color fillColor)
     
    void
    setFont(Font font)
     
    void
    setLabelStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle labelStyle)
     
    void
     
    void
    setOutlineColor(Color outlineColor)
     
    void
    setShapeType(int i)
     
    void
    setShowBounds(boolean showBounds)
     
    void
    setSymbolSize(int simbolSize)
     
    void
    setTextColor(Color textColor)
     
    void
    setUseStyle(boolean useStyle)
     
    void
    useDefaultSymbol(boolean bln)
     

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend

    clone, draw, draw, getZSort, internalDraw, isDrawSymbolInEeachPrimitive, print, print, setDrawSymbolInEeachPrimitive, setZSort

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend

    addDrawingObserver, addLegendListener, addObserver, beginComplexNotification, cloneLegend, countObservers, deleteDrawingObserver, deleteDrawingObservers, deleteObserver, disableNotifications, enableNotifications, endComplexNotification, fireDefaultSymbolChangedEvent, getListeners, getManager, getSymbolManager, inComplex, isEnabledNotifications, notifyObservers, notifyObservers, removeLegendListener

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.gvsig.tools.lang.Cloneable

    clone

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable

    addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend

    addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListener

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ISingleSymbolLegend

    getZSort, setZSort

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend

    draw, draw, print, print
  • Constructor Details

    • DefaultAggregateLegend

      public DefaultAggregateLegend()
  • Method Details

    • getRequiredFeatureAttributeNames

      protected String[] getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getRequiredFeatureAttributeNames in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getDefaultSymbol

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getDefaultSymbol()
      Specified by:
      getDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
      Specified by:
      getDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • setDefaultSymbol

      public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol is)
      Specified by:
      setDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • getSymbolByFeature

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature ftr) throws org.gvsig.fmap.mapcontext.MapContextException
      Specified by:
      getSymbolByFeature in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
      Throws:
      org.gvsig.fmap.mapcontext.MapContextException
    • getShapeType

      public int getShapeType()
      Specified by:
      getShapeType in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • setShapeType

      public void setShapeType(int i)
      Specified by:
      setShapeType in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • isUseDefaultSymbol

      public boolean isUseDefaultSymbol()
      Specified by:
      isUseDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • useDefaultSymbol

      public void useDefaultSymbol(boolean bln)
      Specified by:
      useDefaultSymbol in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • isSuitableForShapeType

      public boolean isSuitableForShapeType(int shapeType)
      Specified by:
      isSuitableForShapeType in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
    • draw

      protected void draw(BufferedImage image, Graphics2D g, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, Map queryParameters, org.gvsig.crs.projection.lib.CoordinateTransformation coordTrans, org.gvsig.fmap.dal.feature.FeatureStore featureStore, org.gvsig.fmap.dal.feature.FeatureQuery featureQuery, double dpi) throws org.gvsig.fmap.mapcontext.rendering.legend.LegendException
      Overrides:
      draw in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
      Throws:
      org.gvsig.fmap.mapcontext.rendering.legend.LegendException
    • drawFeatures

      protected void drawFeatures(BufferedImage image, Graphics2D g, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.crs.projection.lib.CoordinateTransformation coordTrans, double dpi, org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.DefaultFeatureDrawnNotification drawnNotification, org.gvsig.fmap.dal.feature.FeatureSet featureSet, org.gvsig.fmap.dal.feature.FeatureSelection selection) throws org.gvsig.tools.exception.BaseException
      Overrides:
      drawFeatures in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
      Throws:
      org.gvsig.tools.exception.BaseException
    • getLabelStyle

      public org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle getLabelStyle()
      Specified by:
      getLabelStyle in interface AggregateLegend
    • setLabelStyle

      public void setLabelStyle(org.gvsig.fmap.mapcontext.rendering.symbols.styles.ILabelStyle labelStyle)
      Specified by:
      setLabelStyle in interface AggregateLegend
    • getSymbolSize

      public int getSymbolSize()
      Specified by:
      getSymbolSize in interface AggregateLegend
    • setSymbolSize

      public void setSymbolSize(int simbolSize)
      Specified by:
      setSymbolSize in interface AggregateLegend
    • getOperation

      public Operation getOperation()
      Specified by:
      getOperation in interface AggregateLegend
    • setOperation

      public void setOperation(Operation operation)
      Specified by:
      setOperation in interface AggregateLegend
    • getFillColor

      public Color getFillColor()
      Specified by:
      getFillColor in interface AggregateLegend
    • setFillColor

      public void setFillColor(Color fillColor)
      Specified by:
      setFillColor in interface AggregateLegend
    • getOutlineColor

      public Color getOutlineColor()
      Specified by:
      getOutlineColor in interface AggregateLegend
    • setOutlineColor

      public void setOutlineColor(Color outlineColor)
      Specified by:
      setOutlineColor in interface AggregateLegend
    • isShowBounds

      public boolean isShowBounds()
      Specified by:
      isShowBounds in interface AggregateLegend
    • setShowBounds

      public void setShowBounds(boolean showBounds)
      Specified by:
      setShowBounds in interface AggregateLegend
    • getFont

      public Font getFont()
      Specified by:
      getFont in interface AggregateLegend
    • setFont

      public void setFont(Font font)
      Specified by:
      setFont in interface AggregateLegend
    • isUseStyle

      public boolean isUseStyle()
      Specified by:
      isUseStyle in interface AggregateLegend
    • setUseStyle

      public void setUseStyle(boolean useStyle)
      Specified by:
      setUseStyle in interface AggregateLegend
    • getTextColor

      public Color getTextColor()
      Specified by:
      getTextColor in interface AggregateLegend
    • setTextColor

      public void setTextColor(Color textColor)
      Specified by:
      setTextColor in interface AggregateLegend
    • 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 org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
      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 org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException