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
ChartException
public java.lang.String getFullText()
public int getValidTextLen()
public boolean testLabelVisible(java.lang.String strNew, java.lang.Object oPara) throws ChartException
testLabelVisible
in interface EllipsisHelper.ITester
ChartException
public boolean checkEllipsis(double dWidthLimit) throws ChartException
dWidthLimit
- the expected width to be reduced from the textChartException
public double getWidth() throws ChartException
getWidth
in interface EllipsisHelper.ITester
ChartException
public double getHeight() throws ChartException
getHeight
in interface EllipsisHelper.ITester
ChartException
public java.lang.String getCaption()
Copyright © 2005-2008 Actuate Corp. All rights reserved.