|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.treemap.AbstractTreeMapNode<N>
N
- the type of nodespublic abstract class AbstractTreeMapNode<N extends AbstractTreeMapNode<N>>
This class provides a skeletal implementation of the TreeMapNode interface to minimize the effort required to implement this interface.
Field Summary | |
---|---|
protected TreeMapModel<N> |
_model
|
Constructor Summary | |
---|---|
protected |
AbstractTreeMapNode(TreeMapModel<N> model)
|
Method Summary | |
---|---|
abstract void |
add(N newChild)
|
Object |
getAggregateValue(int columnIndex)
Gets the aggregate value of the children of this node. |
Rectangle2D |
getBounds()
Gets the bounding rectangle of the item in the map. |
abstract N |
getChild(Object name)
|
abstract int |
getChildCount()
|
abstract Iterable<N> |
getChildren()
|
Color |
getColor()
|
Color |
getCushionColor()
|
BufferedImage |
getCushionImage()
|
String |
getLabelName()
The label of this node. |
int |
getLevel()
Returns the number of levels above this node -- the distance from the root to this node. |
abstract Object |
getNodeName()
The name of this node. |
N |
getParent()
|
AbstractTreeMapNode[] |
getPath()
|
abstract int |
getRow()
Gets the row in the underlying TableModel, -1 if it doesn't relate to a leaf node. |
protected N |
getSelf()
|
Shape |
getShape()
Gets the shape of the item in the map. |
double |
getSize()
Corresponds to area in map. |
void |
invalidateAggregation()
|
boolean |
isRoot()
|
protected Number |
normalizedToWorld(Number value,
TreeMapField columnIndex)
|
void |
setColor(Color c)
Sets the color of the item in the map. |
void |
setParent(N parent)
|
void |
setShape(Shape shape)
Sets the shape of the item in the map. |
void |
setSize(double size)
Sets the size of the item. |
String |
toString()
|
protected Number |
worldToNormalized(Number value,
TreeMapField columnIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jidesoft.treemap.TreeMapNode |
---|
getChildrenGroupByField, getGroupByField, isLeaf |
Field Detail |
---|
protected final TreeMapModel<N extends AbstractTreeMapNode<N>> _model
Constructor Detail |
---|
protected AbstractTreeMapNode(TreeMapModel<N> model)
Method Detail |
---|
public abstract int getChildCount()
public int getLevel()
getLevel
in interface TreeMapNode<N extends AbstractTreeMapNode<N>>
public N getParent()
public boolean isRoot()
public abstract Iterable<N> getChildren()
public AbstractTreeMapNode[] getPath()
public abstract void add(N newChild)
public void setParent(N parent)
public abstract N getChild(Object name)
public abstract Object getNodeName()
public abstract int getRow()
public String getLabelName()
public Color getColor()
protected Number worldToNormalized(Number value, TreeMapField columnIndex)
protected Number normalizedToWorld(Number value, TreeMapField columnIndex)
public Object getAggregateValue(int columnIndex)
TreeMapNode
getAggregateValue
in interface TreeMapNode<N extends AbstractTreeMapNode<N>>
columnIndex
- the column
public double getSize()
TreeMapNode
getSize
in interface TreeMapNode<N extends AbstractTreeMapNode<N>>
public void setSize(double size)
MutableTreeMapNode
setSize
in interface MutableTreeMapNode<N extends AbstractTreeMapNode<N>>
size
- the size of the item.public Shape getShape()
TreeMapNode
getShape
in interface TreeMapNode<N extends AbstractTreeMapNode<N>>
public void invalidateAggregation()
invalidateAggregation
in interface MutableTreeMapNode<N extends AbstractTreeMapNode<N>>
public void setColor(Color c)
MutableTreeMapNode
setColor
in interface MutableTreeMapNode<N extends AbstractTreeMapNode<N>>
c
- the color of the item in the map.public void setShape(Shape shape)
MutableTreeMapNode
setShape
in interface MutableTreeMapNode<N extends AbstractTreeMapNode<N>>
shape
- the shape of the item in the map.public Rectangle2D getBounds()
TreeMapNode
getBounds
in interface TreeMapNode<N extends AbstractTreeMapNode<N>>
public String toString()
toString
in class Object
public BufferedImage getCushionImage()
public Color getCushionColor()
protected N getSelf()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |