public class Pad extends Widget
Modifier | Constructor and Description |
---|---|
protected |
Pad() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
My current height in pixels.
|
int |
getWidth()
My current width in pixels.
|
protected void |
paintComponent(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.
|
protected void |
setKeyHandler(String event,
Object receiver,
String funcName) |
protected void |
setKeyHandler(String event,
String funcName) |
protected void |
setMaximumSize(int width,
int height)
Set my maximum size to WIDTHxHEIGHT pixels.
|
protected void |
setMinimumSize(int width,
int height)
Set my minimum size to WIDTHxHEIGHT pixels.
|
protected void |
setMouseHandler(String event,
Object receiver,
String funcName)
Handle the mouse event EVENT by calling the FUNCNAME method on
RECEIVER with the MouseEvent that describes the event.
|
protected void |
setMouseHandler(String event,
String funcName) |
protected void |
setPreferredSize(int width,
int height)
Set my preferred size to WIDTHxHEIGHT pixels.
|
protected void |
setSize(int width,
int height)
Set my current size to WIDTHxHEIGHT pixels.
|
requestFocusInWindow
protected void setSize(int width, int height)
protected void setPreferredSize(int width, int height)
protected void setMinimumSize(int width, int height)
protected 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)
protected void setMouseHandler(String event, Object receiver, String funcName)
MouseEvent
protected void paintComponent(Graphics2D g)