Class DotDensityLegend

java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractClassifiedVectorLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
org.gvsig.symbology.fmap.rendering.DotDensityLegend
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable, org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend, org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend, org.gvsig.fmap.mapcontext.rendering.legend.ILegend, org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend, org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend, org.gvsig.fmap.mapcontext.rendering.legend.Legend, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class DotDensityLegend extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
Implements a legend where the magnitudes of a specific area of the map are represented by the density of the points that are distributed in the surface.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

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

    VECTORIAL_UNIQUE_VALUE_LEGEND_PERSISTENCE_DEFINITION_NAME

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

    CLASSIFIED_VECTOR_LEGEND_PERSISTENCE_DEFINITION_NAME

    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.IVectorialUniqueValueLegend

    LEGEND_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Obtains the background color for the dot density legend
     
    Returns the color for the dot used in the dot density legend.
    double
    Obtains the size of the dot that is used in the dot density legend
    double
    Returns the value for the dot that is used in the dot density legend
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    Returns the outline
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat)
     
    org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
     
    static boolean
    isPolygonal(int ty)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    Sets the background color for the dot density legend
    void
    Sets the color for the dot used in the dot density legend.
    void
    setDotSize(double value)
    Sets the size of the dot that is used in the dot density legend
    void
    setDotValue(double dotValue)
    Establishes the value for the dot used in the dot density legend

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

    addSymbol, clear, delAllSymbols, delSymbol, getClassName, getColorScheme, getDefaultSymbol, getShapeType, getSymbolKey, getSymbols, getValues, isUseDefaultSymbol, replace, setClassifyingFieldNames, setClassifyingFieldTypes, setColorScheme, setDefaultSymbol, setShapeType, setValueSymbolByID, useDefaultSymbol

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

    fireClassifiedSymbolChangeEvent, fireLegendClearEvent, getClassifyingFieldNames, getClassifyingFieldTypes, getRequiredFeatureAttributeNames, isSuitableForShapeType

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

    draw, draw, draw, drawFeatures, 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.fmap.mapcontext.rendering.legend.DrawingObservable

    addDrawingObserver, deleteDrawingObserver, deleteDrawingObservers

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

    getClassifyingFieldNames, getClassifyingFieldTypes

    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.IVectorialUniqueValueLegend

    getZSort, setZSort

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

    draw, draw, isSuitableForShapeType, print, print
  • Field Details

  • Constructor Details

    • DotDensityLegend

      public DotDensityLegend()
  • Method Details

    • getSymbolByValue

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByValue(Object val)
      Specified by:
      getSymbolByValue in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorialUniqueValueLegend
      Overrides:
      getSymbolByValue in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
    • getSymbolByFeature

      public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat)
      Specified by:
      getSymbolByFeature in interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
      Overrides:
      getSymbolByFeature in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
    • setDotValue

      public void setDotValue(double dotValue)
      Establishes the value for the dot used in the dot density legend
      Parameters:
      dotValue -
    • 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.VectorialUniqueValueLegend
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • 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.VectorialUniqueValueLegend
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • getOutline

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol getOutline()
      Returns the outline
      Returns:
    • getDotColor

      public Color getDotColor()
      Returns the color for the dot used in the dot density legend.
      Returns:
    • setDotColor

      public void setDotColor(Color color)
      Sets the color for the dot used in the dot density legend.
    • getBGColor

      public Color getBGColor()
      Obtains the background color for the dot density legend
      Returns:
    • setBGColor

      public void setBGColor(Color color)
      Sets the background color for the dot density legend
    • getDotValue

      public double getDotValue()
      Returns the value for the dot that is used in the dot density legend
      Returns:
    • getDotSize

      public double getDotSize()
      Obtains the size of the dot that is used in the dot density legend
      Returns:
    • setDotSize

      public void setDotSize(double value)
      Sets the size of the dot that is used in the dot density legend
    • isPolygonal

      public static boolean isPolygonal(int ty)
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend
      Throws:
      CloneNotSupportedException
    • getDescriptions

      public String[] getDescriptions()
      Specified by:
      getDescriptions in interface org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
      Overrides:
      getDescriptions in class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend