com.iver.cit.gvsig.fmap.rendering
Class RasterIntervalLegend

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.rendering.RasterIntervalLegend
All Implemented Interfaces:
ClassifiedLegend, ClassifiedLegendInfo, IntervalLegend, Legend, RasterLegend

public class RasterIntervalLegend
extends java.lang.Object
implements IntervalLegend, RasterLegend

Leyenda sobre una clase raster por intervalos.

Author:
Vicente Caballero Navarro

Constructor Summary
RasterIntervalLegend()
           
 
Method Summary
 void changeInterval(int index, FInterval newInterval)
          Cambia el intervalo index-ésimo del array de intervalos
 void clear()
          Elimina toda la información de clasificación: intervalos o valores
 Legend cloneLegend()
          Clona la leyenda.
static RasterIntervalLegend createFromXML(XMLEntity xml)
          Crea una RasterIntervalLegend a partir del XMLEntity.
 FSymbol getDefaultSymbol()
          Obtiene el símbolo por defecto de la leyenda
 java.lang.String[] getDescriptions()
          Obtiene las descripciones de las clases que hay en la clasificación
 java.lang.String getFieldName()
          Devuelve el nombre del campo.
 FStyle2D getSymbol(double d)
          Devuelve el símbolo a partir de un número.
 FSymbol[] getSymbols()
          Obtiene los símbolos de cada clase de la clasificación para el usuario.
 java.lang.Object[] getValues()
          Obtiene los valores relacionados con cada clase de la clasificación
 XMLEntity getXMLEntity()
          Devuelve el XMLEntity.
 void setDefaultSymbol(FStyle2D s)
          Establece el símbolo por defecto del Legend.
 void setFieldName(java.lang.String str)
          Inserta el nombre del campo.
 void setIntervalSymbol(FInterval i, FStyle2D value)
           
 void setIntervalSymbol(FInterval i, FSymbol value)
          Establece el símbolo asociado al intervalo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterIntervalLegend

public RasterIntervalLegend()
Method Detail

setIntervalSymbol

public void setIntervalSymbol(FInterval i,
                              FStyle2D value)
See Also:
com.iver.cit.gvsig.fmap.rendering.IntervalLegend#setIntervalSymbol(com.iver.cit.gvsig.fmap.rendering.FInterval, com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D)

changeInterval

public void changeInterval(int index,
                           FInterval newInterval)
Description copied from interface: IntervalLegend
Cambia el intervalo index-ésimo del array de intervalos

Specified by:
changeInterval in interface IntervalLegend
Parameters:
index - índice.
newInterval - nuevo intervalo.
See Also:
IntervalLegend.changeInterval(int, com.iver.cit.gvsig.fmap.rendering.FInterval)

clear

public void clear()
Description copied from interface: ClassifiedLegend
Elimina toda la información de clasificación: intervalos o valores

Specified by:
clear in interface ClassifiedLegend
See Also:
ClassifiedLegend.clear()

getFieldName

public java.lang.String getFieldName()
Description copied from interface: ClassifiedLegend
Devuelve el nombre del campo.

Specified by:
getFieldName in interface ClassifiedLegend
Returns:
Nombre del campo.
See Also:
ClassifiedLegend.getFieldName()

setFieldName

public void setFieldName(java.lang.String str)
Description copied from interface: ClassifiedLegend
Inserta el nombre del campo.

Specified by:
setFieldName in interface ClassifiedLegend
Parameters:
str - Nombre del campo.
See Also:
ClassifiedLegend.setFieldName(String)

getSymbol

public FStyle2D getSymbol(double d)
Description copied from interface: RasterLegend
Devuelve el símbolo a partir de un número.

Specified by:
getSymbol in interface RasterLegend
Parameters:
d - número.
Returns:
símbolo.
See Also:
RasterLegend.getSymbol(double)

setDefaultSymbol

public void setDefaultSymbol(FStyle2D s)
Description copied from interface: RasterLegend
Establece el símbolo por defecto del Legend. En un Legend de símbolo único, el símbolo se establece invocando este método

Specified by:
setDefaultSymbol in interface RasterLegend
Parameters:
s - Símbolo.
See Also:
RasterLegend.setDefaultSymbol(com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D)

getDescriptions

public java.lang.String[] getDescriptions()
Description copied from interface: ClassifiedLegendInfo
Obtiene las descripciones de las clases que hay en la clasificación

Specified by:
getDescriptions in interface ClassifiedLegendInfo
Returns:
DOCUMENT ME!
See Also:
ClassifiedLegendInfo.getDescriptions()

getSymbols

public FSymbol[] getSymbols()
Description copied from interface: ClassifiedLegendInfo
Obtiene los símbolos de cada clase de la clasificación para el usuario.

Specified by:
getSymbols in interface ClassifiedLegendInfo
Returns:
DOCUMENT ME!
See Also:
ClassifiedLegendInfo.getSymbols()

getValues

public java.lang.Object[] getValues()
Description copied from interface: ClassifiedLegendInfo
Obtiene los valores relacionados con cada clase de la clasificación

Specified by:
getValues in interface ClassifiedLegendInfo
Returns:
DOCUMENT ME!
See Also:
ClassifiedLegendInfo.getValues()

getDefaultSymbol

public FSymbol getDefaultSymbol()
Description copied from interface: Legend
Obtiene el símbolo por defecto de la leyenda

Specified by:
getDefaultSymbol in interface Legend
Returns:
Símbolo por defecto.
See Also:
Legend.getDefaultSymbol()

getXMLEntity

public XMLEntity getXMLEntity()
Description copied from interface: Legend
Devuelve el XMLEntity.

Specified by:
getXMLEntity in interface Legend
Returns:
XMLEntity.
See Also:
Legend.getXMLEntity()

createFromXML

public static RasterIntervalLegend createFromXML(XMLEntity xml)
Crea una RasterIntervalLegend a partir del XMLEntity.

Parameters:
xml - XMLEntity
Returns:
nuevo RasterIntervalLegend.

cloneLegend

public Legend cloneLegend()
Description copied from interface: Legend
Clona la leyenda.

Specified by:
cloneLegend in interface Legend
Returns:
Leyenda cloanada.
See Also:
Legend.cloneLegend()

setIntervalSymbol

public void setIntervalSymbol(FInterval i,
                              FSymbol value)
Description copied from interface: IntervalLegend
Establece el símbolo asociado al intervalo

Specified by:
setIntervalSymbol in interface IntervalLegend
Parameters:
i - Intervalo.
value - Símbolo.
See Also:
IntervalLegend.setIntervalSymbol(com.iver.cit.gvsig.fmap.rendering.FInterval, com.iver.cit.gvsig.fmap.core.v02.FSymbol)