public abstract class AbstractPlacementConstraints extends Object implements Cloneable, IPlacementConstraints
| Modifier and Type | Field and Description |
|---|---|
static String |
PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME |
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 and Description |
|---|
AbstractPlacementConstraints() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
getDuplicateLabelsMode() |
boolean |
isAboveTheLine() |
boolean |
isAroundThePoint() |
boolean |
isAtBestOfLine() |
boolean |
isAtTheBeginingOfLine() |
boolean |
isAtTheEndOfLine() |
boolean |
isBelowTheLine() |
boolean |
isFitInsidePolygon() |
boolean |
isFollowingLine() |
boolean |
isHorizontal() |
boolean |
isInTheMiddleOfLine() |
boolean |
isOnTheLine() |
boolean |
isOnTopOfThePoint()
Tells if the place mode selected is to put the label over the POINT
|
boolean |
isPageOriented() |
boolean |
isParallel() |
boolean |
isPerpendicular() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAboveTheLine(boolean b) |
void |
setBelowTheLine(boolean b) |
void |
setDuplicateLabelsMode(int mode) |
void |
setFitInsidePolygon(boolean b) |
void |
setLocationAlongTheLine(int location) |
void |
setOnTheLine(boolean b) |
void |
setPageOriented(boolean b) |
void |
setPlacementMode(int mode) |
public static final String PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME
public void setDuplicateLabelsMode(int mode)
setDuplicateLabelsMode in interface IPlacementConstraintspublic void setPlacementMode(int mode)
setPlacementMode in interface IPlacementConstraintspublic boolean isHorizontal()
isHorizontal in interface IPlacementConstraintspublic boolean isPerpendicular()
isPerpendicular in interface IPlacementConstraintspublic boolean isFollowingLine()
isFollowingLine in interface IPlacementConstraintspublic boolean isParallel()
isParallel in interface IPlacementConstraintspublic int getDuplicateLabelsMode()
getDuplicateLabelsMode in interface IPlacementConstraintspublic boolean isOnTopOfThePoint()
isOnTopOfThePoint in interface IPlacementConstraintspublic boolean isBelowTheLine()
isBelowTheLine in interface IPlacementConstraintspublic boolean isAboveTheLine()
isAboveTheLine in interface IPlacementConstraintspublic boolean isOnTheLine()
isOnTheLine in interface IPlacementConstraintspublic boolean isPageOriented()
isPageOriented in interface IPlacementConstraintspublic void setOnTheLine(boolean b)
setOnTheLine in interface IPlacementConstraintspublic void setPageOriented(boolean b)
setPageOriented in interface IPlacementConstraintspublic void setBelowTheLine(boolean b)
setBelowTheLine in interface IPlacementConstraintspublic void setAboveTheLine(boolean b)
setAboveTheLine in interface IPlacementConstraintspublic boolean isAtTheEndOfLine()
isAtTheEndOfLine in interface IPlacementConstraintspublic boolean isAtTheBeginingOfLine()
isAtTheBeginingOfLine in interface IPlacementConstraintspublic boolean isInTheMiddleOfLine()
isInTheMiddleOfLine in interface IPlacementConstraintspublic boolean isAtBestOfLine()
isAtBestOfLine in interface IPlacementConstraintspublic boolean isAroundThePoint()
isAroundThePoint in interface IPlacementConstraintspublic boolean isFitInsidePolygon()
isFitInsidePolygon in interface IPlacementConstraintspublic void setFitInsidePolygon(boolean b)
setFitInsidePolygon in interface IPlacementConstraintspublic void setLocationAlongTheLine(int location)
setLocationAlongTheLine in interface IPlacementConstraintspublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic static void registerPersistent()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException