public abstract class AbstractPlacementConstraints extends java.lang.Object implements java.lang.Cloneable, IPlacementConstraints
Modifier and Type | Field and Description |
---|---|
static java.lang.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 |
---|---|
java.lang.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 java.lang.String PLACEMENT_CONSTRAINTS_PERSISTENCE_NAME
public void setDuplicateLabelsMode(int mode)
setDuplicateLabelsMode
in interface IPlacementConstraints
public void setPlacementMode(int mode)
setPlacementMode
in interface IPlacementConstraints
public boolean isHorizontal()
isHorizontal
in interface IPlacementConstraints
public boolean isPerpendicular()
isPerpendicular
in interface IPlacementConstraints
public boolean isFollowingLine()
isFollowingLine
in interface IPlacementConstraints
public boolean isParallel()
isParallel
in interface IPlacementConstraints
public int getDuplicateLabelsMode()
getDuplicateLabelsMode
in interface IPlacementConstraints
public boolean isOnTopOfThePoint()
isOnTopOfThePoint
in interface IPlacementConstraints
public boolean isBelowTheLine()
isBelowTheLine
in interface IPlacementConstraints
public boolean isAboveTheLine()
isAboveTheLine
in interface IPlacementConstraints
public boolean isOnTheLine()
isOnTheLine
in interface IPlacementConstraints
public boolean isPageOriented()
isPageOriented
in interface IPlacementConstraints
public void setOnTheLine(boolean b)
setOnTheLine
in interface IPlacementConstraints
public void setPageOriented(boolean b)
setPageOriented
in interface IPlacementConstraints
public void setBelowTheLine(boolean b)
setBelowTheLine
in interface IPlacementConstraints
public void setAboveTheLine(boolean b)
setAboveTheLine
in interface IPlacementConstraints
public boolean isAtTheEndOfLine()
isAtTheEndOfLine
in interface IPlacementConstraints
public boolean isAtTheBeginingOfLine()
isAtTheBeginingOfLine
in interface IPlacementConstraints
public boolean isInTheMiddleOfLine()
isInTheMiddleOfLine
in interface IPlacementConstraints
public boolean isAtBestOfLine()
isAtBestOfLine
in interface IPlacementConstraints
public boolean isAroundThePoint()
isAroundThePoint
in interface IPlacementConstraints
public boolean isFitInsidePolygon()
isFitInsidePolygon
in interface IPlacementConstraints
public void setFitInsidePolygon(boolean b)
setFitInsidePolygon
in interface IPlacementConstraints
public void setLocationAlongTheLine(int location)
setLocationAlongTheLine
in interface IPlacementConstraints
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistent()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException