public abstract class ListAnimator extends AbstractComponentDecorator
AbstractComponentDecorator.PainterDEFAULT_BOUNDS, TOP| Constructor and Description |
|---|
ListAnimator(JList list) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drop(Transferable t,
int index) |
void |
endDrag(Point where)
End an internal drag.
|
void |
endDragOver(Point where,
Transferable t)
Stop tracking an external drag.
|
protected Object |
getPlaceholder() |
static void |
main(String[] args)
Throw up a frame to demonstrate the animator at work.
|
protected abstract void |
move(int fromIndex,
int toIndex) |
void |
paint(Graphics g)
Define the decoration's appearance.
|
void |
setInsertionIndex(int idx) |
void |
setInsertionLocation(Point where) |
void |
startDrag(Point where)
Start an internal drag.
|
void |
startDragOver(Point where)
Track a drag which originated somewhere else.
|
attach, clipDecorationBounds, dispose, getComponent, getDecorationBounds, getPainter, getToolTipText, getToolTipText, isVisible, repaint, setCursor, setDecorationBounds, setDecorationBounds, setPainterBounds, setToolTipText, setVisible, synch, toStringpublic ListAnimator(JList list)
protected Object getPlaceholder()
protected abstract void move(int fromIndex,
int toIndex)
protected void drop(Transferable t, int index)
public void startDragOver(Point where)
public void endDragOver(Point where, Transferable t)
public void startDrag(Point where)
public void endDrag(Point where)
public void setInsertionLocation(Point where)
public void setInsertionIndex(int idx)
public void paint(Graphics g)
AbstractComponentDecoratorAbstractComponentDecorator.getDecorationBounds(), which defaults to the
decorated component bounds.paint in class AbstractComponentDecoratorpublic static void main(String[] args)
Copyright © 2023. All rights reserved.