Class DragImageCanvas
java.lang.Object
|
+----java.awt.Component
|
+----DragCanvas
|
+----DragImageCanvas
- public class DragImageCanvas
- extends DragCanvas
This class is used to improve graphic performance while using "drag and drop" .
-
paint(Graphics)
- This method is called to draw this component - draw dragged image over the canvas.
-
setDragImage(Image)
- Sets drag image .
setDragImage
public void setDragImage(Image i)
- Sets drag image .
- Parameters:
- i - drag image.
paint
public void paint(Graphics g)
- This method is called to draw this component - draw dragged image over the canvas.
- Parameters:
- g - the graphics context.
- Overrides:
- paint in class DragCanvas
- See Also:
- Graphics