public class RowHighlighter<VALUE> extends RowMap<java.lang.Object,java.lang.Object> implements SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
Constructor and Description |
---|
RowHighlighter(java.lang.String name,
CoolMapObject obj,
IdToSidePanelDisplayConverter<VALUE> displayConverter) |
Modifier and Type | Method and Description |
---|---|
void |
activeCellChanged(CoolMapObject obj,
MatrixCell oldCell,
MatrixCell newCell) |
void |
aggregationTypeChanged(java.lang.Object newAggregationMethod) |
void |
aggregatorUpdated(CoolMapObject object)
possible cause of data update: change base matrix, change view matrix, change rows/columns insert, remove, expand...
|
boolean |
canRender(CoolMapObject coolMapObject) |
void |
clearBuffer() |
void |
columnsChanged(CoolMapObject object) |
void |
coolMapObjectBaseMatrixChanged(CoolMapObject object) |
void |
destroy() |
javax.swing.JComponent |
getConfigUI() |
CoolMapObject<BASE,VIEW> |
getCoolMapObject() |
CoolMapView<BASE,VIEW> |
getCoolMapView() |
org.json.JSONObject |
getCurrentState()
state and be persisted using JSON
|
java.awt.GraphicsConfiguration |
getGraphicsConfiguration() |
javax.swing.ImageIcon |
getIcon() |
java.awt.image.BufferedImage |
getMapBuffer() |
java.awt.Font |
getMessageFont() |
java.lang.String |
getName() |
IdToSidePanelDisplayConverter<VALUE> |
getSidePanelDisplayConverter() |
javax.swing.JPanel |
getViewPanel() |
void |
gridChanged(CoolMapObject object) |
boolean |
isDataViewValid() |
boolean |
isEnabled() |
boolean |
isLabelVisible() |
void |
justifyView() |
void |
mapAnchorMoved(CoolMapObject object) |
void |
mapZoomChanged(CoolMapObject object) |
void |
nameChanged(CoolMapObject object) |
void |
postPaint(java.awt.Graphics2D g2D,
CoolMapObject<java.lang.Object,java.lang.Object> object,
int width,
int height) |
void |
prePaint(java.awt.Graphics2D g2D,
CoolMapObject<java.lang.Object,java.lang.Object> obj,
int width,
int height) |
void |
prepareRender(java.awt.Graphics2D g2D) |
protected void |
renderRow(java.awt.Graphics2D g2D,
CoolMapObject<java.lang.Object,java.lang.Object> object,
VNode node,
int anchorX,
int anchorY,
int cellWidth,
int cellHeight) |
boolean |
restoreState(org.json.JSONObject savedState)
state can be restored from JSON
|
void |
rowsChanged(CoolMapObject object) |
void |
selectionChanged(CoolMapObject object) |
void |
setEnabled(boolean enabled) |
void |
setLabelVisible(boolean visible) |
void |
setMapBuffer(java.awt.image.BufferedImage mapBuffer) |
void |
setSidePanelDisplayConverter(IdToSidePanelDisplayConverter<VALUE> sidePanelDisplayConverter) |
void |
sort(java.util.Comparator<VNode> comparator) |
void |
updateBuffer() |
void |
viewFilterChanged(CoolMapObject object) |
void |
viewRendererChanged(CoolMapObject object) |
getAnchorX, getAnchorY, getDirection, initViewPanel, render, translateToCanvas, updateBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComparator, getPopupMenu, setPropertyHighlighterAggregationType, sort
clearBuffer, destroy, getAnchorX, getAnchorY, getConfigUI, getCoolMapObject, getCoolMapView, getDirection, getGraphicsConfiguration, getIcon, getMapBuffer, getMessageFont, getName, getViewPanel, isDataViewValid, isEnabled, render, setEnabled, setMapBuffer, translateToCanvas, updateBuffer, updateBuffer
gridChanged, mapAnchorMoved, mapZoomChanged, selectionChanged
aggregatorUpdated, columnsChanged, coolMapObjectBaseMatrixChanged, rowsChanged, viewFilterChanged, viewRendererChanged
getCurrentState, restoreState
public RowHighlighter(java.lang.String name, CoolMapObject obj, IdToSidePanelDisplayConverter<VALUE> displayConverter)
public void nameChanged(CoolMapObject object)
nameChanged
in interface CObjectListener
public void justifyView()
justifyView
in interface SideMap<java.lang.Object,java.lang.Object>
public void sort(java.util.Comparator<VNode> comparator)
sort
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public void prePaint(java.awt.Graphics2D g2D, CoolMapObject<java.lang.Object,java.lang.Object> obj, int width, int height)
public void prepareRender(java.awt.Graphics2D g2D)
prepareRender
in interface SideMap<java.lang.Object,java.lang.Object>
public void postPaint(java.awt.Graphics2D g2D, CoolMapObject<java.lang.Object,java.lang.Object> object, int width, int height)
public boolean canRender(CoolMapObject coolMapObject)
protected void renderRow(java.awt.Graphics2D g2D, CoolMapObject<java.lang.Object,java.lang.Object> object, VNode node, int anchorX, int anchorY, int cellWidth, int cellHeight)
public void activeCellChanged(CoolMapObject obj, MatrixCell oldCell, MatrixCell newCell)
activeCellChanged
in interface CViewListener
public boolean isLabelVisible()
isLabelVisible
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public void setLabelVisible(boolean visible)
setLabelVisible
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public IdToSidePanelDisplayConverter<VALUE> getSidePanelDisplayConverter()
getSidePanelDisplayConverter
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public void setSidePanelDisplayConverter(IdToSidePanelDisplayConverter<VALUE> sidePanelDisplayConverter)
setSidePanelDisplayConverter
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public void aggregationTypeChanged(java.lang.Object newAggregationMethod)
aggregationTypeChanged
in interface SidePanelHighlighter<java.lang.Object,java.lang.Object,VALUE>
public javax.swing.JPanel getViewPanel()
getViewPanel
in interface SideMap<BASE,VIEW>
public java.awt.GraphicsConfiguration getGraphicsConfiguration()
getGraphicsConfiguration
in interface SideMap<BASE,VIEW>
public void setEnabled(boolean enabled)
setEnabled
in interface SideMap<BASE,VIEW>
public java.awt.image.BufferedImage getMapBuffer()
getMapBuffer
in interface SideMap<BASE,VIEW>
public void setMapBuffer(java.awt.image.BufferedImage mapBuffer)
setMapBuffer
in interface SideMap<BASE,VIEW>
public javax.swing.ImageIcon getIcon()
public java.awt.Font getMessageFont()
getMessageFont
in interface SideMap<BASE,VIEW>
public void clearBuffer()
clearBuffer
in interface SideMap<BASE,VIEW>
public CoolMapView<BASE,VIEW> getCoolMapView()
getCoolMapView
in interface SideMap<BASE,VIEW>
public CoolMapObject<BASE,VIEW> getCoolMapObject()
getCoolMapObject
in interface SideMap<BASE,VIEW>
public boolean isDataViewValid()
isDataViewValid
in interface SideMap<BASE,VIEW>
public final void updateBuffer()
updateBuffer
in interface SideMap<BASE,VIEW>
public void selectionChanged(CoolMapObject object)
selectionChanged
in interface CViewListener
public void mapAnchorMoved(CoolMapObject object)
mapAnchorMoved
in interface CViewListener
public void mapZoomChanged(CoolMapObject object)
mapZoomChanged
in interface CViewListener
public void gridChanged(CoolMapObject object)
gridChanged
in interface CViewListener
public void aggregatorUpdated(CoolMapObject object)
CObjectListener
aggregatorUpdated
in interface CObjectListener
public void rowsChanged(CoolMapObject object)
rowsChanged
in interface CObjectListener
public void columnsChanged(CoolMapObject object)
columnsChanged
in interface CObjectListener
public void coolMapObjectBaseMatrixChanged(CoolMapObject object)
coolMapObjectBaseMatrixChanged
in interface CObjectListener
public void viewRendererChanged(CoolMapObject object)
viewRendererChanged
in interface CObjectListener
public void viewFilterChanged(CoolMapObject object)
viewFilterChanged
in interface CObjectListener
public org.json.JSONObject getCurrentState()
StateSavable
getCurrentState
in interface StateSavable
public boolean restoreState(org.json.JSONObject savedState)
StateSavable
restoreState
in interface StateSavable
public javax.swing.JComponent getConfigUI()
getConfigUI
in interface SideMap<BASE,VIEW>