|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.FigureUtilities
Provides miscellaneous Figure operations.
Constructor Summary | |
FigureUtilities()
|
Method Summary | |
static Color |
darker(Color color)
Returns a Color the same as the passed color in a darker hue. |
static FontMetrics |
getFontMetrics(Font f)
Returns the FontMetrics associated with the passed Font. |
protected static GC |
getGC()
|
protected static Point |
getStringDimension(String s,
Font f)
|
static Dimension |
getStringExtents(String s,
Font f)
Returns the Dimensions of s in Font f. |
protected static Point |
getTextDimension(String s,
Font f)
|
static Dimension |
getTextExtents(String text,
Font f)
Returns the Dimensions of the given text, converting newlines and tabs appropriately. |
static void |
getTextExtents(String s,
Font f,
Dimension result)
|
static int |
getTextWidth(String s,
Font f)
Returns the width of s in Font f. |
static Color |
lighter(Color rgb)
Returns a Color the same as the passed color in a lighter hue. |
static Shape |
makeGhostShape(Shape s)
Produces a ghosting effect on s/ |
static Color |
mixColors(Color c1,
Color c2)
Mixes the passed Colors and returns the resulting Color. |
static void |
paintEtchedBorder(Graphics g,
Rectangle r)
Paints a border with an etching effect, having a shadow of a darker version of g's background color, and a highlight a lighter version of g's background color. |
static void |
paintEtchedBorder(Graphics g,
Rectangle r,
Color shadow,
Color highlight)
Paints a border with an etching effect, having a shadow of Color shadow and highlight of Color highlight. |
protected static void |
setFont(Font f)
Sets Font to passed value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FigureUtilities()
Method Detail |
public static Color darker(Color color)
public static FontMetrics getFontMetrics(Font f)
protected static GC getGC()
protected static Point getTextDimension(String s, Font f)
protected static Point getStringDimension(String s, Font f)
public static Dimension getTextExtents(String text, Font f)
public static Dimension getStringExtents(String s, Font f)
public static void getTextExtents(String s, Font f, Dimension result)
public static int getTextWidth(String s, Font f)
public static Color lighter(Color rgb)
public static Shape makeGhostShape(Shape s)
public static Color mixColors(Color c1, Color c2)
public static void paintEtchedBorder(Graphics g, Rectangle r, Color shadow, Color highlight)
public static void paintEtchedBorder(Graphics g, Rectangle r)
protected static void setFont(Font f)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |