Package org.gvsig.labeling.placements
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
-
Field Summary
FieldsFields inherited from interface org.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
AT_ANGLE_SPECIFIED_BY_A_FIELD, AT_BEST_OF_LINE, AT_SPECIFIED_ANGLE, AT_THE_BEGINING_OF_THE_LINE, AT_THE_END_OF_THE_LINE, AT_THE_MIDDLE_OF_THE_LINE, DefaultDuplicateLabelsMode, FOLLOWING_LINE, HORIZONTAL, OFFSET_HORIZONTALY_AROUND_THE_POINT, ON_TOP_OF_THE_POINT, ONE_LABEL_PER_FEATURE, ONE_LABEL_PER_FEATURE_PART, PARALLEL, PERPENDICULAR, REMOVE_DUPLICATE_LABELS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanTells if the place mode selected is to put the label over the POINTbooleanbooleanbooleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetAboveTheLine(boolean b) voidsetBelowTheLine(boolean b) voidsetDuplicateLabelsMode(int mode) voidsetFitInsidePolygon(boolean b) voidsetLocationAlongTheLine(int location) voidsetOnTheLine(boolean b) voidsetPageOriented(boolean b) voidsetPlacementMode(int mode)
-
Field Details
-
PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME
- See Also:
-
-
Constructor Details
-
AbstractPlacementConstraints
public AbstractPlacementConstraints()
-
-
Method Details
-
setDuplicateLabelsMode
public void setDuplicateLabelsMode(int mode) - Specified by:
setDuplicateLabelsModein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setPlacementMode
public void setPlacementMode(int mode) - Specified by:
setPlacementModein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isHorizontal
public boolean isHorizontal()- Specified by:
isHorizontalin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isPerpendicular
public boolean isPerpendicular()- Specified by:
isPerpendicularin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isFollowingLine
public boolean isFollowingLine()- Specified by:
isFollowingLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
getDuplicateLabelsMode
public int getDuplicateLabelsMode()- Specified by:
getDuplicateLabelsModein interfaceorg.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:
isOnTopOfThePointin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints- Returns:
- boolean
-
isBelowTheLine
public boolean isBelowTheLine()- Specified by:
isBelowTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isAboveTheLine
public boolean isAboveTheLine()- Specified by:
isAboveTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isOnTheLine
public boolean isOnTheLine()- Specified by:
isOnTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isPageOriented
public boolean isPageOriented()- Specified by:
isPageOrientedin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setOnTheLine
public void setOnTheLine(boolean b) - Specified by:
setOnTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setPageOriented
public void setPageOriented(boolean b) - Specified by:
setPageOrientedin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setBelowTheLine
public void setBelowTheLine(boolean b) - Specified by:
setBelowTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setAboveTheLine
public void setAboveTheLine(boolean b) - Specified by:
setAboveTheLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isAtTheEndOfLine
public boolean isAtTheEndOfLine()- Specified by:
isAtTheEndOfLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isAtTheBeginingOfLine
public boolean isAtTheBeginingOfLine()- Specified by:
isAtTheBeginingOfLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isInTheMiddleOfLine
public boolean isInTheMiddleOfLine()- Specified by:
isInTheMiddleOfLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isAtBestOfLine
public boolean isAtBestOfLine()- Specified by:
isAtBestOfLinein interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isAroundThePoint
public boolean isAroundThePoint()- Specified by:
isAroundThePointin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
isFitInsidePolygon
public boolean isFitInsidePolygon()- Specified by:
isFitInsidePolygonin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setFitInsidePolygon
public void setFitInsidePolygon(boolean b) - Specified by:
setFitInsidePolygonin interfaceorg.gvsig.fmap.mapcontext.rendering.legend.styling.IPlacementConstraints
-
setLocationAlongTheLine
public void setLocationAlongTheLine(int location) - Specified by:
setLocationAlongTheLinein interfaceorg.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:
saveToStatein interfaceorg.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:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
registerPersistent
public static void registerPersistent() -
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-