org.rhq.enterprise.gui.image.widget
Class ResourceTree
java.lang.Object
org.rhq.enterprise.gui.image.WebImage
org.rhq.enterprise.gui.image.widget.ResourceTree
public class ResourceTree
- extends WebImage
| Fields inherited from class org.rhq.enterprise.gui.image.WebImage |
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 |
| Methods inherited from class org.rhq.enterprise.gui.image.WebImage |
getFontMetrics, getImage, getTextCenter, getTextCenter, getTextCenter, isRunnable, setBorder, writeJpegImage, writeJpegImage, writePngImage, writePngImage |
NAME_FONT
protected static final Font NAME_FONT
DESC_FONT
protected static final Font DESC_FONT
SELECTED_FONT
protected static final Font SELECTED_FONT
NAME_COLOR
protected static final Color NAME_COLOR
DESC_COLOR
protected static final Color DESC_COLOR
LINE_COLOR
protected static final Color LINE_COLOR
SOFT_LINE_COLOR
protected static final Color SOFT_LINE_COLOR
SELECTED_COLOR
protected static final Color SELECTED_COLOR
TRANSPARENT_COLOR
protected static final Color TRANSPARENT_COLOR
LINE_STROKE
protected static final Stroke LINE_STROKE
ResourceTree
public ResourceTree(int width)
ResourceTree
public ResourceTree(int width,
int height)
addLevel
public void addLevel(IResourceTreeNode[] resources)
getImageSize
public Dimension getImageSize()
getLevels
public IResourceTreeNode[][] getLevels()
calculateCoordinates
public void calculateCoordinates()
reset
public void reset()
toString
public String toString()
- Overrides:
toString in class Object
addTestRect
protected void addTestRect(Rectangle rect)
draw
protected void draw(Graphics2D g)
- Overrides:
draw in class WebImage
postInit
protected void postInit(Graphics2D g)
- Overrides:
postInit in class WebImage
preInit
protected void preInit()
- Overrides:
preInit in class WebImage
getIcon
public static BufferedImage getIcon(int type)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.