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 booleancheckEllipsis(double dWidthLimit)Checks if current label text should use ellipsis to shorten the length.java.lang.StringgetCaption()get the display text of the labeljava.lang.StringgetFullText()doublegetHeight()intgetValidTextLen()doublegetWidth()voidsetText(java.lang.String sText)booleantestLabelVisible(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:
testLabelVisiblein interfaceEllipsisHelper.ITester- Throws:
ChartException
-
checkEllipsis
public boolean checkEllipsis(double dWidthLimit) throws ChartExceptionChecks 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:
getWidthin interfaceEllipsisHelper.ITester- Throws:
ChartException
-
getHeight
public double getHeight() throws ChartException- Specified by:
getHeightin interfaceEllipsisHelper.ITester- Throws:
ChartException
-
getCaption
public java.lang.String getCaption()
get the display text of the label- Returns:
- caption string
-
-