public class Hexmap extends Plot
Constructor and Description |
---|
Hexmap(double[][] z)
Constructor.
|
Hexmap(double[][] z,
java.awt.Color[] palette)
Constructor.
|
Hexmap(double[][] z,
int k)
Constructor.
|
Hexmap(java.lang.String[][] labels,
double[][] z)
Constructor.
|
Hexmap(java.lang.String[][] labels,
double[][] z,
java.awt.Color[] palette)
Constructor.
|
Hexmap(java.lang.String[][] labels,
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[][] data)
Create a plot canvas with the pseudo hexmap plot of given data.
|
static PlotCanvas |
plot(double[][] data,
java.awt.Color[] palette)
Create a plot canvas with the pseudo hexmap plot of given data.
|
static PlotCanvas |
plot(java.lang.String[][] labels,
double[][] data)
Create a plot canvas with the pseudo hexmap plot of given data.
|
static PlotCanvas |
plot(java.lang.String[][] labels,
double[][] data,
java.awt.Color[] palette)
Create a plot canvas with the pseudo hexmap plot of given data.
|
getID, getToolBar, setID
public Hexmap(double[][] z)
z
- a data matrix to be shown in hexmap.public Hexmap(double[][] z, int k)
z
- a data matrix to be shown in hexmap.k
- the number of colors in the palette.public Hexmap(double[][] z, java.awt.Color[] palette)
z
- a data matrix to be shown in hexmap.palette
- the color palette.public Hexmap(java.lang.String[][] labels, double[][] z)
labels
- the descriptions of each cell in the data matrix.z
- a data matrix to be shown in hexmap.public Hexmap(java.lang.String[][] labels, double[][] z, int k)
labels
- the descriptions of each cell in the data matrix.z
- a data matrix to be shown in hexmap.k
- the number of colors in the palette.public Hexmap(java.lang.String[][] labels, double[][] z, java.awt.Color[] palette)
labels
- the descriptions of each cell in the data matrix.z
- a data matrix to be shown in hexmap.palette
- the color palette.public java.lang.String getToolTip(double[] coord)
Plot
getToolTip
in class Plot
coord
- the logical coordinates of current mouse position.public void paint(Graphics g)
Shape
public static PlotCanvas plot(double[][] data)
data
- a data matrix to be shown in hexmap.public static PlotCanvas plot(double[][] data, java.awt.Color[] palette)
data
- a data matrix to be shown in hexmap.palette
- the color palette.public static PlotCanvas plot(java.lang.String[][] labels, double[][] data)
labels
- the descriptions of each cell in the data matrix.data
- a data matrix to be shown in hexmap.public static PlotCanvas plot(java.lang.String[][] labels, double[][] data, java.awt.Color[] palette)
labels
- the descriptions of each cell in the data matrix.data
- a data matrix to be shown in hexmap.palette
- the color palette.