|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreemap.demo.TMFileDraw
treemap.demo.TMFileDrawPattern
public class TMFileDrawPattern
The TMFileDrawPattern implements a example of renderer for TMFileNode. It use the date of last modification as color, and patterns instead of color for filling rects.
The color legend is :
Constructor Summary | |
---|---|
TMFileDrawPattern()
Constructor. |
Method Summary | |
---|---|
java.awt.Paint |
getFilling(TMNodeAdapter nodeAdapter)
Returns the filling of the node. |
Methods inherited from class treemap.demo.TMFileDraw |
---|
getTitle, getTitleColor, getTooltip, isCompatibleWith |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TMFileDrawPattern()
Method Detail |
---|
public java.awt.Paint getFilling(TMNodeAdapter nodeAdapter) throws TMExceptionBadTMNodeKind
getFilling
in interface TMComputeDraw
getFilling
in class TMFileDraw
nodeAdapter
- we compute the filling of this node;
should return an instance of TMFileNode
TMExceptionBadTMNodeKind
- If the node does not return an
instance of TMFileNode
|
TreeMap Java Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |