org.apache.pivot.wtk.skin.terra
Class TerraAccordionSkin.PanelHeaderSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ButtonSkin
org.apache.pivot.wtk.skin.terra.TerraAccordionSkin.PanelHeaderSkin
- All Implemented Interfaces:
- ButtonListener, ButtonPressListener, ButtonStateListener, ComponentKeyListener, ComponentListener, ComponentMouseButtonListener, ComponentMouseListener, ComponentMouseWheelListener, ComponentStateListener, ComponentTooltipListener, ConstrainedVisual, Skin, Visual
- Enclosing class:
- TerraAccordionSkin
protected class TerraAccordionSkin.PanelHeaderSkin
- extends ButtonSkin
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, isOpaque, keyPressed, keyReleased, 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 |
TerraAccordionSkin.PanelHeaderSkin
protected TerraAccordionSkin.PanelHeaderSkin()
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.
isFocusable
public boolean isFocusable()
- Description copied from class:
ComponentSkin
- By default, skins are focusable.
- Specified by:
isFocusable
in interface Skin
- Overrides:
isFocusable
in class ComponentSkin
- Returns:
- true if this skin is focusable; false, otherwise.
mouseClick
public boolean mouseClick(Component component,
Mouse.Button button,
int x,
int y,
int count)
- Description copied from interface:
ComponentMouseButtonListener
- Called when a mouse button is clicked over a component.
- Specified by:
mouseClick
in interface ComponentMouseButtonListener
- Overrides:
mouseClick
in class ComponentSkin
- Returns:
- true to consume the event; false to allow it to
propagate.
getFont
public Font getFont()
getColor
public Color getColor()
getDisabledColor
public Color getDisabledColor()