public class SparseMatrixPlot extends Plot
Constructor and Description |
---|
SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse)
Constructor.
|
SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse,
java.awt.Color color)
Constructor.
|
SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse,
java.awt.Color[] palette)
Constructor.
|
SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse,
int k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(smile.math.matrix.SparseMatrix sparse)
Create a sparse matrix plot canvas.
|
static PlotCanvas |
plot(smile.math.matrix.SparseMatrix sparse,
java.awt.Color color)
Create a sparse matrix plot canvas.
|
static PlotCanvas |
plot(smile.math.matrix.SparseMatrix sparse,
java.awt.Color[] palette)
Create a sparse matrix plot canvas.
|
getID, getToolBar, getToolTip, setID
public SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse)
public SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse, java.awt.Color color)
public SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse, int k)
k
- the number of colors in the palette.public SparseMatrixPlot(smile.math.matrix.SparseMatrix sparse, java.awt.Color[] palette)
palette
- the color palette.public void paint(Graphics g)
Shape
public static PlotCanvas plot(smile.math.matrix.SparseMatrix sparse)
sparse
- a sparse matrix.public static PlotCanvas plot(smile.math.matrix.SparseMatrix sparse, java.awt.Color color)
sparse
- a sparse matrix.public static PlotCanvas plot(smile.math.matrix.SparseMatrix sparse, java.awt.Color[] palette)
sparse
- a sparse matrix.