|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infomat.view.picture.SparsePartPicture
public class SparsePartPicture
Field Summary | |
---|---|
private javax.swing.border.MatteBorder |
border
|
private java.awt.Color |
borderColor
|
private int |
colFrom
|
private int |
colTo
|
private java.util.HashMap<java.lang.Integer,SparsePixel> |
columnColorMap
|
private IObjectGroup |
columnGroup
|
private int |
gridX
|
private int |
gridY
|
private java.awt.image.BufferedImage |
image
|
private java.awt.Dimension |
imageDimension
|
private boolean |
largeImageCol
|
private boolean |
largeImageRow
|
private int |
offsetX
|
private int |
offsetY
|
private int |
origoX
|
private int |
origoY
|
private DoubleHashMap |
pixelMap
|
private int |
rowFrom
|
private IObjectGroup |
rowGroup
|
private int |
rowTo
|
private SparsePicture |
sparsePicture
|
private java.util.Vector<SparsePixel> |
sparsePixels
|
private ToolbarView |
toolbarView
|
private boolean |
toSmall
|
Constructor Summary | |
---|---|
SparsePartPicture(java.awt.Dimension imageDimension,
int colFrom,
int colTo,
int rowFrom,
int rowTo,
IObjectGroup columnGroup,
IObjectGroup rowGroup)
|
Method Summary | |
---|---|
protected void |
add(SparsePixel sp)
|
protected void |
adjustColumnColorOpacity(float newMinWeight,
float newMaxWeight,
float currentMinWeight,
float currentMaxWeight)
|
protected void |
adjustColumnColorPixelsToHeight()
|
protected void |
adjustOpacity(float newMinWeight,
float newMaxWeight,
float currentMinWeight,
float currentMaxWeight)
|
private void |
adjustOpacity(java.util.Vector<SparsePixel> vec,
float newMinWeight,
float newMaxWeight,
float currentMinWeight,
float currentMaxWeight)
|
protected java.awt.Color |
getBackgroundColor()
|
protected java.awt.Color |
getBorderColor()
|
protected IObject |
getClosestColumnIObject(int x)
|
protected IObject |
getClosestRowIObject(int y)
|
protected int |
getClosestXPixelForColumn(int col)
Returns the closest x coordinate in the picture for a column in the IMatrix. |
protected int |
getClosestYPixelForRow(int row)
|
protected int |
getColFrom()
|
protected int |
getColTo()
|
protected java.util.HashMap<java.lang.Integer,SparsePixel> |
getColumnColorMap()
|
protected SparsePixel |
getColumnColorPixel(int x)
|
protected java.util.Vector<SparsePixel> |
getColumnColorPixels()
|
protected IObjectGroup |
getColumnGroup()
|
protected IObjectGroup |
getColumnIObjects(int x)
|
protected int |
getGridX()
|
protected int |
getGridY()
|
protected java.awt.image.BufferedImage |
getImage()
|
protected int |
getImageHeight()
|
protected java.awt.Dimension |
getImageSize()
|
protected int |
getImageWidth()
|
protected int |
getIMatrixPartHeight()
|
protected java.awt.Dimension |
getIMatrixPartSize()
|
protected int |
getIMatrixPartWidth()
|
private boolean |
getLargeImageCol()
|
private boolean |
getLargeImageRow()
|
protected IObject |
getLastColumnIObject(int x)
|
protected IObject |
getLastRowIObject(int y)
|
protected int |
getOffsetX()
|
protected int |
getOffsetY()
|
protected int |
getOrigoX()
|
protected int |
getOrigoY()
|
protected SparsePixel |
getPixel(int x,
int y)
Adds a new SparsePixel to the picture. |
protected java.util.Vector<SparsePixel> |
getPixels()
|
protected int |
getRowFrom()
|
protected IObjectGroup |
getRowGroup()
|
protected IObjectGroup |
getRowIObjects(int y)
|
protected int |
getRowTo()
|
protected InfomatView |
getView()
|
protected void |
makeAverageColumnColor()
|
protected void |
makeImage()
Should not be run several times. |
protected void |
putColumnColorPixel(SparsePixel sp)
|
protected void |
putPixel(SparsePixel sp)
|
protected void |
setColumnColorMap(java.util.HashMap<java.lang.Integer,SparsePixel> map)
|
protected void |
setGridXY(int x,
int y)
Use with care! |
protected void |
setLargeImageCol(boolean largeImageCol)
|
protected void |
setLargeImageRow(boolean largeImageRow)
|
protected void |
setOffsetXY(int x,
int y)
Use with care! |
protected void |
setOrigo(int x,
int y)
Use with care! |
protected void |
setSparsePicture(SparsePicture sparsePicture)
|
protected void |
setToolbarView(ToolbarView toolbarView)
|
protected boolean |
toSmall()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SparsePicture sparsePicture
private boolean toSmall
private java.awt.image.BufferedImage image
private java.awt.Dimension imageDimension
private java.awt.Color borderColor
private javax.swing.border.MatteBorder border
private boolean largeImageRow
private boolean largeImageCol
private int origoX
private int origoY
private int gridX
private int gridY
private int offsetX
private int offsetY
private java.util.Vector<SparsePixel> sparsePixels
private DoubleHashMap pixelMap
private java.util.HashMap<java.lang.Integer,SparsePixel> columnColorMap
private int rowFrom
private int rowTo
private int colFrom
private int colTo
private IObjectGroup columnGroup
private IObjectGroup rowGroup
private ToolbarView toolbarView
Constructor Detail |
---|
public SparsePartPicture(java.awt.Dimension imageDimension, int colFrom, int colTo, int rowFrom, int rowTo, IObjectGroup columnGroup, IObjectGroup rowGroup)
Method Detail |
---|
protected void putColumnColorPixel(SparsePixel sp)
protected SparsePixel getColumnColorPixel(int x)
protected java.util.HashMap<java.lang.Integer,SparsePixel> getColumnColorMap()
protected void setColumnColorMap(java.util.HashMap<java.lang.Integer,SparsePixel> map)
protected java.util.Vector<SparsePixel> getColumnColorPixels()
protected void setSparsePicture(SparsePicture sparsePicture)
protected void setToolbarView(ToolbarView toolbarView)
protected void setOrigo(int x, int y)
protected void setGridXY(int x, int y)
protected void setOffsetXY(int x, int y)
protected void setLargeImageRow(boolean largeImageRow)
protected void setLargeImageCol(boolean largeImageCol)
private boolean getLargeImageRow()
private boolean getLargeImageCol()
protected java.awt.Color getBorderColor()
protected void putPixel(SparsePixel sp)
protected void add(SparsePixel sp)
protected void makeAverageColumnColor()
protected SparsePixel getPixel(int x, int y)
sp
- A SparsePixel.protected int getRowFrom()
protected int getRowTo()
protected int getColFrom()
protected int getColTo()
protected IObjectGroup getRowGroup()
protected IObjectGroup getColumnGroup()
protected IObject getLastRowIObject(int y)
protected IObject getLastColumnIObject(int x)
protected IObject getClosestRowIObject(int y)
protected IObject getClosestColumnIObject(int x)
protected IObjectGroup getColumnIObjects(int x)
protected IObjectGroup getRowIObjects(int y)
protected int getClosestXPixelForColumn(int col)
protected int getClosestYPixelForRow(int row)
protected java.util.Vector<SparsePixel> getPixels()
protected InfomatView getView()
protected int getIMatrixPartWidth()
protected int getIMatrixPartHeight()
protected java.awt.Dimension getIMatrixPartSize()
protected int getImageWidth()
protected int getImageHeight()
protected int getOrigoX()
protected int getOrigoY()
protected int getGridX()
protected int getGridY()
protected int getOffsetX()
protected int getOffsetY()
protected java.awt.Dimension getImageSize()
protected java.awt.image.BufferedImage getImage()
protected java.awt.Color getBackgroundColor()
protected boolean toSmall()
protected void makeImage()
protected void adjustColumnColorPixelsToHeight()
private void adjustOpacity(java.util.Vector<SparsePixel> vec, float newMinWeight, float newMaxWeight, float currentMinWeight, float currentMaxWeight)
protected void adjustOpacity(float newMinWeight, float newMaxWeight, float currentMinWeight, float currentMaxWeight)
protected void adjustColumnColorOpacity(float newMinWeight, float newMaxWeight, float currentMinWeight, float currentMaxWeight)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |