|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActivityViewRenderer
An interface that outlines a renderer that draws ActivityViews within some bounds.
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds a listener that gets notified when something changes in this renderer. |
void |
addChangeListener(javax.swing.event.ChangeListener l,
boolean asWeakRef)
Adds a listener that gets notified when something changes in this renderer. |
java.awt.Insets |
getRepaintMargin()
During the paint phase the maximum repaint padding is accumulated and returned here. |
void |
paint(java.awt.Graphics2D g2,
java.awt.Rectangle bounds,
TimeSpanList activityViewList)
Paints the activity views in the List. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes the listener, if it is in the list. |
| Method Detail |
|---|
void paint(java.awt.Graphics2D g2,
java.awt.Rectangle bounds,
TimeSpanList activityViewList)
List. The bounds of the activity views should already be set to the
correct values, for instance by a ActivityLayout.
g2 - the Graphics object to paint in.bounds - The bounds of the container to draw within. The clip can be smaller. Not null.activityViewList - The activities to paint/draw. Should be ActivityView objects.java.awt.Insets getRepaintMargin()
null. Always at least
1 for the margin to compensate for anti-aliasing, strokes and such. Could be a shared object
so do not change it, consider read-only!RootAShape.getRepaintPadding()void addChangeListener(javax.swing.event.ChangeListener l)
l - The listener. Not null
void addChangeListener(javax.swing.event.ChangeListener l,
boolean asWeakRef)
l - The listener. Not nullasWeakRef - If the listener should be added wrapped in a WeakReference. This defers memory leak problems since
the garbage collector can collect the listener if it is only referenced from this list.void removeChangeListener(javax.swing.event.ChangeListener l)
l - The listener to remove, not null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||