|
|||||||||||
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(Polygon pg1,
Polygon pg2)
Returns if two polygons intersect each other. |
static boolean |
isColorTransparent(ColorDefinition cdef)
Returns if the given color definition is totally transparent. |
static boolean |
isShadowDefined(Label la)
Returns if the given label has defined a shadow. |
static boolean |
mathEqual(double v1,
double v2)
Returns if the given two double values are equal within a small precision. |
static boolean |
mathGE(double lv,
double rv)
Returns if the given left double value is greater than or equals to the given right value within a small precision. |
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. |
static boolean |
mathLE(double lv,
double rv)
Returns if the given left double value is less than or equals to the given right value within a small precision. |
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. |
static boolean |
mathNE(double v1,
double v2)
Returns if the given two double values are not equal within a small precision. |
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 mathNE(double v1, double v2)
v1
- v2
-
public static final boolean mathLT(double lv, double rv)
public static final boolean mathLE(double lv, double rv)
public static final boolean mathGT(double lv, double rv)
public static final boolean mathGE(double lv, double rv)
lv
- rv
-
public static final double convertPixelsToPoints(IDisplayServer idsSWT, double dOriginalHeight)
idsSWT
- dOriginalHeight
-
public static final int getQuadrant(double dAngle)
dAngle
-
public static boolean intersects(Polygon pg1, Polygon 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 |