Class DragCanvas
java.lang.Object
|
+----java.awt.Component
|
+----DragCanvas
- public class DragCanvas
- extends Component
- implements ActionListener
This class is used to improve graphic performance while using "drag and drop"
-
actionPerformed(ActionEvent)
-
Processes action events occurring on this component.
-
paint(Graphics)
- This method is called to draw this component - just dump buffer to the screen.
-
setVisible(boolean)
- Hiding the canvas while it's not used (while not in drag & drop mode).
-
update(Graphics)
-
Updates this component.
paint
public void paint(Graphics g)
- This method is called to draw this component - just dump buffer to the screen.
- Parameters:
- g - the graphics context.
- Overrides:
- paint in class Component
- See Also:
- Graphics
setVisible
public void setVisible(boolean b)
- Hiding the canvas while it's not used (while not in drag & drop mode).
- Overrides:
- setVisible in class Component
update
public void update(Graphics g)
- Updates this component.
- Parameters:
- g - the specified context to use for updating.
- Overrides:
- update in class Component
actionPerformed
public void actionPerformed(ActionEvent e)
- Processes action events occurring on this component.
- Parameters:
- e - the action event.
- See Also:
- ActionListener