org.rhq.enterprise.gui.image.widget
Class ResourceTree

java.lang.Object
  extended by org.rhq.enterprise.gui.image.WebImage
      extended by org.rhq.enterprise.gui.image.widget.ResourceTree

public class ResourceTree
extends WebImage


Field Summary
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
           
 
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
 
Constructor Summary
ResourceTree(int width)
           
ResourceTree(int width, int height)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.rhq.enterprise.gui.image.WebImage
getFontMetrics, getImage, getTextCenter, getTextCenter, getTextCenter, isRunnable, setBorder, writeJpegImage, writeJpegImage, writePngImage, writePngImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResourceTree

public ResourceTree(int width)

ResourceTree

public ResourceTree(int width,
                    int height)
Method Detail

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.