public class Heatmap extends Plot
| Constructor and Description |
|---|
Heatmap(double[][] z)
Constructor.
|
Heatmap(double[][] z,
java.awt.Color[] palette)
Constructor.
|
Heatmap(double[][] z,
int k)
Constructor.
|
Heatmap(double[] x,
double[] y,
double[][] z)
Constructor.
|
Heatmap(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
Constructor.
|
Heatmap(double[] x,
double[] y,
double[][] z,
int k)
Constructor.
|
Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z)
Constructor.
|
Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z,
java.awt.Color[] palette)
Constructor.
|
Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z,
int k)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getToolTip(double[] coord)
Returns a optional tool tip for the object at given coordinates.
|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(double[][] z)
Create a plot canvas with the pseudo heat map plot of given data.
|
static PlotCanvas |
plot(double[][] z,
java.awt.Color[] palette)
Create a plot canvas with the pseudo heat map plot of given data.
|
static PlotCanvas |
plot(double[] x,
double[] y,
double[][] z)
Create a plot canvas with the pseudo heat map plot of given data.
|
static PlotCanvas |
plot(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
Create a plot canvas with the pseudo heat map plot of given data.
|
static PlotCanvas |
plot(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z)
Create a plot canvas with the pseudo heat map plot of given data.
|
static PlotCanvas |
plot(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z,
java.awt.Color[] palette)
Create a plot canvas with the pseudo heat map plot of given data.
|
getID, getToolBar, setIDpublic Heatmap(double[][] z)
public Heatmap(double[][] z,
int k)
z - a data matrix to be shown in pseudo heat map.k - the number of colors in the palette.public Heatmap(double[][] z,
java.awt.Color[] palette)
z - a data matrix to be shown in pseudo heat map.palette - the color palette.public Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z)
public Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z,
int k)
z - a data matrix to be shown in pseudo heat map.k - the number of colors in the palette.public Heatmap(java.lang.String[] rowLabels,
java.lang.String[] columnLabels,
double[][] z,
java.awt.Color[] palette)
z - a data matrix to be shown in pseudo heat map.palette - the color palette.public Heatmap(double[] x,
double[] y,
double[][] z)
x - x coordinate of data matrix cells. Must be in ascending order.y - y coordinate of data matrix cells. Must be in ascending order.z - a data matrix to be shown in pseudo heat map.public Heatmap(double[] x,
double[] y,
double[][] z,
int k)
x - x coordinate of data matrix cells. Must be in ascending order.y - y coordinate of data matrix cells. Must be in ascending order.z - a data matrix to be shown in pseudo heat map.k - the number of colors in the palette.public Heatmap(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
x - x coordinate of data matrix cells. Must be in ascending order.y - y coordinate of data matrix cells. Must be in ascending order.z - a data matrix to be shown in pseudo heat map.palette - the color palette.public java.lang.String getToolTip(double[] coord)
PlotgetToolTip in class Plotcoord - the logical coordinates of current mouse position.public void paint(Graphics g)
Shapepublic static PlotCanvas plot(double[][] z)
z - a data matrix to be shown in pseudo heat map.public static PlotCanvas plot(double[][] z, java.awt.Color[] palette)
z - a data matrix to be shown in pseudo heat map.palette - the color palette.public static PlotCanvas plot(double[] x, double[] y, double[][] z)
x - x coordinate of data matrix cells. Must be in ascending order.y - y coordinate of data matrix cells. Must be in ascending order.z - a data matrix to be shown in pseudo heat map.public static PlotCanvas plot(double[] x, double[] y, double[][] z, java.awt.Color[] palette)
x - x coordinate of data matrix cells. Must be in ascending order.y - y coordinate of data matrix cells. Must be in ascending order.z - a data matrix to be shown in pseudo heat map.palette - the color palette.public static PlotCanvas plot(java.lang.String[] rowLabels, java.lang.String[] columnLabels, double[][] z)
z - a data matrix to be shown in pseudo heat map.rowLabels - the labels for rows of data matrix.columnLabels - the labels for columns of data matrix.public static PlotCanvas plot(java.lang.String[] rowLabels, java.lang.String[] columnLabels, double[][] z, java.awt.Color[] palette)
z - a data matrix to be shown in pseudo heat map.rowLabels - the labels for rows of data matrix.columnLabels - the labels for columns of data matrix.palette - the color palette.