Class LegendBuilder.LabelItem
- java.lang.Object
-
- org.eclipse.birt.chart.computation.LegendBuilder.LabelItem
-
- All Implemented Interfaces:
EllipsisHelper.ITester
- Enclosing class:
- LegendBuilder
public static class LegendBuilder.LabelItem extends java.lang.Object implements EllipsisHelper.ITester
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 labeljava.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)
-
-
-
Method Detail
-
setText
public void setText(java.lang.String sText) throws ChartException
- Throws:
ChartException
-
getFullText
public java.lang.String getFullText()
-
getValidTextLen
public int getValidTextLen()
-
testLabelVisible
public boolean testLabelVisible(java.lang.String strNew, java.lang.Object oPara) throws ChartException
- Specified by:
testLabelVisible
in interfaceEllipsisHelper.ITester
- Throws:
ChartException
-
checkEllipsis
public boolean checkEllipsis(double dWidthLimit) throws ChartException
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
public double getWidth() throws ChartException
- Specified by:
getWidth
in interfaceEllipsisHelper.ITester
- Throws:
ChartException
-
getHeight
public double getHeight() throws ChartException
- Specified by:
getHeight
in interfaceEllipsisHelper.ITester
- Throws:
ChartException
-
getCaption
public java.lang.String getCaption()
get the display text of the label- Returns:
- caption string
-
-