|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AShapeProvider
A very generic interface that specify how to get a RootAShape from some kind of context object.
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
Adds a listener that gets notified when something changes in this provider. |
void |
addChangeListener(javax.swing.event.ChangeListener l,
boolean asWeakRef)
Adds a listener that gets notified when something changes in this provider. |
RootAShape |
getShape(java.lang.Object context)
Returns a shape for the context. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Removes the listener, if it is in the list. |
| Method Detail |
|---|
RootAShape getShape(java.lang.Object context)
context. The returned shape may be shared globally so it should not be changed.
context - The context to return the shape for.
null if not able to provide a shape for context.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 | ||||||||