pivot.wtk.skin.terra
Class TerraCalendarButtonSkin
java.lang.Object
pivot.wtk.skin.ComponentSkin
pivot.wtk.skin.ButtonSkin
pivot.wtk.skin.CalendarButtonSkin
pivot.wtk.skin.terra.TerraCalendarButtonSkin
- All Implemented Interfaces:
- ButtonListener, ButtonPressListener, ButtonStateListener, CalendarButtonListener, CalendarButtonSelectionListener, ComponentKeyListener, ComponentLayoutListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ConstrainedVisual, Skin, Visual
public class TerraCalendarButtonSkin
- extends CalendarButtonSkin
Terra calendar button skin.
TODO Calendar pass-through styles
- Author:
- gbrown
Methods inherited from class pivot.wtk.skin.CalendarButtonSkin |
buttonPressed, enabledChanged, focusedChanged, install, keyPressed, keyReleased, localeChanged, mouseClick, mouseDown, mouseOut, mouseUp, selectedDateChanged, selectedDateKeyChanged, uninstall |
Methods inherited from class pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeColor, displayableChanged, getComponent, getHeight, getWidth, invalidateComponent, isFocusable, keyTyped, locationChanged, mouseMove, mouseWheel, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerraCalendarButtonSkin
public TerraCalendarButtonSkin()
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
layout
public void layout()
- Description copied from interface:
Skin
- If the component on which the skin is installed is a container, lays
out the container's children.
- Specified by:
layout
in interface Skin
- Overrides:
layout
in class ButtonSkin
paint
public void paint(java.awt.Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Parameters:
graphics
- The graphics context in which to paint the visual.
getFont
public java.awt.Font getFont()
setFont
public void setFont(java.awt.Font font)
setFont
public final void setFont(java.lang.String font)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color color)
setColor
public final void setColor(java.lang.String color)
getDisabledColor
public java.awt.Color getDisabledColor()
setDisabledColor
public void setDisabledColor(java.awt.Color disabledColor)
setDisabledColor
public final void setDisabledColor(java.lang.String disabledColor)
getBackgroundColor
public java.awt.Color getBackgroundColor()
setBackgroundColor
public void setBackgroundColor(java.awt.Color backgroundColor)
setBackgroundColor
public final void setBackgroundColor(java.lang.String backgroundColor)
getDisabledBackgroundColor
public java.awt.Color getDisabledBackgroundColor()
setDisabledBackgroundColor
public void setDisabledBackgroundColor(java.awt.Color disabledBackgroundColor)
setDisabledBackgroundColor
public final void setDisabledBackgroundColor(java.lang.String disabledBackgroundColor)
getBorderColor
public java.awt.Color getBorderColor()
setBorderColor
public void setBorderColor(java.awt.Color borderColor)
setBorderColor
public final void setBorderColor(java.lang.String borderColor)
getDisabledBorderColor
public java.awt.Color getDisabledBorderColor()
setDisabledBorderColor
public void setDisabledBorderColor(java.awt.Color disabledBorderColor)
setDisabledBorderColor
public final void setDisabledBorderColor(java.lang.String disabledBorderColor)
getPadding
public Insets getPadding()
setPadding
public void setPadding(Insets padding)
setPadding
public final void setPadding(Dictionary<java.lang.String,?> padding)
setPadding
public final void setPadding(int padding)
setPadding
public final void setPadding(java.lang.Number padding)