|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.imsl.chart.AbstractChartNode
com.imsl.chart.ChartNode
com.imsl.chart.Data
com.imsl.chart.Dendrogram
A Dendrogram chart for cluster analysis.
| Field Summary | |
static long |
serialVersionUID
|
| Fields inherited from class com.imsl.chart.AbstractChartNode |
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
| Constructor Summary | |
Dendrogram(AxisXY axis,
ClusterHierarchical clusterHierarchical)
Constructs a vertical dendrogram chart using supplied ClusterHierarchical object. |
|
Dendrogram(AxisXY axis,
ClusterHierarchical clusterHierarchical,
int type)
Constructs a dendrogram chart using supplied ClusterHierarchical object. |
|
Dendrogram(AxisXY axis,
double[] clusterLevel,
int[] leftSons,
int[] rightSons)
Constructs a vertical dendrogram chart using supplied data. |
|
Dendrogram(AxisXY axis,
double[] clusterLevel,
int[] leftSons,
int[] rightSons,
int type)
Constructs a dendrogram chart using supplied data. |
|
| Method Summary | |
void |
dataRange(double[] range)
Overrides Data.dataRange. |
double[][] |
getCoordinates()
Convenience routine to get the "Coordinates" attribute. |
int[] |
getLeftSons()
Convenience routine to get the "LeftSons" attribute. |
double[] |
getLevels()
Convenience routine to get the "Levels" attribute. |
int[] |
getOrder()
Convenience routine to get the "Order" attribute. |
int[] |
getRightSons()
Convenience routine to get the "RightSons" attribute. |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
setCoordinates(double[][] value)
Convenience routine to set the "Coordinates" attribute. |
void |
setLabels(String[] labels)
Sets up the axis labels for dendrogram plot. |
void |
setLeftSons(int[] value)
Convenience routine to set the "LeftSons" attribute. |
void |
setLevels(double[] value)
Convenience routine to set the "Levels" attribute. |
void |
setLineColor(Color[] colors)
Define colors for individual clusters. |
void |
setLineColor(String[] colors)
Define colors for individual clusters. |
void |
setOrder(int[] value)
Convenience routine to set the "Order" attribute. |
void |
setRightSons(int[] value)
Convenience routine to set the "RightSons" attribute. |
| Methods inherited from class com.imsl.chart.Data |
formatLabel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
| Constructor Detail |
public Dendrogram(AxisXY axis,
ClusterHierarchical clusterHierarchical)
axis - the AxisXY parent of this nodeclusterHierarchical - a ClusterHierarchical object
public Dendrogram(AxisXY axis,
ClusterHierarchical clusterHierarchical,
int type)
axis - the AxisXY parent of this nodeclusterHierarchical - a ClusterHierarchical objecttype - an int which specifies the DendrogramType.
Legal values are DENDROGRAM_TYPE_VERTICAL or
DENDROGRAM_TYPE_HORIZONTAL.ChartNode.DENDROGRAM_TYPE_VERTICAL,
ChartNode.DENDROGRAM_TYPE_HORIZONTAL
public Dendrogram(AxisXY axis,
double[] clusterLevel,
int[] leftSons,
int[] rightSons)
axis - the AxisXY parent of this nodeclusterLevel - a double array which contains the levels
at which the clusters are joinedleftSons - an int array which contains the left sons
of each merged clusterrightSons - an int array which contains the right sons
of each merged cluster
public Dendrogram(AxisXY axis,
double[] clusterLevel,
int[] leftSons,
int[] rightSons,
int type)
axis - the AxisXY parent of this nodeclusterLevel - a double array which contains the levels
at which the clusters are joinedleftSons - an int array which contains the left sons
of each merged clusterrightSons - an int array which contains the right sons
of each merged clustertype - an int which specifies the DendrogramType.
Legal values are DENDROGRAM_TYPE_VERTICAL or
DENDROGRAM_TYPE_HORIZONTAL.- See Also:
ChartNode.DENDROGRAM_TYPE_VERTICAL,
ChartNode.DENDROGRAM_TYPE_HORIZONTAL| Method Detail |
public void dataRange(double[] range)
dataRange in class Datarange - a double array which contains the new rangepublic double[][] getCoordinates()
double[][] array of coordinates.public int[] getLeftSons()
int array of left sons.public double[] getLevels()
double array of cluster levels.public int[] getOrder()
int array of the order of clusters
as they appear in the dendrogram.public int[] getRightSons()
int array of right sons.public void paint(Draw draw)
paint in class Datadraw - the Draw object to be paintedpublic void setCoordinates(double[][] value)
value - a double[][] array of coordinates.public void setLabels(String[] labels)
Note that user-defined labels will be re-ordered to match the order of the clusters displayed in the plot.
labels - a String array with which
to label the axis. The number of labels
must equal the number of items.public void setLeftSons(int[] value)
value - an int array of left sons.public void setLevels(double[] value)
value - a double array of cluster levels.public void setLineColor(Color[] colors)
ChartNode.setLineColor(java.awt.Color color). This
method will color N clusters, where N is the number of elements in the
colors[] array.
colors - a Color array which contains each color
to use for the subclusters.public void setLineColor(String[] colors)
ChartNode.setLineColor(String color). This
method will color N clusters, where N is the number of elements in the
colors[] array.
colors - a String array which contains each color
to use for the subclusters.public void setOrder(int[] value)
value - an int array of the order of clusters
as they appear in the dendrogram.public void setRightSons(int[] value)
value - an int array of right sons.
|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||