Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.java.awt.peer.swing.SwingComponentPeer
gnu.java.awt.peer.swing.SwingContainerPeer
Field Summary |
Fields inherited from class gnu.java.awt.peer.swing.SwingComponentPeer | |
awtComponent , paintArea , peerFont , swingComponent |
Constructor Summary | |
|
Method Summary | |
protected void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
protected Component[] |
|
Insets |
|
protected void |
|
protected void |
|
protected void |
|
Insets |
|
boolean |
|
boolean |
|
protected void | |
protected void |
|
protected void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public SwingContainerPeer(Container awtCont)
Creates a new SwingContainerPeer.
- Parameters:
awtCont
-
protected void addHeavyweightDescendent(Component comp)
Registers a heavyweight descendent. This is then painted bypeerPaintChildren(Graphics)
.
- Parameters:
comp
- the descendent to register
public void beginLayout()
Called before the layout of this containers begins.
- Specified by:
- beginLayout in interface ContainerPeer
public void beginValidate()
Called before the validation of this containers begins.
- Specified by:
- beginValidate in interface ContainerPeer
public void cancelPendingPaint(int x, int y, int width, int height)
This method is not used at the moment.
- Specified by:
- cancelPendingPaint in interface ContainerPeer
public void endLayout()
Called after the layout of this containers ended.
- Specified by:
- endLayout in interface ContainerPeer
public void endValidate()
Called after the validation of this containers ended.
- Specified by:
- endValidate in interface ContainerPeer
protected Component[] getHeavyweightDescendents()
Returns an array of all registered heavyweight descendents.
- Returns:
- all registered heavyweight descendents
public Insets getInsets()
Returns the insets of the container. This is implemented to return the insets of the Swing container.
- Specified by:
- getInsets in interface ContainerPeer
- Returns:
- the insets of the container
protected void handleKeyEvent(KeyEvent e)
Handles key events on the component. This is usually forwarded to the SwingComponent's processKeyEvent() method.
- Overrides:
- handleKeyEvent in interface SwingComponentPeer
- Parameters:
e
- the key event
protected void handleMouseEvent(MouseEvent ev)
Handles mouse events by dispatching it to the correct component.
- Overrides:
- handleMouseEvent in interface SwingComponentPeer
- Parameters:
ev
- the mouse event
protected void handleMouseMotionEvent(MouseEvent ev)
Handles mouse events by dispatching it to the correct component.
- Overrides:
- handleMouseMotionEvent in interface SwingComponentPeer
- Parameters:
ev
- the mouse event
public Insets insets()
Returns the insets of the container. This is implemented to return the insets of the Swing container.
- Specified by:
- insets in interface ContainerPeer
- Returns:
- the insets of the container
public boolean isPaintPending()
Returnsfalse
unconditionally. This method is not used at the moment.
- Specified by:
- isPaintPending in interface ContainerPeer
- Returns:
false
public boolean isRestackSupported()
Returnsfalse
unconditionally. This method is not used at the moment.
- Specified by:
- isRestackSupported in interface ContainerPeer
- Returns:
false
protected void peerPaint(Graphics g, boolean update)
Performs the super behaviour (call peerPaintComponent() and awtComponent.paint()), and forwards the paint request to the heavyweight descendents of the container.
- Overrides:
- peerPaint in interface SwingComponentPeer
protected void peerPaintChildren(Graphics g)
Paints any heavyweight child components.
- Parameters:
g
- the graphics to use for painting
protected void removeHeavyweightDescendent(Component comp)
Unregisters a heavyweight descendent.
- Parameters:
comp
- the descendent to unregister
public void restack()
This method is not used at the moment.
- Specified by:
- restack in interface ContainerPeer