Package org.gvsig.labeling.label
Class GeneralLabelingStrategy
java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.labeling.label.GeneralLabelingStrategy
- All Implemented Interfaces:
Cloneable,org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy,org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport,IGeneralLabelingStrategy,org.gvsig.tools.persistence.Persistent
public class GeneralLabelingStrategy
extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
implements IGeneralLabelingStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LinePlacementConstraintsstatic PointPlacementConstraintsstatic PolygonPlacementConstraintsstatic final Stringprotected org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVectFields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
PAPER, WORLDFields inherited from interface org.gvsig.labeling.label.IGeneralLabelingStrategy
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddraw(BufferedImage mapImage, Graphics2D mapGraphics, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethodorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraintsString[]org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraintsbooleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAllowOverlapping(boolean allowOverlapping) voidsetLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method) voidsetLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer) voidsetPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints) voidsetZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints) booleanshouldDrawLabels(double scale) Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setReferenceSystem, setUnit, toCartographicUnits
-
Field Details
-
GENERAL_LABEL_STRATEGY_PERSISTENCE_NAME
- See Also:
-
DefaultPointPlacementConstraints
-
DefaultLinePlacementConstraints
-
DefaultPolygonPlacementConstraints
-
layer
protected org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer
-
-
Constructor Details
-
GeneralLabelingStrategy
public GeneralLabelingStrategy()
-
-
Method Details
-
setLayer
public void setLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer) - Specified by:
setLayerin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
getLabelingMethod
public org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod getLabelingMethod()- Specified by:
getLabelingMethodin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setLabelingMethod
public void setLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method) - Specified by:
setLabelingMethodin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
draw
public void draw(BufferedImage mapImage, Graphics2D mapGraphics, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double dpi) throws org.gvsig.fmap.dal.exception.ReadException - Specified by:
drawin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
isAllowingOverlap
public boolean isAllowingOverlap()- Specified by:
isAllowingOverlapin interfaceIGeneralLabelingStrategy
-
setAllowOverlapping
public void setAllowOverlapping(boolean allowOverlapping) - Specified by:
setAllowOverlappingin interfaceIGeneralLabelingStrategy
-
getPlacementConstraints
public org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints getPlacementConstraints()- Specified by:
getPlacementConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setPlacementConstraints
public void setPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints) - Specified by:
setPlacementConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
getZoomConstraints
public org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints getZoomConstraints()- Specified by:
getZoomConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
setZoomConstraints
public void setZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints) - Specified by:
setZoomConstraintsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
print
public void print(Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException - Specified by:
printin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
getUsedFields
- Specified by:
getUsedFieldsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
shouldDrawLabels
public boolean shouldDrawLabels(double scale) - Specified by:
shouldDrawLabelsin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
-
registerPersistent
public static void registerPersistent() -
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- 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- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-