de.jaret.util.ui.timebars.swing.renderer
Interface HierarchyRenderer

All Known Implementing Classes:
DefaultHierarchyRenderer

public interface HierarchyRenderer

This interface describes a renderer used to render the hierarchy column.

Version:
$Id: HierarchyRenderer.java 800 2008-12-27 22:27:33Z kliem $
Author:
Peter Kliem

Method Summary
 javax.swing.JComponent getHierarchyRendererComponent(TimeBarViewer tbv, TimeBarRow row, boolean selected, boolean expanded, boolean leaf, int level, int depth)
          Provide a configured JComponent for rendering the hierarchy.
 int getWidth()
          Return the preferred width for the hierachy display.
 

Method Detail

getHierarchyRendererComponent

javax.swing.JComponent getHierarchyRendererComponent(TimeBarViewer tbv,
                                                     TimeBarRow row,
                                                     boolean selected,
                                                     boolean expanded,
                                                     boolean leaf,
                                                     int level,
                                                     int depth)
Provide a configured JComponent for rendering the hierarchy.

Parameters:
tbv - the requesting timebar viewer
row - the row (node) for which the hierarchy should be painted
selected - wehether the row is selscted or not
expanded - expanded status of the row
leaf - if true the row is a leaf
level - level in the tree of the current element
depth - depth of the tree. If the depth is not known a value of -1 will indicate this fact.
Returns:
the configured JComponent for rendering

getWidth

int getWidth()
Return the preferred width for the hierachy display.

Returns:
preferred with or -1 for "don't care"


Copyright © 2012. All Rights Reserved.