infomat.view.picture
Class SparsePixel

java.lang.Object
  extended by 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.


Constructor Summary
SparsePixel(int x, int y, java.awt.Color color, IMatrixCell mc)
           
SparsePixel(int x, int y, int xLast, int yLast, java.awt.Color color, IMatrixCell mc)
           
 
Method Summary
 void accumulate(SparsePixel sp)
           
 java.util.Vector<IMatrixCell> getAllIMatrixCells()
           
 java.awt.Color getColor(java.awt.Color defaultColor)
           
 IMatrixCell getIMatrixCellWithHighestWeight()
           
 int getNumberOfIMatrixCells()
           
 float getOpacity()
           
 float[] getRGB()
           
 float getWeight()
           
 int getX()
           
 int getXLast()
           
 int getY()
           
 int getYLast()
           
 void linearScaleOpacity(float newMin, float newMax, float currentMin, float currentMax)
           
 void makeAverageColor()
           
 void printColorParamters()
           
 void recolor(boolean row, GroupingColoring coloring)
           
static void setNumberOfIMatrixColumns(double num)
          Not a genuine copy-constructor!
static void setNumberOfIMatrixRows(double num)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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