public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor,
TextAnchor textAnchor,
TextAnchor rotationAnchor,
double angle) {
if (itemLabelAnchor == null) {
throw new IllegalArgumentException(
"Null 'itemLabelAnchor' argument.");
}
if (textAnchor == null) {
throw new IllegalArgumentException("Null 'textAnchor' argument.");
}
if (rotationAnchor == null) {
throw new IllegalArgumentException(
"Null 'rotationAnchor' argument.");
}
this.itemLabelAnchor = itemLabelAnchor;
this.textAnchor = textAnchor;
this.rotationAnchor = rotationAnchor;
this.angle = angle;
}
Creates a new position record. The item label anchor is a point
relative to the data item (dot, bar or other visual item) on a chart.
The item label is aligned by aligning the text anchor with the
item label anchor. Parameters:
itemLabelAnchor - the item label anchor (null not
permitted).
textAnchor - the text anchor (null not permitted).
rotationAnchor - the rotation anchor (null not
permitted).
angle - the rotation angle (in radians).
|