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

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

public class ColorRamp
extends java.lang.Object
implements RasterLegend

Rampa de colores para el dibujado de Raster.

Author:
Vicente Caballero Navarro

Constructor Summary
ColorRamp()
           
 
Method Summary
 Legend cloneLegend()
          Clona la leyenda.
static ColorRamp createFromXML(XMLEntity xml)
          Crea un ColorRamp a partir del XMLEntity.
 java.awt.Color getColor(double d)
          Devuelve el color a partir del número.
 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
 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 setFirstPoint(double d, java.awt.Color c)
          Inserta el número inicial y el color inicial.
 void setLastPoint(double d, java.awt.Color c)
          Inserta el Número fianl y el color final.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorRamp

public ColorRamp()
Method Detail

setFirstPoint

public void setFirstPoint(double d,
                          java.awt.Color c)
Inserta el número inicial y el color inicial.

Parameters:
d - Número inicial.
c - Color inicial.

setLastPoint

public void setLastPoint(double d,
                         java.awt.Color c)
Inserta el Número fianl y el color final.

Parameters:
d - Número final.
c - Color final.

getColor

public java.awt.Color getColor(double d)
Devuelve el color a partir del número.

Parameters:
d - Número.
Returns:
Color.

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()

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)

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 ColorRamp createFromXML(XMLEntity xml)
Crea un ColorRamp a partir del XMLEntity.

Parameters:
xml - XMLEntity.
Returns:
Nuevo ColorRamp.

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()