public abstract class PositionTracker<T> extends java.lang.Object implements Disposable, java.awt.event.HierarchyBoundsListener, java.awt.event.HierarchyListener, java.awt.event.ComponentListener
Modifier and Type | Class and Description |
---|---|
static interface |
PositionTracker.Client<T> |
static class |
PositionTracker.Static<T> |
Disposable.Parent
Constructor and Description |
---|
PositionTracker(java.awt.Component component) |
Modifier and Type | Method and Description |
---|---|
void |
ancestorMoved(java.awt.event.HierarchyEvent e) |
void |
ancestorResized(java.awt.event.HierarchyEvent e) |
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.awt.Component |
getComponent() |
void |
hierarchyChanged(java.awt.event.HierarchyEvent e) |
void |
init(PositionTracker.Client<T> client) |
abstract RelativePoint |
recalculateLocation(T object) |
protected void |
revalidate() |
public final void init(PositionTracker.Client<T> client)
public final java.awt.Component getComponent()
public final void ancestorMoved(java.awt.event.HierarchyEvent e)
ancestorMoved
in interface java.awt.event.HierarchyBoundsListener
public final void ancestorResized(java.awt.event.HierarchyEvent e)
ancestorResized
in interface java.awt.event.HierarchyBoundsListener
public final void hierarchyChanged(java.awt.event.HierarchyEvent e)
hierarchyChanged
in interface java.awt.event.HierarchyListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
protected final void revalidate()
public abstract RelativePoint recalculateLocation(T object)
public final void dispose()
Disposable
dispose
in interface Disposable