public class GraphBuffer extends Object
| Constructor and Description |
|---|
GraphBuffer(Graph2DRenderer<?> renderer) |
GraphBuffer(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawDataImage(int xStartPoint,
int yStartPoint,
int[] xPointToDataMap,
int[] yPointToDataMap,
Cell2DDataset data,
NumberColorMapInstance colorMap) |
Graphics2D |
getGraphicsContext() |
BufferedImage |
getImage() |
void |
setPixel(int x,
int y,
int color) |
void |
setXScaleAsCell(Range range,
int xMinPixel,
int xMaxPixel,
ValueScale xValueScale)
Sets the scaling data for the x axis assuming values are going
to represent cells.
|
void |
setXScaleAsPoint(Range range,
int xMinPixel,
int xMaxPixel,
ValueScale xValueScale)
Sets the scaling data for the x axis assuming values are going
to represent points.
|
void |
setYScaleAsCell(Range range,
int yMinPixel,
int yMaxPixel,
ValueScale yValueScale)
Sets the scaling data for the y axis assuming values are going
to represent cells.
|
void |
setYScaleAsPoint(Range range,
int yMinPixel,
int yMaxPixel,
ValueScale yValueScale)
Sets the scaling data for the y axis assuming values are going
to represent points.
|
int |
xValueToPixel(double value)
Converts the given value to the pixel position.
|
int |
yValueToPixel(double value)
Converts the given value to the pixel position.
|
public GraphBuffer(int width,
int height)
public GraphBuffer(Graph2DRenderer<?> renderer)
public void setPixel(int x,
int y,
int color)
public BufferedImage getImage()
public Graphics2D getGraphicsContext()
public void drawDataImage(int xStartPoint,
int yStartPoint,
int[] xPointToDataMap,
int[] yPointToDataMap,
Cell2DDataset data,
NumberColorMapInstance colorMap)
public void setXScaleAsCell(Range range, int xMinPixel, int xMaxPixel, ValueScale xValueScale)
range - the range to be displayedxMinPixel - the pixel corresponding to the minimumxMaxPixel - the pixel corresponding to the maximumxValueScale - the scale used to transform values to pixelpublic void setXScaleAsPoint(Range range, int xMinPixel, int xMaxPixel, ValueScale xValueScale)
range - the range to be displayedxMinPixel - the pixel corresponding to the minimumxMaxPixel - the pixel corresponding to the maximumxValueScale - the scale used to transform values to pixelpublic int xValueToPixel(double value)
value - the valuepublic void setYScaleAsCell(Range range, int yMinPixel, int yMaxPixel, ValueScale yValueScale)
range - the range to be displayedyMinPixel - the pixel corresponding to the minimumyMaxPixel - the pixel corresponding to the maximumyValueScale - the scale used to transform values to pixelpublic void setYScaleAsPoint(Range range, int yMinPixel, int yMaxPixel, ValueScale yValueScale)
range - the range to be displayedyMinPixel - the pixel corresponding to the minimumyMaxPixel - the pixel corresponding to the maximumyValueScale - the scale used to transform values to pixelpublic int yValueToPixel(double value)
value - the valueCopyright © 2012–2014 Brookhaven National Laboratory, University of Michigan. All rights reserved.