Class AbstractPlacementConstraints

java.lang.Object
org.gvsig.labeling.placements.AbstractPlacementConstraints
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
LinePlacementConstraints, MultiShapePlacementConstraints, PointPlacementConstraints, PolygonPlacementConstraints

public abstract class AbstractPlacementConstraints extends Object implements Cloneable, org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
  • Field Details

    • PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME

      public static final String PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME
      See Also:
  • Constructor Details

    • AbstractPlacementConstraints

      public AbstractPlacementConstraints()
  • Method Details

    • setDuplicateLabelsMode

      public void setDuplicateLabelsMode(int mode)
      Specified by:
      setDuplicateLabelsMode in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setPlacementMode

      public void setPlacementMode(int mode)
      Specified by:
      setPlacementMode in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isHorizontal

      public boolean isHorizontal()
      Specified by:
      isHorizontal in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isPerpendicular

      public boolean isPerpendicular()
      Specified by:
      isPerpendicular in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isFollowingLine

      public boolean isFollowingLine()
      Specified by:
      isFollowingLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isParallel

      public boolean isParallel()
      Specified by:
      isParallel in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • getDuplicateLabelsMode

      public int getDuplicateLabelsMode()
      Specified by:
      getDuplicateLabelsMode in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isOnTopOfThePoint

      public boolean isOnTopOfThePoint()
      Tells if the place mode selected is to put the label over the POINT
      Specified by:
      isOnTopOfThePoint in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
      Returns:
      boolean
    • isBelowTheLine

      public boolean isBelowTheLine()
      Specified by:
      isBelowTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isAboveTheLine

      public boolean isAboveTheLine()
      Specified by:
      isAboveTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isOnTheLine

      public boolean isOnTheLine()
      Specified by:
      isOnTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isPageOriented

      public boolean isPageOriented()
      Specified by:
      isPageOriented in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setOnTheLine

      public void setOnTheLine(boolean b)
      Specified by:
      setOnTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setPageOriented

      public void setPageOriented(boolean b)
      Specified by:
      setPageOriented in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setBelowTheLine

      public void setBelowTheLine(boolean b)
      Specified by:
      setBelowTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setAboveTheLine

      public void setAboveTheLine(boolean b)
      Specified by:
      setAboveTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isAtTheEndOfLine

      public boolean isAtTheEndOfLine()
      Specified by:
      isAtTheEndOfLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isAtTheBeginingOfLine

      public boolean isAtTheBeginingOfLine()
      Specified by:
      isAtTheBeginingOfLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isInTheMiddleOfLine

      public boolean isInTheMiddleOfLine()
      Specified by:
      isInTheMiddleOfLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isAtBestOfLine

      public boolean isAtBestOfLine()
      Specified by:
      isAtBestOfLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isAroundThePoint

      public boolean isAroundThePoint()
      Specified by:
      isAroundThePoint in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • isFitInsidePolygon

      public boolean isFitInsidePolygon()
      Specified by:
      isFitInsidePolygon in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setFitInsidePolygon

      public void setFitInsidePolygon(boolean b)
      Specified by:
      setFitInsidePolygon in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • setLocationAlongTheLine

      public void setLocationAlongTheLine(int location)
      Specified by:
      setLocationAlongTheLine in interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
    • 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
    • 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
    • registerPersistent

      public static void registerPersistent()
    • clone

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