public class RowTree extends RowMap implements SideTree
ballInnerRadius, ballOuterRadius, baseWidthOrHeight, CURVE, heightMultiples, highlightRadius, hoverFont, leafBorderColor, leafColor, ORTHOGONAL, STRAIGHT
Constructor and Description |
---|
RowTree(CoolMapObject object) |
Modifier and Type | Method and Description |
---|---|
void |
activeCellChanged(CoolMapObject obj,
MatrixCell oldCell,
MatrixCell newCell) |
void |
addToSelected(VNode obj) |
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 |
clearSelection() |
void |
clearSubtreeColor() |
void |
collapseOneLevel() |
void |
collapseSelectedNodes() |
void |
colorChild() |
void |
colorSubtree() |
void |
columnsChanged(CoolMapObject object) |
void |
coolMapObjectBaseMatrixChanged(CoolMapObject object) |
void |
destroy() |
void |
expandSelectedNodes() |
void |
expandSelectedNodesToLeaf() |
void |
expandSelectedNodesToLeafParent() |
void |
expandToNextLevel() |
void |
expandTreeToLeaf() |
void |
fireTreeNodesSelected(java.util.EventObject event) |
VNode |
getActiveNode(int screenX,
int screenY) |
VNode |
getActiveObject() |
java.awt.Point |
getActivePoint() |
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() |
java.awt.Color |
getHighlightNodeColor() |
javax.swing.ImageIcon |
getIcon() |
java.awt.image.BufferedImage |
getMapBuffer() |
java.awt.Font |
getMessageFont() |
java.lang.String |
getName() |
java.awt.Point |
getNodePositionInView(VNode node) |
java.util.List<VNode> |
getSelectedObjects() |
java.awt.Rectangle |
getSelectedRegion() |
java.awt.Point |
getSelectionEndPoint() |
java.awt.Point |
getSelectionStartPoint() |
java.lang.Integer |
getTreeNodeOffset(VNode treeNode,
CoolMapObject object) |
javax.swing.JPanel |
getViewPanel() |
void |
gridChanged(CoolMapObject object) |
boolean |
isDataViewValid() |
boolean |
isEnabled() |
boolean |
isPaintingPlotHoverEnabled() |
boolean |
isPathHighlightingEnabled() |
boolean |
isSelecting() |
void |
justifyView() |
void |
mapAnchorMoved(CoolMapObject object) |
void |
mapZoomChanged(CoolMapObject object) |
void |
nameChanged(CoolMapObject object) |
void |
postPaint(java.awt.Graphics2D g2D,
CoolMapObject object,
int width,
int height) |
void |
prePaint(java.awt.Graphics2D g2D,
CoolMapObject object,
int width,
int height) |
void |
prepareRender(java.awt.Graphics2D g2D) |
void |
removeFromSelected(VNode obj) |
void |
removeOntology() |
void |
render(java.awt.Graphics2D g2D,
CoolMapObject object,
int fromRow,
int toRow,
int fromCol,
int toCol,
float zoomX,
float zoomY,
int renderWidth,
int renderHeight) |
void |
renderLine(java.awt.Graphics2D g2D,
int px,
int py,
int cx,
int cy,
float zoomX,
java.awt.Color lineColor) |
protected void |
renderRow(java.awt.Graphics2D g2D,
CoolMapObject object,
VNode node,
int anchorX,
int anchorY,
int cellWidth,
int cellHeight) |
void |
renderTreeNodes(java.awt.Graphics2D g2D,
CoolMapObject object,
int fromRow,
int toRow,
int fromCol,
int toCol,
float zoomX,
float zoomY,
int renderWidth,
int renderHeight) |
boolean |
restoreState(org.json.JSONObject savedState)
state can be restored from JSON
|
void |
rowsChanged(CoolMapObject object) |
void |
selectionChanged(CoolMapObject object) |
void |
selectNodesInRegion(java.awt.Rectangle screenRegion) |
void |
setActiveObject(VNode obj) |
void |
setActivePoint(java.awt.Point point) |
void |
setDrawingType(int drawingType) |
void |
setEnabled(boolean enabled) |
void |
setHeightMultiple(float v) |
void |
setHighlightNodeColor(java.awt.Color color) |
void |
setMapBuffer(java.awt.image.BufferedImage mapBuffer) |
void |
setPaintingPlotHoverEnabled(boolean enabled) |
void |
setPathHighlightingEnabled(boolean enabled) |
void |
setSelectedRegion(java.awt.Rectangle selectedRegion) |
void |
setSelectedTreeNodes(java.util.Set<VNode> treeNodes) |
void |
setSelecting(boolean selecting) |
void |
setSelectionEndPoint(java.awt.Point point) |
void |
setSelectionStartPoint(java.awt.Point point) |
void |
updateBuffer() |
void |
viewFilterChanged(CoolMapObject object) |
void |
viewRendererChanged(CoolMapObject object) |
getAnchorX, getAnchorY, getDirection, initViewPanel, translateToCanvas, updateBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoolMapObject, getLabelColors, getMouseListener, getMouseMotionListener, getPopupMenu
clearBuffer, destroy, getAnchorX, getAnchorY, getConfigUI, getCoolMapView, getDirection, getGraphicsConfiguration, getIcon, getMapBuffer, getMessageFont, getName, getViewPanel, isDataViewValid, isEnabled, setEnabled, setMapBuffer, translateToCanvas, updateBuffer, updateBuffer
gridChanged, mapAnchorMoved, mapZoomChanged, selectionChanged
aggregatorUpdated, columnsChanged, coolMapObjectBaseMatrixChanged, nameChanged, viewFilterChanged, viewRendererChanged
getCurrentState, restoreState
public RowTree(CoolMapObject object)
public void setSelectedTreeNodes(java.util.Set<VNode> treeNodes)
setSelectedTreeNodes
in interface SideTree
public void rowsChanged(CoolMapObject object)
rowsChanged
in interface CObjectListener
public void prePaint(java.awt.Graphics2D g2D, CoolMapObject object, int width, int height)
public void prepareRender(java.awt.Graphics2D g2D)
prepareRender
in interface SideMap
public void postPaint(java.awt.Graphics2D g2D, CoolMapObject object, int width, int height)
public boolean canRender(CoolMapObject coolMapObject)
public void justifyView()
justifyView
in interface SideMap
protected void renderRow(java.awt.Graphics2D g2D, CoolMapObject object, VNode node, int anchorX, int anchorY, int cellWidth, int cellHeight)
public void render(java.awt.Graphics2D g2D, CoolMapObject object, int fromRow, int toRow, int fromCol, int toCol, float zoomX, float zoomY, int renderWidth, int renderHeight)
public java.lang.Integer getTreeNodeOffset(VNode treeNode, CoolMapObject object)
getTreeNodeOffset
in interface SideTree
public void removeOntology()
removeOntology
in interface SideTree
public java.awt.Color getHighlightNodeColor()
getHighlightNodeColor
in interface SideTree
public void setHighlightNodeColor(java.awt.Color color)
setHighlightNodeColor
in interface SideTree
public void expandSelectedNodes()
expandSelectedNodes
in interface SideTree
public void setHeightMultiple(float v)
setHeightMultiple
in interface SideTree
public boolean isPathHighlightingEnabled()
isPathHighlightingEnabled
in interface SideTree
public void setPathHighlightingEnabled(boolean enabled)
setPathHighlightingEnabled
in interface SideTree
public void clearSubtreeColor()
clearSubtreeColor
in interface SideTree
public void colorChild()
colorChild
in interface SideTree
public void colorSubtree()
colorSubtree
in interface SideTree
public void collapseOneLevel()
collapseOneLevel
in interface SideTree
public void expandTreeToLeaf()
expandTreeToLeaf
in interface SideTree
public void expandToNextLevel()
expandToNextLevel
in interface SideTree
public void collapseSelectedNodes()
collapseSelectedNodes
in interface SideTree
public void expandSelectedNodesToLeafParent()
expandSelectedNodesToLeafParent
in interface SideTree
public void expandSelectedNodesToLeaf()
expandSelectedNodesToLeaf
in interface SideTree
public void renderTreeNodes(java.awt.Graphics2D g2D, CoolMapObject object, int fromRow, int toRow, int fromCol, int toCol, float zoomX, float zoomY, int renderWidth, int renderHeight)
renderTreeNodes
in interface SideTree
public void renderLine(java.awt.Graphics2D g2D, int px, int py, int cx, int cy, float zoomX, java.awt.Color lineColor)
renderLine
in interface SideTree
public void activeCellChanged(CoolMapObject obj, MatrixCell oldCell, MatrixCell newCell)
activeCellChanged
in interface CViewListener
public void fireTreeNodesSelected(java.util.EventObject event)
fireTreeNodesSelected
in interface SideTree
public void selectNodesInRegion(java.awt.Rectangle screenRegion)
selectNodesInRegion
in interface SideTree
public java.awt.Point getNodePositionInView(VNode node)
getNodePositionInView
in interface SideTree
public void setDrawingType(int drawingType)
setDrawingType
in interface SideTree
public boolean isPaintingPlotHoverEnabled()
isPaintingPlotHoverEnabled
in interface SideTree
public void setPaintingPlotHoverEnabled(boolean enabled)
setPaintingPlotHoverEnabled
in interface SideTree
public VNode getActiveNode(int screenX, int screenY)
getActiveNode
in interface SideTree
public java.util.List<VNode> getSelectedObjects()
getSelectedObjects
in interface Selectable<VNode>
public void setSelectionStartPoint(java.awt.Point point)
setSelectionStartPoint
in interface Selectable<VNode>
public void setSelectionEndPoint(java.awt.Point point)
setSelectionEndPoint
in interface Selectable<VNode>
public void setActivePoint(java.awt.Point point)
setActivePoint
in interface Selectable<VNode>
public void setSelectedRegion(java.awt.Rectangle selectedRegion)
setSelectedRegion
in interface Selectable<VNode>
public java.awt.Point getSelectionStartPoint()
getSelectionStartPoint
in interface Selectable<VNode>
public java.awt.Point getSelectionEndPoint()
getSelectionEndPoint
in interface Selectable<VNode>
public java.awt.Point getActivePoint()
getActivePoint
in interface Selectable<VNode>
public java.awt.Rectangle getSelectedRegion()
getSelectedRegion
in interface Selectable<VNode>
public void addToSelected(VNode obj)
addToSelected
in interface Selectable<VNode>
public void removeFromSelected(VNode obj)
removeFromSelected
in interface Selectable<VNode>
public boolean isSelecting()
isSelecting
in interface Selectable<VNode>
public void setSelecting(boolean selecting)
setSelecting
in interface Selectable<VNode>
public void clearSelection()
clearSelection
in interface Selectable<VNode>
public void setActiveObject(VNode obj)
setActiveObject
in interface Selectable<VNode>
public VNode getActiveObject()
getActiveObject
in interface Selectable<VNode>
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 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>