Returns: true if this component is lightweight reshape public void reshape int x, int y, int w, int h Moves and resizes this component. Otherwise, one ancestor has a buffer currently in use and children should not use a buffer to paint. Returns: true if preferredSize is non- null, false otherwise Since: 1. See Also: Show buffered operations in a seperate Frame. Subclasses can just override this method, as always. When this method is invoked, the chain of parent components is set up with KeyboardAction event listeners. Otherwise we just configure the specified graphics object's foreground and font.
If set to true, all the drawing from this component will be done in an offscreen painting buffer. If true is returned, the request will succeed unless it is vetoed, or an extraordinary event, such as disposal of the Component's peer, occurs before the request can be granted by the native windowing system. Graphics getClip getClip public getClip Suppressed: Overrides Graphics. Overrides: in class setDebugGraphicsOptions public void setDebugGraphicsOptions int debugOptions Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. For example, you should not alter the clip Rectangle or modify the transform.
Returns: all of the component's AncestorListeners or an empty array if no ancestor listeners are currently registered Since: 1. Methods in with parameters of type StyleContext. Overrides: in class drawArc public void drawArc int x, int y, int width, int height, int startAngle, int arcAngle Overrides Graphics. A PropertyChangeEvent will get fired in response to setting a bound property, e. This component must be displayable, visible, and focusable for the request to be granted. Get the Font of this object. Overrides most methods from Graphics.
Most applications will never need to call this method. Overrides: in class Parameters: rv - the return value, modified to the component's location Returns: rv getX public int getX Returns the current x coordinate of the component's origin. Overrides: in class fillArc public void fillArc int x, int y, int width, int height, int startAngle, int arcAngle Overrides Graphics. Overrides: in class Parameters: data - the array of characters to be drawn offset - the start offset in the data length - the number of characters to be drawn x - the x coordinate of the baseline of the text y - the y coordinate of the baseline of the text See Also: java. Get the Font of this object. The passed-in Insets object will be reused if possible.
This method will migrate to java. Graphics getFontMetrics translate public void translate int x, int y Suppressed: Overrides Graphics. . This method cannot be used to set the focus owner to no Component at all. Returns the input verifier for this component. This method will migrate to java. DebugGraphics objects are rarely created by hand.
Provides classes and interfaces that deal with editable and noneditable text components. Parameters: text - The string to display. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Use this method get a Graphics object and then invoke oeprations on that object to draw on the component. See Also: setFlashCount public static void setFlashCount int flashCount Sets the number of times that drawing operations will flash.
See in The Java Tutorial for more information. Gets the font used for this menu component. Returns: true if the image is completely loaded; false otherwise. Specified by: in class Parameters: img - the specified image to be drawn. Specified by: in class Parameters: x - the x coordinate of the new clip rectangle.
Override this if you wish to print the children differently than painting. If shouldUseBuffer is true, no component ancestor has a buffer and the component children can use a buffer if they have one. Overrides most methods from Graphics. See Also: drawLine public void drawLine int x1, int y1, int x2, int y2 Overrides Graphics. This removes a PropertyChangeListener that was registered for all properties.
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. Where the impact lies, however, is in constructing and showing a Swing application. In other words after this method is called, the first validateRoot if any found when walking up the containment hierarchy of this component will be validated. Note that the component need not be an immediate descendent of the window -- it can be anywhere in the window's containment hierarchy. See Also: setVerifyInputWhenFocusTarget public void setVerifyInputWhenFocusTarget boolean verifyInputWhenFocusTarget Sets the value to indicate whether input verifier for the current focus owner will be called before this component requests focus. This method is preferable to writing component. Specified by: in class See Also: java.