public static final class Histogram.PackageTree extends Object implements IResultTree, IIconProvider
EMPTY
Constructor and Description |
---|
PackageTree(Histogram histogram) |
Modifier and Type | Method and Description |
---|---|
List<?> |
getChildren(Object parent)
Returns the child elements of the given parent.
|
Column[] |
getColumns()
The columns of the tree or table.
|
Object |
getColumnValue(Object row,
int columnIndex)
Returns the (unformatted) value of a table/tree cell.
|
IContextObject |
getContext(Object row)
The default context of the row which is used to display information in
the object inspector.
|
List<?> |
getElements()
Returns the root elements of the tree.
|
Histogram |
getHistogram() |
URL |
getIcon(Object row) |
ResultMetaData |
getResultMetaData()
(Optionally) Return meta data of the result needed to fine-tune the
display of the result.
|
boolean |
hasChildren(Object element)
Returns whether the given element has children.
|
public PackageTree(Histogram histogram)
public Histogram getHistogram()
public ResultMetaData getResultMetaData()
IResult
getResultMetaData
in interface IResult
public Column[] getColumns()
IStructuredResult
getColumns
in interface IStructuredResult
public List<?> getElements()
IResultTree
getElements
in interface IResultTree
IResultTree.getChildren(Object)
or
IStructuredResult.getContext(Object)
or
IStructuredResult.getColumnValue(Object, int)
.public boolean hasChildren(Object element)
IResultTree
hasChildren
in interface IResultTree
element
- the opaque object used to indicate which branchpublic List<?> getChildren(Object parent)
IResultTree
getChildren
in interface IResultTree
parent
- The row object as returned by the
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methods.public Object getColumnValue(Object row, int columnIndex)
IStructuredResult
getColumnValue
in interface IStructuredResult
row
- The row object as returned by the
IResultTable.getRow(int)
or
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methodscolumnIndex
- The index of the column.public IContextObject getContext(Object row)
IStructuredResult
ResultMetaData
, it is also used for the context menu on a row.getContext
in interface IStructuredResult
row
- The row object as returned by the
IResultTable.getRow(int)
or
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methods.public URL getIcon(Object row)
getIcon
in interface IIconProvider