public class IlvAnnealingPointLabelDescriptor extends IlvAnnealingLabelDescriptor
IlvAnnealingPointLabelDescriptor
can be used to
specify that the label should be placed close to specific point (the
point labeling problem). A typical application is to place
labels of cities on a map. These labels should be close to the related
cities, but they should not overlap each other and should not overlap
any city.
Sample drawings produced by the Annealing Label Layout algorithm with point label descriptors:
ilvAnnealingPointLabelDescriptor {
class : "ilog.views.graphlayout.labellayout.annealing.IlvAnnealingPointLabelDescriptor";
halfHeight : "3.0";
halfWidth : "3.0";
maxDistFromPath : "3.0";
preferredDirection : "2";
preferredDistFromPath : "3.0";
shape : "ELLIPTIC";
treatAs : "2";
}
Modifier and Type | Property and Description |
---|---|
java.lang.String |
class
Default constructor. |
double |
halfHeight
Sets the half height of the path around the reference point. |
double |
halfWidth
Sets the half width of the path around the reference point. |
double |
maxDistFromPath
Sets the maximum distance from the location on the path. |
int |
preferredDirection
Sets the preferred direction where the label is placed relative to the reference point or related obstacle. |
double |
preferredDistFromPath
Sets the preferred distance from the location on the path. |
int |
shape
Sets the shape of the allowed area around the reference point or related obstacle. |
int |
treatAs
Sets how the label should be treated by the IlvLabelLayoutRenderer of the IlvSDMEngine . |
public java.lang.String class
class : "ilog.views.graphlayout.labellayout.annealing.IlvAnnealingPointLabelDescriptor";
public double halfHeight
null
.
halfHeight : "3.0";
public double halfWidth
null
.
halfWidth : "3.0";
public double maxDistFromPath
maxDistFromPath : "3.0";
public int preferredDirection
IlvDirection.Left
IlvDirection.Right
IlvDirection.Top
IlvDirection.Bottom
(the default value)preferredDirection : "2";
public double preferredDistFromPath
preferredDistFromPath : "3.0";
public int shape
#ELLIPTIC
#RECTANGULAR
shape : "ELLIPTIC";
Allowed values: |
ELLIPTIC |
RECTANGULAR |
public int treatAs
IlvLabelLayoutRenderer
of the IlvSDMEngine
.
This method is internally used. You should not call this method.
treatAs : "2";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.