Class LegendBuilder.LabelItem
java.lang.Object
org.eclipse.birt.chart.computation.LegendBuilder.LabelItem
- All Implemented Interfaces:
EllipsisHelper.ITester
- Enclosing class:
- LegendBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckEllipsis(double dWidthLimit) Checks if current label text should use ellipsis to shorten the length.get the display text of the labeldoubleintdoublegetWidth()voidbooleantestLabelVisible(String strNew, Object oPara)
-
Constructor Details
-
LabelItem
public LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData, Label la, double dWrapping) -
LabelItem
-
-
Method Details
-
setText
- Throws:
ChartException
-
getFullText
-
getValidTextLen
public int getValidTextLen() -
testLabelVisible
- Specified by:
testLabelVisiblein interfaceEllipsisHelper.ITester- Throws:
ChartException
-
checkEllipsis
Checks if current label text should use ellipsis to shorten the length.- Parameters:
dWidthLimit- the expected width to be reduced from the text- Throws:
ChartException
-
getWidth
- Specified by:
getWidthin interfaceEllipsisHelper.ITester- Throws:
ChartException
-
getHeight
- Specified by:
getHeightin interfaceEllipsisHelper.ITester- Throws:
ChartException
-
getCaption
get the display text of the label- Returns:
- caption string
-