|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.computation.Methods
public class Methods
Methods
Field Summary |
---|
Fields inherited from interface org.eclipse.birt.chart.computation.IConstants |
---|
ABOVE, ANCILLARY_AXIS, ANCILLARY_BASE, AUTO, AVERAGE, AXIS, BACKWARD, BASE, BASE_AXIS, BELOW, BIG_NUMBER_PRIMITIVE_ARRAY, BOOLEAN, BOTTOM, CENTER, COLLECTION, DATE_TIME, DESIGN_TIME, EMPTY_STRING, EQUAL, FORWARD, HORIZONTAL, INSIDE, LABELS, LEFT, LEGEND_ENTRY, LEGEND_GROUP_NAME, LEGEND_MINSLICE_ENTRY, LEGEND_SEPERATOR, LESS, LINE_EXPAND_DOUBLE_SIZE, LINE_EXPAND_SIZE, LINEAR, LOG_10, LOGARITHMIC, MAJOR, MAX, MIN, MINOR, MORE, NON_PRIMITIVE_ARRAY, NULL_STRING, NUMBER_PRIMITIVE_ARRAY, NUMERICAL, ONE_SPACE, ORTHOGONAL, ORTHOGONAL_AXIS, OTHER, OUTSIDE, PERCENT, POSITION_MASK, POSITION_MOVE_ABOVE, POSITION_MOVE_BELOW, POSITION_MOVE_LEFT, POSITION_MOVE_RIGHT, PRIMITIVE_ARRAY, RIGHT, RUN_TIME, SOME_NULL, TEXT, THREE_D, TICK_ABOVE, TICK_ACROSS, TICK_BELOW, TICK_LEFT, TICK_NONE, TICK_RIGHT, TICK_SIDE1, TICK_SIDE2, TICK_SIZE, TOP, TWO_5_D, TWO_D, UNDEFINED, UNDEFINED_STRING, USER_INTERFACE, VALUE, VERTICAL |
Constructor Summary | |
---|---|
Methods()
|
Method Summary | |
---|---|
static CDateTime |
asDateTime(java.lang.Object o)
Converts given object to a DateTime object. |
static java.lang.Double |
asDouble(java.lang.Object o)
Converts the given object to a Double object. |
static int |
asInteger(java.lang.Object o)
Converts the given object to an Integer object. |
static BoundingBox |
computeBox(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY)
|
static BoundingBox |
computeBox(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY,
double dWrapping)
|
static BoundingBox |
computeBox(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY,
double dWrapping,
java.lang.Double fontHeight)
|
static BoundingBox |
computeBox(IDisplayServer xs,
ITextMetrics itm,
int iLabelLocation,
Label la,
double dX,
double dY,
java.lang.Double fontHeight)
|
static double |
computeFontHeight(IDisplayServer xs,
Label la)
Convenient method to compute the font's height of a label. |
static double |
computeHeight(IDisplayServer xs,
Label la)
|
static double |
computeHeight(ITextMetrics itm,
Label la)
|
static BoundingBox |
computeLabelSize(IDisplayServer xs,
Label la,
double dWrapping,
java.lang.Double fontHeight)
Compute the size of a label. |
static RotatedRectangle |
computePolygon(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY)
|
static RotatedRectangle |
computePolygon(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY,
java.lang.Double fontHeight)
|
static RotatedRectangle |
computePolygon(ITextMetrics itm,
int iLabelLocation,
Label la,
double dX,
double dY,
java.lang.Double fontHeight)
|
static Location |
computeRotatedTopPoint(IDisplayServer xs,
BoundingBox bbox,
Label la,
double fullHeight)
|
static double |
computeWidth(IDisplayServer xs,
Label la)
|
static double |
computeWidth(ITextMetrics itm,
Label la)
|
static int |
getLabelPosition(Position lp)
Converts to internal (non public-model) data structures |
static double |
getLocation(AutoScale sc,
double dValue)
|
static double |
getLocation(AutoScale sc,
java.lang.Number bdValue)
Computes and returns the location based on specified value and scale info. |
static double |
getLocation(AutoScale sc,
java.lang.Object oValue)
|
static double |
getNormalizedLocation(AutoScale sc,
double dValue)
|
static double |
getNormalizedLocation(AutoScale sc,
java.lang.Object oValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Methods()
Method Detail |
---|
public static final CDateTime asDateTime(java.lang.Object o)
o
-
public static final java.lang.Double asDouble(java.lang.Object o)
o
-
public static final int asInteger(java.lang.Object o)
o
-
public static final double getLocation(AutoScale sc, java.lang.Object oValue) throws ChartException, java.lang.IllegalArgumentException
sc
- oValue
-
ChartException
java.lang.IllegalArgumentException
public static final double getNormalizedLocation(AutoScale sc, double dValue)
sc
- dValue
-
public static final double getNormalizedLocation(AutoScale sc, java.lang.Object oValue) throws ChartException, java.lang.IllegalArgumentException
sc
- oValue
-
ChartException
java.lang.IllegalArgumentException
public static final double getLocation(AutoScale sc, java.lang.Number bdValue)
sc
- scale info instance.bdValue
- specified value.
public static final double getLocation(AutoScale sc, double dValue) throws java.lang.IllegalArgumentException
sc
- dValue
-
java.lang.IllegalArgumentException
public static final double computeWidth(IDisplayServer xs, Label la)
g2d
- fm
- sText
- dAngleInDegrees
-
public static final double computeWidth(ITextMetrics itm, Label la)
public static final double computeHeight(IDisplayServer xs, Label la)
g2d
- fm
- sText
- iAngleInDegrees
-
public static final double computeHeight(ITextMetrics itm, Label la)
public static final RotatedRectangle computePolygon(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY) throws java.lang.IllegalArgumentException
iLabelLocation
- g2d
- fm
- sText
- dAngleInDegrees
- dX
- dY
-
java.lang.IllegalArgumentException
public static final RotatedRectangle computePolygon(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY, java.lang.Double fontHeight) throws java.lang.IllegalArgumentException
xs
- iLabelLocation
- la
- dX
- dY
- fontHeight
- , see also: computeFontHeight
java.lang.IllegalArgumentException
public static final RotatedRectangle computePolygon(ITextMetrics itm, int iLabelLocation, Label la, double dX, double dY, java.lang.Double fontHeight) throws java.lang.IllegalArgumentException
xs
- iLabelLocation
- la
- dX
- dY
- fontHeight
- , see also: computeFontHeight
java.lang.IllegalArgumentException
public static final Location computeRotatedTopPoint(IDisplayServer xs, BoundingBox bbox, Label la, double fullHeight) throws java.lang.IllegalArgumentException
xs
- bbox
- la
- fullHeight
-
java.lang.IllegalArgumentException
public static final BoundingBox computeBox(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY) throws java.lang.IllegalArgumentException
xs
- iLabelLocation
- la
- dX
- dY
-
java.lang.IllegalArgumentException
public static final BoundingBox computeLabelSize(IDisplayServer xs, Label la, double dWrapping, java.lang.Double fontHeight) throws ChartException
xs
- la
- dWrapping
- fontHeight
- , pre-computed font height
ChartException
public static final BoundingBox computeBox(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY, double dWrapping) throws java.lang.IllegalArgumentException
xs
- iLabelLocation
- la
- dX
- dY
- dWrapping
- the max size for wrapping by pixels
java.lang.IllegalArgumentException
public static final BoundingBox computeBox(IDisplayServer xs, ITextMetrics itm, int iLabelLocation, Label la, double dX, double dY, java.lang.Double fontHeight) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static final BoundingBox computeBox(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY, double dWrapping, java.lang.Double fontHeight) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static final int getLabelPosition(Position lp)
lp
-
public static double computeFontHeight(IDisplayServer xs, Label la)
xs
- la
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |