| java.lang.Object com.jeta.forms.gui.effects.SolidPainter
SolidPainter | public class SolidPainter implements Painter(Code) | | This class is an implementation of a painter that renders a solid color on a
part of a canvas or component. Keep in mind that the color is constant only
for the current look and feel. If the look and feel changes, the color may
change depending settings specified by the user in the designer.
author: Jeff Tassin |
Constructor Summary | |
public | SolidPainter() Creates a SolidPainter instance with no color attributes. | public | SolidPainter(SolidProperty prop) Creates a SolidPainter instance with the specified color
attributes. |
SolidPainter | public SolidPainter()(Code) | | Creates a SolidPainter instance with no color attributes.
|
SolidPainter | public SolidPainter(SolidProperty prop)(Code) | | Creates a SolidPainter instance with the specified color
attributes.
|
paint | public void paint(Component c, Graphics g, Rectangle rect)(Code) | | Painter Implementation. Fills a rectangle with a solid color.
Parameters: g - the graphics context Parameters: rect - the rectangle that defines the region to paint. Note, thatthis is different than the clipping rectangle. |
setSolidProperty | public void setSolidProperty(SolidProperty prop)(Code) | | Sets the color attributes for this painter
Parameters: prop - the color properties to set for this painter. |
|
|