Class org.aswing.plaf.basic.BasicRadioButtonUI

Description

Basic RadioButton implementation. To implement a Diff RadioButton UI, generally you should:

Method Index

new BasicRadioButtonUI()
createInstance(), getDefaultIcon(), getMinimumSize(), getPreferredSize(), paint()

Inherited from BasicButtonUI

Inherited from ComponentUI

Constructor Detail

BasicRadioButtonUI

public function BasicRadioButtonUI()

Method Detail

createInstance

static public function createInstance(c:Component):ComponentUI

getDefaultIcon

public function getDefaultIcon():Icon

paint

public function paint(c:Component, g:Graphics, r:Rectangle):Void

Description copied from ComponentUI

Notifies this UI delegate that it's time to paint the specified component. This method is invoked by Component when the specified component is being painted.

In general this method need be overridden by subclasses; all look-and-feel rendering code should reside in this method. And there is a default background paint method, you should call it in your overridden paint method.

Overrides

paint() in org.aswing.plaf.basic.BasicButtonUI

getPreferredSize

public function getPreferredSize(c:Component):Dimension

Description copied from ComponentUI

Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

Overrides

getPreferredSize() in org.aswing.plaf.basic.BasicButtonUI

getMinimumSize

public function getMinimumSize(c:Component):Dimension

Description copied from ComponentUI

Returns the specified component's minimum size appropriate for the look and feel. If null is returned, the minimum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides

getMinimumSize() in org.aswing.plaf.basic.BasicButtonUI