public class EllipsisHelper
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
EllipsisHelper.ITester
ITester
|
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ELLIPSIS_STRING |
| 构造器和说明 |
|---|
EllipsisHelper(EllipsisHelper.ITester tester_,
int iMinCharToView) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkLabelEllipsis(java.lang.String sText_,
java.lang.Object oPara) |
static EllipsisHelper.ITester |
createSimpleTester(IChartComputation cComp,
IDisplayServer xs,
Label la,
java.lang.Double fontHeight) |
static java.lang.String |
ellipsisString(java.lang.String str,
int iVisChar) |
EllipsisHelper.ITester |
getTester() |
int |
getVisibleCharCount()
Returns the visible char count before the ellipsis, 0 if no ellipsis is
used. e.g. if the text is "abcd..." then 4 will be returned. if the text
is "abcdefg" then 0 will be returned.
|
void |
setIMinCharToView(int iMinCharToView) |
static EllipsisHelper |
simpleInstance(IChartComputation cComp,
IDisplayServer xs,
Label la,
java.lang.Double fontHeight) |
public static final java.lang.String ELLIPSIS_STRING
public EllipsisHelper(EllipsisHelper.ITester tester_, int iMinCharToView)
public EllipsisHelper.ITester getTester()
public void setIMinCharToView(int iMinCharToView)
public static java.lang.String ellipsisString(java.lang.String str,
int iVisChar)
public int getVisibleCharCount()
public boolean checkLabelEllipsis(java.lang.String sText_,
java.lang.Object oPara)
throws ChartException
ChartExceptionpublic static EllipsisHelper.ITester createSimpleTester(IChartComputation cComp, IDisplayServer xs, Label la, java.lang.Double fontHeight) throws ChartException
ChartExceptionpublic static EllipsisHelper simpleInstance(IChartComputation cComp, IDisplayServer xs, Label la, java.lang.Double fontHeight) throws ChartException
ChartExceptionCopyright © 2005-2008 Actuate Corp. All rights reserved.