infomat.view.picture
Class SparsePixel
java.lang.Object
infomat.view.picture.SparsePixel
public class SparsePixel
- extends java.lang.Object
A SparsePixel is a non zero pixel in a SparsePartPicture.
It represents one or several IMatrixCells. Its opacity
dependens on the values of these and its color depends on
to which IObjectGroups they belong in the current IObjectGrouping.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SparsePixel
public SparsePixel(int x,
int y,
java.awt.Color color,
IMatrixCell mc)
SparsePixel
public SparsePixel(int x,
int y,
int xLast,
int yLast,
java.awt.Color color,
IMatrixCell mc)
setNumberOfIMatrixColumns
public static void setNumberOfIMatrixColumns(double num)
- Not a genuine copy-constructor! Copies references...
setNumberOfIMatrixRows
public static void setNumberOfIMatrixRows(double num)
accumulate
public void accumulate(SparsePixel sp)
recolor
public void recolor(boolean row,
GroupingColoring coloring)
makeAverageColor
public void makeAverageColor()
linearScaleOpacity
public void linearScaleOpacity(float newMin,
float newMax,
float currentMin,
float currentMax)
getX
public int getX()
getY
public int getY()
getXLast
public int getXLast()
getYLast
public int getYLast()
printColorParamters
public void printColorParamters()
getColor
public java.awt.Color getColor(java.awt.Color defaultColor)
getRGB
public float[] getRGB()
getOpacity
public float getOpacity()
getWeight
public float getWeight()
getNumberOfIMatrixCells
public int getNumberOfIMatrixCells()
getIMatrixCellWithHighestWeight
public IMatrixCell getIMatrixCellWithHighestWeight()
getAllIMatrixCells
public java.util.Vector<IMatrixCell> getAllIMatrixCells()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object