| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyShape(Region shape)
Implements java. Applies the shape to the native component window. |
| public void | beginLayout()
Implements java. Notifies the peer that layout is about to begin. |
| public void | beginValidate()
Implements java. Notifies the peer that validation of the component tree is about to begin. |
| public boolean | canDetermineObscurity()
Implements java. Returns |
| public void | coalescePaintEvent(PaintEvent e)
Implements java. Called to coalesce paint events. |
| public void | createBuffers(int numBuffers, BufferCapabilities caps)
Implements java. Create |
| public Image | createImage(int width, int height)
Implements java. Creates an empty image with the specified width and height. |
| public VolatileImage | createVolatileImage(int width, int height)
Implements java. Creates an empty volatile image with the specified width and height. |
| public void | destroyBuffers()
Implements java. Destroys all created buffers. |
| public void | |
| public void | dispose()
Implements java. Disposes all resources held by the component peer. |
| public void | |
| public void | endLayout()
Implements java. Notifies the peer that layout is finished. |
| public void | endValidate()
Implements java. Notifies the peer that validation of the component tree is finished. |
| public void | flip(int x1, int y1, int x2, int y2, BufferCapabilities.
Implements java. Move the back buffer to the front buffer. |
| public GraphicsConfiguration | getAppropriateGraphicsConfiguration(GraphicsConfiguration gc)
Implements java. Requests a GC that best suits this Canvas. |
| public Image | getBackBuffer()
Implements java. Returns the back buffer as image. |
| public Rectangle | |
| public ColorModel | getColorModel()
Implements java. Returns the color model used by the component. |
| public FontMetrics | getFontMetrics(Font font)
Implements java. Returns a font metrics object to determine the metrics properties of the specified font. |
| public Graphics | getGraphics()
Implements java. Returns a graphics object to paint on the component. |
| public GraphicsConfiguration | getGraphicsConfiguration()
Implements java. Returns the graphics configuration that corresponds to this component. |
| public Insets | |
| public Point | getLocationOnScreen()
Implements java. Determines the location of the component on the screen. |
| public Dimension | getMinimumSize()
Implements java. Determines the minimum size of the component. |
| public Dimension | getPreferredSize()
Implements java. Determines the preferred size of the component. |
| public boolean | handleEvent(Event e)
References Deprecated
Event is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public void | handleEvent(AWTEvent arg0)
Implements java. Called to let the component peer handle events. |
| public boolean | handlesWheelScrolling()
Implements java. Determines if the component handles wheel scrolling itself. |
| public void | |
| public Insets | |
| public boolean | isFocusable()
Implements java. Returns |
| public boolean | isObscured()
Implements java. Determines if a component has been obscured, i.e. by an overlapping window or similar. |
| public boolean | |
| public boolean | isReparentSupported()
Implements java. Returns whether this peer supports reparenting to another parent without destroying the peer. |
| public void | layout()
Implements java. Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. |
| public Dimension | |
| public void | paint(Graphics g)
Implements java. Paints the component to the specified graphics context. |
| public Dimension | |
| public void | print(Graphics g)
Implements java. Prints the component to the specified graphics context. |
| public void | |
| public void | reparent(ContainerPeer newNativeParent)
Implements java. Reparents this peer to the new parent referenced by
|
| public boolean | requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, FocusEvent.
Implements java. Requests focus on this component. |
| public void | |
| public void | setBackground(Color c)
Implements java. Sets the background color of this component. |
| public void | setBounds(int x, int y, int width, int height, int op)
Implements java. Sets the location or size or both of the component. |
| public void | |
| public void | setEnabled(boolean b)
Implements java. Enables or disables a component. |
| public void | |
| public void | setForeground(Color c)
Implements java. Sets the foreground color of this component. |
| public void | setVisible(boolean b)
Implements java. Makes a component visible or invisible. |
| public void | setZOrder(ComponentPeer above)
Implements java. Lowers this component at the bottom of the above HW peer. |
| public void | |
| public void | updateCursorImmediately()
Implements java. Updates the cursor of the component. |
| public boolean | updateGraphicsData(GraphicsConfiguration gc)
Implements java. Updates internal data structures related to the component's GC. |
| NullComponentPeer | back to summary |
|---|---|
| public NullComponentPeer() | |
| applyShape | back to summary |
|---|---|
| public void applyShape(Region shape) Implements java. Applies the shape to the native component window.
| |
| beginLayout | back to summary |
|---|---|
| public void beginLayout() Implements java. Doc from java. Notifies the peer that layout is about to begin. This is called before the container itself and its children are laid out. | |
| beginValidate | back to summary |
|---|---|
| public void beginValidate() Implements java. Doc from java. Notifies the peer that validation of the component tree is about to begin. | |
| canDetermineObscurity | back to summary |
|---|---|
| public boolean canDetermineObscurity() Implements java. Doc from java. Returns | |
| coalescePaintEvent | back to summary |
|---|---|
| public void coalescePaintEvent(PaintEvent e) Implements java. Doc from java. Called to coalesce paint events. | |
| createBuffers | back to summary |
|---|---|
| public void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException Implements java. Doc from java. Create
| |
| createImage | back to summary |
|---|---|
| public Image createImage(int width, int height) Implements java. Doc from java. Creates an empty image with the specified width and height. This is generally used as a non-accelerated backbuffer for drawing onto the component (e.g. by Swing). | |
| createVolatileImage | back to summary |
|---|---|
| public VolatileImage createVolatileImage(int width, int height) Implements java. Doc from java. Creates an empty volatile image with the specified width and height. This is generally used as an accelerated backbuffer for drawing onto the component (e.g. by Swing). | |
| destroyBuffers | back to summary |
|---|---|
| public void destroyBuffers() Implements java. Doc from java. Destroys all created buffers. | |
| disable | back to summary |
|---|---|
| public void disable() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements java. Doc from java. Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected. | |
| enable | back to summary |
|---|---|
| public void enable() | |
| endLayout | back to summary |
|---|---|
| public void endLayout() Implements java. Doc from java. Notifies the peer that layout is finished. This is called after the container and its children have been laid out. | |
| endValidate | back to summary |
|---|---|
| public void endValidate() Implements java. Doc from java. Notifies the peer that validation of the component tree is finished. | |
| flip | back to summary |
|---|---|
| public void flip(int x1, int y1, int x2, int y2, BufferCapabilities. Implements java. Doc from java. Move the back buffer to the front buffer. | |
| getAppropriateGraphicsConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getAppropriateGraphicsConfiguration(GraphicsConfiguration gc) Implements java. Doc from java. Requests a GC that best suits this Canvas. The returned GC may differ from the requested GC passed as the argument to this method. This method must return a non-null value (given the argument is non-null as well). | |
| getBackBuffer | back to summary |
|---|---|
| public Image getBackBuffer() Implements java. Doc from java. Returns the back buffer as image. | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() | |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() Implements java. Doc from java. Returns the color model used by the component. | |
| getFontMetrics | back to summary |
|---|---|
| public FontMetrics getFontMetrics(Font font) Implements java. Doc from java. Returns a font metrics object to determine the metrics properties of the specified font. | |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Implements java. Doc from java. Returns a graphics object to paint on the component. | |
| getGraphicsConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getGraphicsConfiguration() Implements java. Doc from java. Returns the graphics configuration that corresponds to this component. | |
| getInsets | back to summary |
|---|---|
| public Insets getInsets() Implements java. Doc from java. Returns the insets of this container. Insets usually is the space that is occupied by things like borders. | |
| getLocationOnScreen | back to summary |
|---|---|
| public Point getLocationOnScreen() Implements java. Doc from java. Determines the location of the component on the screen. | |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Implements java. Doc from java. Determines the minimum size of the component. | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Implements java. Doc from java. Determines the preferred size of the component. | |
| handleEvent | back to summary |
|---|---|
| public boolean handleEvent(Event e)
References Deprecated
See corresponding docs for further information.
| |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(AWTEvent arg0) Implements java. Doc from java. Called to let the component peer handle events. | |
| handlesWheelScrolling | back to summary |
|---|---|
| public boolean handlesWheelScrolling() Implements java. Doc from java. Determines if the component handles wheel scrolling itself. Otherwise it is delegated to the component's parent. | |
| hide | back to summary |
|---|---|
| public void hide() | |
| insets | back to summary |
|---|---|
| public Insets insets() | |
| isFocusable | back to summary |
|---|---|
| public boolean isFocusable() Implements java. Doc from java. Returns | |
| isObscured | back to summary |
|---|---|
| public boolean isObscured() Implements java. Doc from java. Determines if a component has been obscured, i.e. by an overlapping
window or similar. This is used by JViewport for optimizing performance.
This doesn't have to be implemented, when
| |
| isPaintPending | back to summary |
|---|---|
| public boolean isPaintPending() | |
| isReparentSupported | back to summary |
|---|---|
| public boolean isReparentSupported() Implements java. Doc from java. Returns whether this peer supports reparenting to another parent without destroying the peer. | |
| layout | back to summary |
|---|---|
| public void layout() Implements java. Doc from java. Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. For instance, a lightweight Checkbox needs to layout the box, as well as the text label. | |
| minimumSize | back to summary |
|---|---|
| public Dimension minimumSize() | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Implements java. Doc from java. Paints the component to the specified graphics context. This is called
by | |
| preferredSize | back to summary |
|---|---|
| public Dimension preferredSize() | |
| back to summary | |
|---|---|
| public void print(Graphics g) Implements java. Doc from java. Prints the component to the specified graphics context. This is called
by | |
| repaint | back to summary |
|---|---|
| public void repaint(long tm, int x, int y, int width, int height) | |
| reparent | back to summary |
|---|---|
| public void reparent(ContainerPeer newNativeParent) Implements java. Doc from java. Reparents this peer to the new parent referenced by
| |
| requestFocus | back to summary |
|---|---|
| public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, FocusEvent. Implements java. Doc from java. Requests focus on this component. | |
| reshape | back to summary |
|---|---|
| public void reshape(int x, int y, int width, int height) | |
| setBackground | back to summary |
|---|---|
| public void setBackground(Color c) Implements java. Doc from java. Sets the background color of this component. | |
| setBounds | back to summary |
|---|---|
| public void setBounds(int x, int y, int width, int height, int op) Implements java. Doc from java. Sets the location or size or both of the component. The location is
specified relative to the component's parent. The | |
| setCursor | back to summary |
|---|---|
| public void setCursor(Cursor cursor) | |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean b) Implements java. Doc from java. Enables or disables a component. Disabled components are usually grayed out and cannot be activated. | |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Implements java. Doc from java. Sets the font of this component. | |
| setForeground | back to summary |
|---|---|
| public void setForeground(Color c) Implements java. Doc from java. Sets the foreground color of this component. | |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean b) Implements java. Doc from java. Makes a component visible or invisible. | |
| setZOrder | back to summary |
|---|---|
| public void setZOrder(ComponentPeer above) Implements java. Lowers this component at the bottom of the above HW peer. If the above parameter is null then the method places this component at the top of the Z-order. | |
| show | back to summary |
|---|---|
| public void show() | |
| updateCursorImmediately | back to summary |
|---|---|
| public void updateCursorImmediately() Implements java. Doc from java. Updates the cursor of the component. | |
| updateGraphicsData | back to summary |
|---|---|
| public boolean updateGraphicsData(GraphicsConfiguration gc) Implements java. Doc from java. Updates internal data structures related to the component's GC. | |