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 TypeMethodDescriptionboolean
checkEllipsis
(double dWidthLimit) Checks if current label text should use ellipsis to shorten the length.get the display text of the labeldouble
int
double
getWidth()
void
boolean
testLabelVisible
(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:
testLabelVisible
in 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:
getWidth
in interfaceEllipsisHelper.ITester
- Throws:
ChartException
-
getHeight
- Specified by:
getHeight
in interfaceEllipsisHelper.ITester
- Throws:
ChartException
-
getCaption
get the display text of the label- Returns:
- caption string
-