< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/nimbus/LoweredBorder.java

Print this page

        

*** 64,80 **** /** * Actually performs the painting operation. Subclasses must implement this * method. The graphics object passed may represent the actual surface being * rendered to, or it may be an intermediate buffer. It has also been * pre-translated. Simply render the component as if it were located at 0, 0 ! * and had a width of <code>width</code> and a height of ! * <code>height</code>. For performance reasons, you may want to read the * clip from the Graphics2D object and only render within that space. * * @param g The Graphics2D surface to paint to * @param c The JComponent related to the drawing event. For example, ! * if the region being rendered is Button, then <code>c</code> * will be a JButton. If the region being drawn is * ScrollBarSlider, then the component will be JScrollBar. * This value may be null. * @param width The width of the region to paint. Note that in the case of * painting the foreground, this value may differ from --- 64,80 ---- /** * Actually performs the painting operation. Subclasses must implement this * method. The graphics object passed may represent the actual surface being * rendered to, or it may be an intermediate buffer. It has also been * pre-translated. Simply render the component as if it were located at 0, 0 ! * and had a width of {@code width} and a height of ! * {@code height}. For performance reasons, you may want to read the * clip from the Graphics2D object and only render within that space. * * @param g The Graphics2D surface to paint to * @param c The JComponent related to the drawing event. For example, ! * if the region being rendered is Button, then {@code c} * will be a JButton. If the region being drawn is * ScrollBarSlider, then the component will be JScrollBar. * This value may be null. * @param width The width of the region to paint. Note that in the case of * painting the foreground, this value may differ from
< prev index next >