public class NumberToColor extends ViewRenderer<java.lang.Double> implements java.awt.event.ActionListener, java.awt.event.ItemListener
_clipCell, DEFAULT_LEGEND_HEIGHT, DEFAULT_LEGEND_WIDTH
Constructor and Description |
---|
NumberToColor() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
canRender(java.lang.Class<?> viewClass) |
javax.swing.JComponent |
getConfigUI()
returns the UI for configuration
|
org.json.JSONObject |
getCurrentState()
override this to save state to JSON
|
java.awt.Image |
getLegend() |
java.awt.image.BufferedImage |
getSubHeatMap(VNode rowNode,
VNode columnNode,
java.util.List<java.lang.String> rowLabels,
java.util.List<java.lang.String> columnLabels,
int subHeatMapCellSize) |
java.awt.Image |
getSubTip(CoolMapObject object,
VNode rowNode,
VNode columnNode,
float percentX,
float PercentY,
int cellWidth,
int cellHeight) |
protected void |
initialize()
called when this view renderer is assigned to a coolmap object
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
Invoked when an item has been selected or deselected by the user.
|
void |
postRender(int fromRow,
int toRow,
int fromCol,
int toCol,
float zoomX,
float zoomY) |
void |
prepareGraphics(java.awt.Graphics2D g2D) |
void |
preRender(int fromRow,
int toRow,
int fromCol,
int toCol,
float zoomX,
float zoomY) |
void |
renderCellHD(java.lang.Double v,
VNode rowNode,
VNode columnNode,
java.awt.Graphics2D g2D,
int anchorX,
int anchorY,
int cellWidth,
int cellHeight) |
void |
renderCellLD(java.lang.Double v,
VNode rowNode,
VNode columnNode,
java.awt.Graphics2D g2D,
int anchorX,
int anchorY,
int cellWidth,
int cellHeight) |
void |
renderCellSD(java.lang.Double v,
VNode rowNode,
VNode columnNode,
java.awt.Graphics2D g2D,
int anchorX,
int anchorY,
int cellWidth,
int cellHeight) |
java.awt.image.BufferedImage |
renderExternalValues(java.util.List<java.lang.String> names,
java.util.List<java.lang.Double> values,
java.awt.Graphics2D g2D) |
boolean |
restoreState(org.json.JSONObject savedState)
override this to make this restorable
|
void |
updateRendererChanges()
update parameters changes for the render; will be called in the
updateRenderer function
|
_markNull, createToolTipFromJLabel, createToolTipFromString, getAntiAliasing, getCoolMapObject, getDescription, getName, getRenderedFullMap, getRenderedFullMap, getRenderedMap, setAntiAliasing, setClipCell, setCoolMapObject, setDescription, setName, updateRenderer
public org.json.JSONObject getCurrentState()
ViewRenderer
getCurrentState
in interface StateSavable
getCurrentState
in class ViewRenderer<java.lang.Double>
public boolean restoreState(org.json.JSONObject savedState)
ViewRenderer
restoreState
in interface StateSavable
restoreState
in class ViewRenderer<java.lang.Double>
public void updateRendererChanges()
ViewRenderer
updateRendererChanges
in class ViewRenderer<java.lang.Double>
public java.awt.Image getLegend()
getLegend
in class ViewRenderer<java.lang.Double>
protected void initialize()
ViewRenderer
initialize
in class ViewRenderer<java.lang.Double>
public boolean canRender(java.lang.Class<?> viewClass)
canRender
in class ViewRenderer<java.lang.Double>
public void preRender(int fromRow, int toRow, int fromCol, int toCol, float zoomX, float zoomY)
preRender
in class ViewRenderer<java.lang.Double>
public void prepareGraphics(java.awt.Graphics2D g2D)
prepareGraphics
in class ViewRenderer<java.lang.Double>
public void renderCellLD(java.lang.Double v, VNode rowNode, VNode columnNode, java.awt.Graphics2D g2D, int anchorX, int anchorY, int cellWidth, int cellHeight)
renderCellLD
in class ViewRenderer<java.lang.Double>
public java.awt.image.BufferedImage getSubHeatMap(VNode rowNode, VNode columnNode, java.util.List<java.lang.String> rowLabels, java.util.List<java.lang.String> columnLabels, int subHeatMapCellSize)
public void renderCellSD(java.lang.Double v, VNode rowNode, VNode columnNode, java.awt.Graphics2D g2D, int anchorX, int anchorY, int cellWidth, int cellHeight)
renderCellSD
in class ViewRenderer<java.lang.Double>
public java.awt.Image getSubTip(CoolMapObject object, VNode rowNode, VNode columnNode, float percentX, float PercentY, int cellWidth, int cellHeight)
getSubTip
in class ViewRenderer<java.lang.Double>
public void renderCellHD(java.lang.Double v, VNode rowNode, VNode columnNode, java.awt.Graphics2D g2D, int anchorX, int anchorY, int cellWidth, int cellHeight)
renderCellHD
in class ViewRenderer<java.lang.Double>
public java.awt.image.BufferedImage renderExternalValues(java.util.List<java.lang.String> names, java.util.List<java.lang.Double> values, java.awt.Graphics2D g2D)
renderExternalValues
in class ViewRenderer<java.lang.Double>
public void postRender(int fromRow, int toRow, int fromCol, int toCol, float zoomX, float zoomY)
postRender
in class ViewRenderer<java.lang.Double>
public javax.swing.JComponent getConfigUI()
ViewRenderer
getConfigUI
in class ViewRenderer<java.lang.Double>
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
-