public class LabelPlacement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
MODEL_CENTERED
The internal model, used for edges only.
|
static short |
MODEL_FREE
The default free model.
|
static short |
MODEL_INTERNAL
The internal model, used for nodes only.
|
static short |
MODEL_SIX_POS
The seix pos model, used for nodes and edges.
|
static short |
PLACEMENT_BOTTOM
The bottom placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_BOTTOM_LEFT
The bottom left placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_BOTTOM_RIGHT
The bottom right placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_CENTER
The center placement, used for the
MODEL_INTERNAL and MODEL_CENTERED models. |
static short |
PLACEMENT_HEAD
The head placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_LEFT
The left placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_RIGHT
The right placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_SOURCE_HEAD
The source head placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_SOURCE_TAIL
The source tail placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_TAIL
The tail placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_TARGET_HEAD
The target head placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_TARGET_TAIL
The target tail placement, used for the
MODEL_SIX_POS model. |
static short |
PLACEMENT_TOP
The top placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_TOP_LEFT
The top left placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_TOP_RIGHT
The top right placement, used for the
MODEL_INTERNAL model. |
static short |
PLACEMENT_UNDEFINED
The undefined placement.
|
Constructor and Description |
---|
LabelPlacement(Labeled labeled) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptPlacement(short placement)
Return true if the placement can be accepted with the current placement model.
|
Labeled |
getLabeled() |
short |
getPlacement()
Return the placement.
|
short |
getPlacementModel()
Return the placement model.
|
boolean |
setPlacement(short placement)
Set the placement.
|
boolean |
setPlacementModel(short placementModel)
Set the placement model.
|
public static final short MODEL_FREE
public static final short MODEL_INTERNAL
public static final short MODEL_CENTERED
public static final short MODEL_SIX_POS
public static final short PLACEMENT_UNDEFINED
MODEL_FREE
model.public static final short PLACEMENT_TOP
MODEL_INTERNAL
model.public static final short PLACEMENT_BOTTOM
MODEL_INTERNAL
model.public static final short PLACEMENT_LEFT
MODEL_INTERNAL
model.public static final short PLACEMENT_RIGHT
MODEL_INTERNAL
model.public static final short PLACEMENT_TOP_RIGHT
MODEL_INTERNAL
model.public static final short PLACEMENT_TOP_LEFT
MODEL_INTERNAL
model.public static final short PLACEMENT_BOTTOM_RIGHT
MODEL_INTERNAL
model.public static final short PLACEMENT_BOTTOM_LEFT
MODEL_INTERNAL
model.public static final short PLACEMENT_CENTER
MODEL_INTERNAL
and MODEL_CENTERED
models.public static final short PLACEMENT_HEAD
MODEL_SIX_POS
model.public static final short PLACEMENT_SOURCE_HEAD
MODEL_SIX_POS
model.public static final short PLACEMENT_TARGET_HEAD
MODEL_SIX_POS
model.public static final short PLACEMENT_TAIL
MODEL_SIX_POS
model.public static final short PLACEMENT_SOURCE_TAIL
MODEL_SIX_POS
model.public static final short PLACEMENT_TARGET_TAIL
MODEL_SIX_POS
model.public LabelPlacement(Labeled labeled)
public Labeled getLabeled()
public boolean setPlacementModel(short placementModel)
placementModel
- the placement modelpublic short getPlacementModel()
public boolean acceptPlacement(short placement)
placement
- the placementpublic boolean setPlacement(short placement)
placement
- the placementpublic short getPlacement()
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence