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

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.rendering.LegendFactory

public class LegendFactory
extends java.lang.Object

Clase factoria de las diferentes leyendas.

Author:
Fernando González Cortés

Field Summary
static FSymbol DEFAULT_LINE_SYMBOL
           
static FSymbol DEFAULT_POINT_SYMBOL
           
static FSymbol DEFAULT_POLYGON_SYMBOL
           
 
Constructor Summary
LegendFactory()
           
 
Method Summary
static VectorialLegend cloneLegend(VectorialLegend l)
          Clona la leyenda.
static VectorialLegend createFromXML(XMLEntity xml)
          Crea un renderer con la información contenida en el objeto XMLEntity
static VectorialLegend createSingleSymbolLegend(int shapeType)
          Crea un objeto renderer de símbolo único con las características que se pasan como parámetro
static VectorialIntervalLegend createVectorialIntervalLegend(int shapeType)
          Crea un objeto VectorialIntervalLegend vacío, dispuesto para cargar símbolos
static VectorialUniqueValueLegend createVectorialUniqueValueLegend(int shapeType)
          Crea un objeto VectorialUniqueValueLegend vacío, dispuesto para cargar símbolos
static XMLEntity getXMLEntity(VectorialLegend r)
          Obtiene un objeto con las propiedades del renderer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_POINT_SYMBOL

public static FSymbol DEFAULT_POINT_SYMBOL

DEFAULT_LINE_SYMBOL

public static FSymbol DEFAULT_LINE_SYMBOL

DEFAULT_POLYGON_SYMBOL

public static FSymbol DEFAULT_POLYGON_SYMBOL
Constructor Detail

LegendFactory

public LegendFactory()
Method Detail

createSingleSymbolLegend

public static VectorialLegend createSingleSymbolLegend(int shapeType)
Crea un objeto renderer de símbolo único con las características que se pasan como parámetro

Parameters:
shapeType - Tipo de shape.
Returns:
VectorialLegend.

createVectorialUniqueValueLegend

public static VectorialUniqueValueLegend createVectorialUniqueValueLegend(int shapeType)
Crea un objeto VectorialUniqueValueLegend vacío, dispuesto para cargar símbolos

Parameters:
shapeType - Tipo de shape.
Returns:
VectorialUniqueValueLegend.

createVectorialIntervalLegend

public static VectorialIntervalLegend createVectorialIntervalLegend(int shapeType)
Crea un objeto VectorialIntervalLegend vacío, dispuesto para cargar símbolos

Parameters:
shapeType - tipo de shape.
Returns:
VectorialIntervalLegend

getXMLEntity

public static XMLEntity getXMLEntity(VectorialLegend r)
                              throws DriverException
Obtiene un objeto con las propiedades del renderer. Este método se invocará con el fin de guardar el símbolo en disco.

Parameters:
r - VectorialLegend.
Returns:
XMLEntity.
Throws:
DriverException

createFromXML

public static VectorialLegend createFromXML(XMLEntity xml)
                                     throws XMLException
Crea un renderer con la información contenida en el objeto XMLEntity

Parameters:
xml - XMLEntity.
Returns:
VectorialLegend
Throws:
XMLException

cloneLegend

public static VectorialLegend cloneLegend(VectorialLegend l)
                                   throws XMLException,
                                          DriverException
Clona la leyenda.

Parameters:
l - VectorialLegend a clonar.
Returns:
VectorialLegend cloando.
Throws:
XMLException
DriverException