public class TreemapUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
fitText(VText text,
Rect bounds,
double maxHeight)
Fits a VText instance to the given bounds, obeying a maximum height
constraint
|
static double |
getVTextHeight(VText text)
Returns the approximate height of a VText, in
virtual space units.
|
static double |
getVTextWidth(VText text)
Returns the approximate width of a VText, in
virtual space units.
|
static GradientPaint |
makeDiagGradient(float width,
float height,
Color centerColor)
Returns a diagonal gradient centered around a color (upper left
corner is lighter, lower right corner is darker)
|
static Tree<ZMapItem> |
swingToUmd(TreeModel srcModel)
Returns a new UMD Tree instance that is equivalent to the
given Swing TreeModel
|
public static Tree<ZMapItem> swingToUmd(TreeModel srcModel)
public static void fitText(VText text, Rect bounds, double maxHeight)
public static double getVTextHeight(VText text)
public static double getVTextWidth(VText text)
public static GradientPaint makeDiagGradient(float width, float height, Color centerColor)
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.