org.eclipse.birt.chart.computation
Class LegendBuilder.LabelItem

java.lang.Object
  extended by 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


Constructor Summary
LegendBuilder.LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData, Label la)
           
LegendBuilder.LabelItem(org.eclipse.birt.chart.computation.LegendBuilder.LegendData lgData, Label la, double dWrapping)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
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 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.