com.metsci.glimpse.painter.treemap
Class AbstractTreeMapPainter
java.lang.Object
com.metsci.glimpse.painter.base.GlimpsePainterImpl
com.metsci.glimpse.painter.base.GlimpsePainter2D
com.metsci.glimpse.painter.base.GlimpseDataPainter2D
com.metsci.glimpse.painter.treemap.AbstractTreeMapPainter
- All Implemented Interfaces:
- GlimpsePainter
- Direct Known Subclasses:
- SimpleTreeMapPainter
public abstract class AbstractTreeMapPainter
- extends GlimpseDataPainter2D
Draws a TreeMap,
useful for hierarchical data. There are 4 dimensions of information to a
treemap: the level in the hierarchy, the size, the color and title/text. The
structure, size and text is contained in the NestedTreeMap
datastructure. The colors and layout are determined by this painter and
implemented in a way that allows switching on information within a TreeMap
node (see
SimpleTreeMapPainter.getLeafColor(int, boolean)
).
- Author:
- borkholder
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTreeMapPainter
public AbstractTreeMapPainter()
setLayout
public void setLayout(TreeMapLayout layout)
getTreeMapLayout
public TreeMapLayout getTreeMapLayout()
setTreeMapData
public void setTreeMapData(NestedTreeMap tree)
getTreeMapData
public NestedTreeMap getTreeMapData()
getLeafAt
public java.lang.Integer getLeafAt(Axis2D axis,
double x,
double y)
paintTo
public void paintTo(javax.media.opengl.GL gl,
GlimpseBounds layoutBounds,
Axis2D axis)
- Specified by:
paintTo
in class GlimpseDataPainter2D
dispose
public void dispose(javax.media.opengl.GLContext context)
Copyright © 2012 Metron, Inc.. All Rights Reserved.