|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HierarchyChart
Provides an interface for the hierarchy chart, providing access to
basic functionality like the setting of values, descriptions, showing level
and layouts.
The Hierarchy Chart is a very specialized chart to display data that
is logically arranged in several levels of hierarchy. In other words the
displayed values are the leaves of a tree with constant depth. The number
of levels is unrestricted. The structure can vary dynamically at runtime,
nodes can be added and removed. The user can select the lowest visible
level. This chart supports real 3D (rotating, sizing, perspective, ...)
and dynamic change of data. The exact values at any level can be observed.
Many more options are available.
Method Summary | |
---|---|
Color |
getColorForLevel(int level)
Gets the (floor) color for a level. |
String |
getDescription(String[] path)
Gets the description of the element at path in the tree. |
HierarchyLayout |
getLayoutForLevel(int level)
Gets the current layout for the level. |
String |
getLevelName(int level)
Gets the current name of the level specified by the index. |
String[] |
getLevelNames()
Gets the current names of all levels for this chart. |
HierarchyMeanFormula |
getMeanFormula()
Gets the mean formula for this hierarchy chart. |
int |
getNumLevels()
Gets the number of levels (constant depth of the tree) for this hierachy chart. |
int |
getShowingLevel()
Gets the current showing level, which is the lowest level of the tree which is graphically displayed. |
double[] |
getStandardDeviation(int level)
Gets the standard deviation for all sections of the level and the total standard deviation for these sections. |
double |
getStandardDeviation(int level,
int section)
Gets the standard deviation for one section of the level specified by the index. |
int |
getTotalNumElementsForLevel(int level)
Gets the total number of elements in the tree for this level. |
double |
getValue(String[] path,
int section)
Gets the value of the section at path. |
void |
removeAllChildren(String[] path)
Removes all children of an element from the tree. |
void |
removeElement(String[] path)
Removes an element from the tree. |
void |
setColorForLevel(int level,
Color c)
Sets the (floor) color for a level. |
void |
setDescription(String[] path,
String desc)
Sets the description for an element of the tree. |
void |
setLayoutForLevel(int level,
HierarchyLayout layout)
Sets the layout for a given level. |
void |
setLevelName(int level,
String name)
Sets the name of the level specified by the index. |
void |
setMeanFormula(HierarchyMeanFormula mf)
Sets the mean formula for this hierarchy chart. |
void |
setShowingLevel(int level)
Sets the current showing level, which is the lowest level of the tree which is graphically displayed. |
void |
setValue(String[] path,
int section,
double value)
Sets the value of a section for low-level element. |
Methods inherited from interface org.askalon.graph.chart.OrderedChart |
---|
decrementOrder, getOrder, incrementOrder, setOrder |
Methods inherited from interface org.askalon.graph.chart.SectionChart |
---|
getSectionColor, getSectionCount, getSectionName, isVisible, setSectionColor, setSectionName, setVisible |
Methods inherited from interface org.askalon.graph.chart.Chart |
---|
getChartConfiguration, getChartMenu, getChartName, getLegend, getUnit, getXAxisText, getYAxisText, isDisableUpdate, isEdgesVisible, refreshConfiguration, resetConfiguration, setChartConfiguration, setDisableUpdate, setEdgesVisible, setUnit, setXAxisText, setYAxisText |
Methods inherited from interface org.askalon.graph.chart.base.Cleanable |
---|
cleanUp |
Method Detail |
---|
void setValue(String[] path, int section, double value)
path
- the path of the element which should be updatedsection
- the index of the section to updatevalue
- the new value for this section
IllegalArgumentException
- if the length of the path is not equals the number of levelsdouble getValue(String[] path, int section)
path
- section
-
void setDescription(String[] path, String desc)
path
- the path of the elementdesc
- the description for the elementString getDescription(String[] path)
path
-
void removeElement(String[] path)
path
- the path of the element to removeremoveAllChildren(String[])
void removeAllChildren(String[] path)
path
- the path of the element whose children should be removedremoveElement(String[])
void setLayoutForLevel(int level, HierarchyLayout layout)
level
- the level for which the layout should be updatedlayout
- the new layout for this levelgetLayoutForLevel(int)
,
HierarchyLayout
HierarchyLayout getLayoutForLevel(int level)
level
- the level whose layout should be returned
setLayoutForLevel(int, HierarchyLayout)
,
HierarchyLayout
void setShowingLevel(int level)
level
- the new showing levelgetShowingLevel()
int getShowingLevel()
setShowingLevel(int)
int getNumLevels()
getShowingLevel()
String getLevelName(int level)
level
- the index of the level
getLevelNames()
,
setLevelName(int, String)
String[] getLevelNames()
getNumLevels()
,
getLevelName(int)
,
setLevelName(int, String)
void setLevelName(int level, String name)
level
- the index of the levelname
- the new name for this levelgetNumLevels()
,
getLevelName(int)
,
getLevelNames()
double getStandardDeviation(int level, int section)
level
- the index of the level for which the standard deviation should be returnedsection
- the index of the section
getStandardDeviation(int)
double[] getStandardDeviation(int level)
level
- the index of the level
getStandardDeviation(int, int)
int getTotalNumElementsForLevel(int level)
level
- the index of the level
Color getColorForLevel(int level)
level
- the index of the level
setColorForLevel(int, Color)
void setColorForLevel(int level, Color c)
level
- the index of the levelc
- the new color for this levelgetColorForLevel(int)
void setMeanFormula(HierarchyMeanFormula mf)
mf
- the new mean forumla to useHierarchyMeanFormula
,
getMeanFormula()
HierarchyMeanFormula getMeanFormula()
HierarchyMeanFormula
,
setMeanFormula(HierarchyMeanFormula)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of: |
ASKALON Visualisation Diagrams |