com.sas.visuals
Class RadioButtonIcon

com.sas.visuals.RadioButtonIcon
All Implemented Interfaces:
com.sas.visuals.IconInterface, com.sas.visuals.PainterInterface, java.io.Serializable

public class RadioButtonIcon
implements com.sas.visuals.IconInterface

RadioButtonIcon is an implementation of the IconInterface that paints a circular radioButton image. If the component passed in to the paint is a BaseButton, it will be painted based on its state.

See Also:
RadioButton, Serialized Form

Constructor Summary
RadioButtonIcon()
           
 
Method Summary
 java.awt.Insets getInsets()
          Get the insets of the RadioButtonIcon.
 java.awt.Dimension getPreferredSize()
          Get the preferred size of the RadioButtonIcon.
 void paint(java.awt.Component comp, java.awt.Graphics g, int x, int y, int width, int height)
          Paint the object using its current state.
 

Constructor Detail

RadioButtonIcon

public RadioButtonIcon()
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
Get the preferred size of the RadioButtonIcon.

Specified by:
getPreferredSize in interface com.sas.visuals.IconInterface
Returns:
the preferred size of the RadioButtonIcon
See Also:
IconInterface.getPreferredSize()

getInsets

public java.awt.Insets getInsets()
Get the insets of the RadioButtonIcon.

Specified by:
getInsets in interface com.sas.visuals.PainterInterface
Returns:
the insets of the RadioButtonIcon
See Also:
PainterInterface.getInsets()

paint

public void paint(java.awt.Component comp,
                  java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height)
Paint the object using its current state.

Specified by:
paint in interface com.sas.visuals.PainterInterface
Parameters:
comp - the java.awt.Component to paint on
g - the graphics context to use for painting
x - the x coordinate
y - the y coordinate
width - the width
height - the height
See Also:
PainterInterface.paint(java.awt.Component, java.awt.Graphics, int, int, int, int)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.