Package org.gvsig.complexlegend.impl
Class DefaultVectorComplexLegend
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
org.gvsig.complexlegend.impl.DefaultVectorComplexLegend
- All Implemented Interfaces:
Cloneable,VectorComplexLegend,org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable,org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend,org.gvsig.fmap.mapcontext.rendering.legend.ILegend,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 DefaultVectorComplexLegend
extends org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
implements VectorComplexLegend, org.gvsig.tools.persistence.Persistent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
LOG, VECTORIAL_LEGEND_PERSISTENCE_DEFINITION_NAME, zSortFields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractLegend
LEGEND_PERSISTENCE_DEFINITION_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ComplexLegendItem legend) clone()voiddraw(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) protected voiddraw(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) booleanorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolString[]getLegend(double scale) getLegendsInScale(double scale) protected String[]getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) intorg.gvsig.fmap.mapcontext.rendering.symbols.ISymbolgetSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[]Object[]booleanisOverlapped(ComplexLegendItem legend) booleanisSuitableForShapeType(int shapeType) booleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(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.compat.print.PrintAttributes properties) voidprint(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 fquery, org.gvsig.compat.print.PrintAttributes properties) booleanremove(ComplexLegendItem legend) voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAllowOverlap(boolean allowOverlap) voidsetDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) voidsetShapeType(int shapeType) voiduseDefaultSymbol(boolean b) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend
draw, drawFeatures, getZSort, internalDraw, isDrawSymbolInEeachPrimitive, setDrawSymbolInEeachPrimitive, setZSortMethods 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, removeLegendListenerMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.DrawingObservable
addDrawingObserver, deleteDrawingObserver, deleteDrawingObserversMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.ILegend
addLegendListener, cloneLegend, fireDefaultSymbolChangedEvent, getListeners, removeLegendListenerMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
draw
-
Field Details
-
COMPLEX_LEGEND_PERSISTENCE_DEFINITION_NAME
- See Also:
-
COMPLEX_LEGEND_NAME
- See Also:
-
COMPLEX_LEGEND_FIELD
- See Also:
-
-
Constructor Details
-
DefaultVectorComplexLegend
public DefaultVectorComplexLegend()
-
-
Method Details
-
getLegends
- Specified by:
getLegendsin interfaceVectorComplexLegend
-
getEditedLegends
-
isOverlapped
- Specified by:
isOverlappedin interfaceVectorComplexLegend
-
clone
- Specified by:
clonein interfaceorg.gvsig.tools.lang.Cloneable- Overrides:
clonein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
CloneNotSupportedException
-
add
- Specified by:
addin interfaceVectorComplexLegend
-
remove
- Specified by:
removein interfaceVectorComplexLegend
-
getLegend
- Specified by:
getLegendin interfaceVectorComplexLegend
-
getLegendsInScale
-
print
public void print(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 fquery, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.mapcontext.rendering.legend.LegendException - Specified by:
printin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Overrides:
printin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.fmap.mapcontext.rendering.legend.LegendException
-
print
public void print(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.compat.print.PrintAttributes properties) throws org.gvsig.fmap.mapcontext.rendering.legend.LegendException - Specified by:
printin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Overrides:
printin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.fmap.mapcontext.rendering.legend.LegendException
-
draw
public 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) throws org.gvsig.fmap.mapcontext.rendering.legend.LegendException - Specified by:
drawin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Overrides:
drawin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.fmap.mapcontext.rendering.legend.LegendException
-
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:
drawin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.fmap.mapcontext.rendering.legend.LegendException
-
getAllowOverlap
public boolean getAllowOverlap()- Specified by:
getAllowOverlapin interfaceVectorComplexLegend
-
setAllowOverlap
public void setAllowOverlap(boolean allowOverlap) - Specified by:
setAllowOverlapin interfaceVectorComplexLegend
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classorg.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:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
getSymbolByFeature
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getSymbolByFeature(org.gvsig.fmap.dal.feature.Feature feat) throws org.gvsig.fmap.mapcontext.MapContextException - Specified by:
getSymbolByFeaturein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend- Throws:
org.gvsig.fmap.mapcontext.MapContextException
-
getShapeType
public int getShapeType()- Specified by:
getShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
setShapeType
public void setShapeType(int shapeType) - Specified by:
setShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
setDefaultSymbol
public void setDefaultSymbol(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol s) - Specified by:
setDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
isUseDefaultSymbol
public boolean isUseDefaultSymbol()- Specified by:
isUseDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
useDefaultSymbol
public void useDefaultSymbol(boolean b) - Specified by:
useDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
isSuitableForShapeType
public boolean isSuitableForShapeType(int shapeType) - Specified by:
isSuitableForShapeTypein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getDefaultSymbol
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol getDefaultSymbol()- Specified by:
getDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.ILegend- Specified by:
getDefaultSymbolin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend
-
getRequiredFeatureAttributeNames
protected String[] getRequiredFeatureAttributeNames(org.gvsig.fmap.dal.feature.FeatureStore featureStore) throws org.gvsig.fmap.dal.exception.DataException - Specified by:
getRequiredFeatureAttributeNamesin classorg.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractVectorialLegend- Throws:
org.gvsig.fmap.dal.exception.DataException
-
getDescriptions
- Specified by:
getDescriptionsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
getSymbols
public org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol[] getSymbols()- Specified by:
getSymbolsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-
getValues
- Specified by:
getValuesin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.IClassifiedLegend
-