public class ResourceTree extends WebImage
| Modifier and Type | Field and Description |
|---|---|
protected static Color |
DESC_COLOR |
protected static Font |
DESC_FONT |
protected static Color |
LINE_COLOR |
protected static Stroke |
LINE_STROKE |
protected static Color |
NAME_COLOR |
protected static Font |
NAME_FONT |
protected static Color |
SELECTED_COLOR |
protected static Font |
SELECTED_FONT |
protected static Color |
SOFT_LINE_COLOR |
protected static Color |
TRANSPARENT_COLOR |
antiAliased, ARG_CANNOT_BE_NULL, backgroundColor, bottomBorder, DEFAULT_BACKGROUND_COLOR, DEFAULT_BOLD_TYPEFACE, DEFAULT_BORDER_COLOR, DEFAULT_BORDER_SIZE, DEFAULT_FONT, DEFAULT_FONT_METRICS, DEFAULT_HEIGHT, DEFAULT_PLAIN_TYPEFACE, DEFAULT_SHADOW_WIDTH, DEFAULT_TEXT_COLOR, DEFAULT_WIDTH, font, frameImage, height, indexColors, leftBorder, m_graphics, rightBorder, shadowWidth, SMALL_FONT, textColor, topBorder, width| Constructor and Description |
|---|
ResourceTree(int width) |
ResourceTree(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLevel(IResourceTreeNode[] resources) |
protected void |
addTestRect(Rectangle rect) |
void |
calculateCoordinates() |
protected void |
draw(Graphics2D g) |
static BufferedImage |
getIcon(int type) |
Dimension |
getImageSize() |
IResourceTreeNode[][] |
getLevels() |
protected void |
postInit(Graphics2D g) |
protected void |
preInit() |
void |
reset() |
String |
toString() |
getFontMetrics, getImage, getTextCenter, getTextCenter, getTextCenter, isRunnable, setBorder, writeJpegImage, writeJpegImage, writePngImage, writePngImageprotected static final Font NAME_FONT
protected static final Font DESC_FONT
protected static final Font SELECTED_FONT
protected static final Color NAME_COLOR
protected static final Color DESC_COLOR
protected static final Color LINE_COLOR
protected static final Color SOFT_LINE_COLOR
protected static final Color SELECTED_COLOR
protected static final Color TRANSPARENT_COLOR
protected static final Stroke LINE_STROKE
public ResourceTree(int width)
public ResourceTree(int width,
int height)
public void addLevel(IResourceTreeNode[] resources)
public Dimension getImageSize()
public IResourceTreeNode[][] getLevels()
public void calculateCoordinates()
public void reset()
protected void addTestRect(Rectangle rect)
protected void draw(Graphics2D g)
protected void postInit(Graphics2D g)
public static BufferedImage getIcon(int type)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.