public class Pad extends Widget
Modifier | Constructor | Description |
---|---|---|
protected |
Pad() |
A new, empty Pad.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getHeight() |
Return my current height in pixels.
|
int |
getWidth() |
Return my current width in pixels.
|
protected void |
paintComponent(java.awt.Graphics2D g) |
Repaint myself on G.
|
void |
repaint() |
Alert the system that I ought be asked to repaint myself.
|
void |
repaint(int x,
int y,
int width,
int height) |
Alert the system that I ought be asked to repaint the rectangular
area whose top left corner is X, Y and has given WIDTH and
HEIGHT.
|
void |
repaint(long tm) |
Alert the system that I ought be asked to repaint myself
within TM milliseconds.
|
void |
repaint(long tm,
int x,
int y,
int width,
int height) |
Alert the system that I ought be asked to repaint the rectangular
area whose top left corner is X, Y and has given WIDTH and
HEIGHT within TM milliseconds.
|
void |
setKeyHandler(java.lang.String event,
java.lang.Object receiver,
java.lang.String funcName) |
Set the handler of key events indicated by EVENT to the method
named FUNCNAME in RECEIVER.
|
void |
setKeyHandler(java.lang.String event,
java.lang.String funcName) |
Set the handler of key events indicated by EVENT to my method
named FUNCNAME.
|
void |
setMaximumSize(int width,
int height) |
Set my maximum size to WIDTH x HEIGHT pixels.
|
void |
setMinimumSize(int width,
int height) |
Set my minimum size to WIDTH x HEIGHT pixels.
|
void |
setMouseHandler(java.lang.String event,
java.lang.Object receiver,
java.lang.String funcName) |
Handle the mouse event EVENT by calling the FUNCNAME method on
RECEIVER with the MouseEvent that describes the event.
|
void |
setMouseHandler(java.lang.String event,
java.lang.String funcName) |
Set the handler of mouse events indicated by EVENT to my method
named FUNCNAME.
|
void |
setPreferredSize(int width,
int height) |
Set my preferred size to WIDTH x HEIGHT pixels.
|
void |
setSize(int width,
int height) |
Set my current size to WIDTH x HEIGHT pixels.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFocusInWindow
public void setSize(int width, int height)
public void setPreferredSize(int width, int height)
public void setMinimumSize(int width, int height)
public void setMaximumSize(int width, int height)
public int getWidth()
public int getHeight()
public void repaint()
public void repaint(long tm)
public void repaint(int x, int y, int width, int height)
public void repaint(long tm, int x, int y, int width, int height)
public void setMouseHandler(java.lang.String event, java.lang.Object receiver, java.lang.String funcName)
public void setMouseHandler(java.lang.String event, java.lang.String funcName)
public void setKeyHandler(java.lang.String event, java.lang.Object receiver, java.lang.String funcName)
public void setKeyHandler(java.lang.String event, java.lang.String funcName)
protected void paintComponent(java.awt.Graphics2D g)