org.apache.pivot.wtk.skin.terra
Class TerraRadioButtonSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ButtonSkin
org.apache.pivot.wtk.skin.RadioButtonSkin
org.apache.pivot.wtk.skin.terra.TerraRadioButtonSkin
- All Implemented Interfaces:
- ButtonListener, ButtonPressListener, ButtonStateListener, ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ComponentTooltipListener, ConstrainedVisual, Skin, Visual
public class TerraRadioButtonSkin
- extends RadioButtonSkin
Terra radio button skin.
TODO Button alignment style (vertical only).
Methods inherited from class org.apache.pivot.wtk.skin.ButtonSkin |
actionChanged, buttonDataChanged, buttonGroupChanged, buttonPressed, dataRendererChanged, enabledChanged, focusedChanged, install, layout, mouseOut, mouseOver, stateChanged, toggleButtonChanged, triStateChanged |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, isFocusable, keyPressed, keyTyped, locationChanged, menuHandlerChanged, mouseDown, mouseMove, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerraRadioButtonSkin
public TerraRadioButtonSkin()
getPreferredWidth
public int getPreferredWidth(int height)
- Description copied from interface:
ConstrainedVisual
- Returns the visual's preferred width given the provided height
constraint.
- Parameters:
height
- The height by which to constrain the preferred width, or -1
for no constraint.
getPreferredHeight
public int getPreferredHeight(int width)
- Description copied from interface:
ConstrainedVisual
- Returns the visual's preferred height given the provided width
constraint.
- Parameters:
width
- The width by which to constrain the preferred height, or -1
for no constraint.
getPreferredSize
public Dimensions getPreferredSize()
- Description copied from interface:
ConstrainedVisual
- Returns the visual's unconstrained preferred size.
- Specified by:
getPreferredSize
in interface ConstrainedVisual
- Overrides:
getPreferredSize
in class ComponentSkin
getBaseline
public int getBaseline(int width,
int height)
- Description copied from interface:
ConstrainedVisual
- Returns the baseline for a given width and height.
- Specified by:
getBaseline
in interface ConstrainedVisual
- Overrides:
getBaseline
in class ComponentSkin
- Returns:
- The baseline relative to the origin of this visual, or -1 if
this visual does not have a baseline.
paint
public void paint(Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Parameters:
graphics
- The graphics context in which to paint the visual.
getFont
public Font getFont()
setFont
public void setFont(Font font)
setFont
public final void setFont(String font)
setFont
public final void setFont(Dictionary<String,?> font)
getColor
public Color getColor()
setColor
public void setColor(Color color)
setColor
public final void setColor(String color)
getDisabledColor
public Color getDisabledColor()
setDisabledColor
public void setDisabledColor(Color disabledColor)
setDisabledColor
public final void setDisabledColor(String disabledColor)
getSpacing
public int getSpacing()
setSpacing
public void setSpacing(int spacing)
setSpacing
public final void setSpacing(Number spacing)