|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.util.ChartUtil
Utility class for Charts.
Constructor Summary | |
ChartUtil()
|
Method Summary | |
static double |
convertPixelsToPoints(IDisplayServer idsSWT,
double dOriginalHeight)
Convert pixel value to points. |
static int |
getQuadrant(double dAngle)
Returns the quadrant (1-4) for given angle in degree. |
static boolean |
intersects(IPolygon pg1,
IPolygon pg2)
Returns if two polygons intersect. |
static boolean |
isColorTransparent(ColorDefinition cdef)
Returns if the given color definition is totally transparent. |
static boolean |
isShadowDefined(Label la)
Returns if the given label defines a shadow. |
static boolean |
mathEqual(double v1,
double v2)
Returns if the given two double values are equal within a small precision, e.g. |
static boolean |
mathGT(double lv,
double rv)
Returns if the given left double value is greater than the given right value within a small precision, e.g. |
static boolean |
mathLT(double lv,
double rv)
Returns if the given left double value is less than the given right value within a small precision, e.g. |
static void |
mergeFont(FontDefinition original,
FontDefinition source)
Merges two fonts to the original one from a source. |
static java.lang.String |
stringValue(java.lang.Object value)
Returns the string representation for given object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChartUtil()
Method Detail |
public static final boolean isColorTransparent(ColorDefinition cdef)
cdef
-
public static final boolean isShadowDefined(Label la)
la
-
public static final boolean mathEqual(double v1, double v2)
v1
- v2
-
public static final boolean mathLT(double lv, double rv)
public static final boolean mathGT(double lv, double rv)
public static final double convertPixelsToPoints(IDisplayServer idsSWT, double dOriginalHeight)
idsSWT
- dOriginalHeight
-
public static final int getQuadrant(double dAngle)
dAngle
-
public static boolean intersects(IPolygon pg1, IPolygon pg2)
pg1
- pg2
-
public static void mergeFont(FontDefinition original, FontDefinition source)
original
- source
-
public static java.lang.String stringValue(java.lang.Object value)
value
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |