org.eclipse.birt.chart.computation
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LegendBuilder.LabelItem
public LegendBuilder.LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la,
double dWrapping)
LegendBuilder.LabelItem
public LegendBuilder.LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData,
Label la)
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 interface EllipsisHelper.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 interface EllipsisHelper.ITester
- Throws:
ChartException
getHeight
public double getHeight()
throws ChartException
- Specified by:
getHeight
in interface EllipsisHelper.ITester
- Throws:
ChartException
getCaption
public java.lang.String getCaption()
- get the display text of the label
- Returns:
- caption string
Copyright © 2005-2008 Actuate Corp. All rights reserved.