public abstract class ColumnMap<BASE,VIEW>
extends java.lang.Object
Constructor and Description |
---|
ColumnMap(CoolMapObject<BASE,VIEW> object,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
activeCellChanged(CoolMapObject object,
MatrixCell oldCell,
MatrixCell newCell) |
void |
aggregatorUpdated(CoolMapObject object)
possible cause of data update: change base matrix, change view matrix, change rows/columns insert, remove, expand...
|
void |
clearBuffer() |
void |
columnsChanged(CoolMapObject object) |
void |
coolMapObjectBaseMatrixChanged(CoolMapObject object) |
void |
destroy() |
int |
getAnchorX() |
int |
getAnchorY() |
javax.swing.JComponent |
getConfigUI() |
CoolMapObject<BASE,VIEW> |
getCoolMapObject() |
CoolMapView<BASE,VIEW> |
getCoolMapView() |
org.json.JSONObject |
getCurrentState()
state and be persisted using JSON
|
ViewDirectionEnum |
getDirection() |
java.awt.GraphicsConfiguration |
getGraphicsConfiguration() |
javax.swing.ImageIcon |
getIcon() |
java.awt.image.BufferedImage |
getMapBuffer() |
java.awt.Font |
getMessageFont() |
java.lang.String |
getName() |
javax.swing.JPanel |
getViewPanel() |
void |
gridChanged(CoolMapObject object) |
protected javax.swing.JPanel |
initViewPanel() |
boolean |
isDataViewValid() |
boolean |
isEnabled() |
void |
mapAnchorMoved(CoolMapObject object) |
void |
mapZoomChanged(CoolMapObject object) |
void |
nameChanged(CoolMapObject object) |
void |
render(java.awt.Graphics2D g2D,
CoolMapObject<BASE,VIEW> object,
int fromRow,
int toRow,
int fromCol,
int toCol,
float zoomX,
float zoomY,
int renderWidth,
int renderHeight)
render the map whenever needed actually, it's better to separate the
render by column.
|
protected abstract void |
renderColumn(java.awt.Graphics2D g2D,
CoolMapObject<BASE,VIEW> 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 |
setMapBuffer(java.awt.image.BufferedImage mapBuffer) |
java.awt.Point |
translateToCanvas(int x,
int y) |
void |
updateBuffer() |
void |
updateBuffer(int minRow,
int maxRow,
int minCol,
int maxCol,
java.awt.Rectangle dimension) |
void |
viewFilterChanged(CoolMapObject object) |
void |
viewRendererChanged(CoolMapObject object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRender, justifyView, postPaint, prePaint, prepareRender
public ColumnMap(CoolMapObject<BASE,VIEW> object, java.lang.String name)
public int getAnchorX()
public int getAnchorY()
public final void updateBuffer(int minRow, int maxRow, int minCol, int maxCol, java.awt.Rectangle dimension)
public void render(java.awt.Graphics2D g2D, CoolMapObject<BASE,VIEW> object, int fromRow, int toRow, int fromCol, int toCol, float zoomX, float zoomY, int renderWidth, int renderHeight)
protected abstract void renderColumn(java.awt.Graphics2D g2D, CoolMapObject<BASE,VIEW> object, VNode node, int anchorX, int anchorY, int cellWidth, int cellHeight)
protected javax.swing.JPanel initViewPanel()
public java.awt.Point translateToCanvas(int x, int y)
public ViewDirectionEnum getDirection()
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 activeCellChanged(CoolMapObject object, MatrixCell oldCell, MatrixCell newCell)
activeCellChanged
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 void nameChanged(CoolMapObject object)
nameChanged
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>