public static class LegendBuilder.LabelItem extends java.lang.Object implements EllipsisHelper.ITester
| Constructor and Description |
|---|
LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la) |
LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la,
double dWrapping) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEllipsis(double dWidthLimit)
Checks if current label text should use ellipsis to shorten the
length.
|
java.lang.String |
getCaption()
get the display text of the label
|
java.lang.String |
getFullText() |
double |
getHeight() |
int |
getValidTextLen() |
double |
getWidth() |
void |
setText(java.lang.String sText) |
boolean |
testLabelVisible(java.lang.String strNew,
java.lang.Object oPara) |
public LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la,
double dWrapping)
public LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la)
public void setText(java.lang.String sText)
throws ChartException
ChartExceptionpublic java.lang.String getFullText()
public int getValidTextLen()
public boolean testLabelVisible(java.lang.String strNew,
java.lang.Object oPara)
throws ChartException
testLabelVisible in interface EllipsisHelper.ITesterChartExceptionpublic boolean checkEllipsis(double dWidthLimit)
throws ChartException
dWidthLimit - the expected width to be reduced from the textChartExceptionpublic double getWidth()
throws ChartException
getWidth in interface EllipsisHelper.ITesterChartExceptionpublic double getHeight()
throws ChartException
getHeight in interface EllipsisHelper.ITesterChartExceptionpublic java.lang.String getCaption()
Copyright © 2005-2008 Actuate Corp. All rights reserved.