|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.InteriorLabelModel
yFiles FLEX client label model data object that places the label at discrete locations inside the node's bounds.
Nested Class Summary | |
static class |
InteriorLabelModel.ModelParameter
Model parameter for the interior label model |
Field Summary | |
static ILabelModelParameter |
center
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
east
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
north
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
northEast
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
northWest
A convenience parameter instance that can be shared between label instances. |
static java.lang.String |
POSITION_CENTER
Encodes a position at the center of the node interior. |
static java.lang.String |
POSITION_EAST
Encodes a position at the right side of the node interior. |
static java.lang.String |
POSITION_NORTH
Encodes a position at the top side of the node interior. |
static java.lang.String |
POSITION_NORTH_EAST
Encodes a position at the top right corner of the node interior. |
static java.lang.String |
POSITION_NORTH_WEST
Encodes a position at the top left corner of the node interior. |
static java.lang.String |
POSITION_SOUTH
Encodes a position at the bottom side of the node interior. |
static java.lang.String |
POSITION_SOUTH_EAST
Encodes a position at the bottom right corner of the node interior. |
static java.lang.String |
POSITION_SOUTH_WEST
Encodes a position at the bottom left corner of the node interior. |
static java.lang.String |
POSITION_WEST
Encodes a position at the left side of the node interior. |
static ILabelModelParameter |
south
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
southEast
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
southWest
A convenience parameter instance that can be shared between label instances. |
static ILabelModelParameter |
west
A convenience parameter instance that can be shared between label instances. |
Constructor Summary | |
InteriorLabelModel()
Creates a new instance with default insets (0,0,0,0) |
|
InteriorLabelModel(Insets insets)
Creates a new instance that uses the given insets. |
Method Summary | |
ILabelModelParameter |
createDefaultParameter()
Creates a default parameter that can be used for this model. |
ILabelCandidateDescriptor |
getDescriptor(Label label,
ILabelModelParameter parameter)
Gets the descriptor for a given combination of label and ILabelModelParameter . |
Insets |
getInsets()
The label's insets. |
void |
setInsets(Insets insets)
The label's insets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String POSITION_NORTH
public static final java.lang.String POSITION_EAST
public static final java.lang.String POSITION_SOUTH
public static final java.lang.String POSITION_SOUTH_EAST
public static final java.lang.String POSITION_SOUTH_WEST
public static final java.lang.String POSITION_WEST
public static final java.lang.String POSITION_NORTH_EAST
public static final java.lang.String POSITION_NORTH_WEST
public static final java.lang.String POSITION_CENTER
public static final ILabelModelParameter north
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter east
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter south
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter southEast
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter southWest
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter west
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter northEast
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter northWest
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
public static final ILabelModelParameter center
InteriorLabelModel
, trying to change that
instance's insets will raise an UnsupportedOperationException
.
Constructor Detail |
public InteriorLabelModel()
public InteriorLabelModel(Insets insets)
Method Detail |
public Insets getInsets()
public void setInsets(Insets insets)
public ILabelModelParameter createDefaultParameter()
ILabelModel
createDefaultParameter
in interface ILabelModel
public ILabelCandidateDescriptor getDescriptor(Label label, ILabelModelParameter parameter)
ILabelModelParameter
.
getDescriptor
in interface ILabelCandidateDescriptorProvider
label
- The label to possibly assign the parameter
.parameter
- The parameter to provide a descriptor for if applied to the given label
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |