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

    Fields
    Modifier and Type
    Field
    Description
     
     
     
    static final String
     
    protected org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect
     

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    PAPER, WORLD

    Fields inherited from interface org.gvsig.labeling.label.IGeneralLabelingStrategy

    NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    draw(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.ILabelingMethod
     
    org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
     
     
    org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints
     
    boolean
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    print(Graphics2D g, double scale, org.gvsig.fmap.mapcontext.ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, org.gvsig.compat.print.PrintAttributes properties)
     
    static void
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setAllowOverlapping(boolean allowOverlapping)
     
    void
    setLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method)
     
    void
    setLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer)
     
    void
    setPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints)
     
    void
    setZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints)
     
    boolean
    shouldDrawLabels(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, toCartographicUnits

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public static final String GENERAL_LABEL_STRATEGY_PERSISTENCE_NAME
      See Also:
    • DefaultPointPlacementConstraints

      public static PointPlacementConstraints DefaultPointPlacementConstraints
    • DefaultLinePlacementConstraints

      public static LinePlacementConstraints DefaultLinePlacementConstraints
    • DefaultPolygonPlacementConstraints

      public static PolygonPlacementConstraints 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:
      setLayer in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • getLabelingMethod

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod getLabelingMethod()
      Specified by:
      getLabelingMethod in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setLabelingMethod

      public void setLabelingMethod(org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingMethod method)
      Specified by:
      setLabelingMethod in interface org.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:
      draw in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • isAllowingOverlap

      public boolean isAllowingOverlap()
      Specified by:
      isAllowingOverlap in interface IGeneralLabelingStrategy
    • setAllowOverlapping

      public void setAllowOverlapping(boolean allowOverlapping)
      Specified by:
      setAllowOverlapping in interface IGeneralLabelingStrategy
    • getPlacementConstraints

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints getPlacementConstraints()
      Specified by:
      getPlacementConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setPlacementConstraints

      public void setPlacementConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints constraints)
      Specified by:
      setPlacementConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • getZoomConstraints

      public org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints getZoomConstraints()
      Specified by:
      getZoomConstraints in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • setZoomConstraints

      public void setZoomConstraints(org.gvsig.fmap.mapcontext.rendering.legend.styling.IZoomConstraints constraints)
      Specified by:
      setZoomConstraints in interface org.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:
      print in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • getUsedFields

      public String[] getUsedFields()
      Specified by:
      getUsedFields in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy
    • shouldDrawLabels

      public boolean shouldDrawLabels(double scale)
      Specified by:
      shouldDrawLabels in interface org.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:
      loadFromState in interface org.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:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException