org.apache.pivot.wtk.skin.terra
Class TerraMeterSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.terra.TerraMeterSkin
- All Implemented Interfaces:
- org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.MeterListener, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.Visual
public class TerraMeterSkin
- extends org.apache.pivot.wtk.skin.ComponentSkin
- implements org.apache.pivot.wtk.MeterListener
Meter skin.
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.MeterListener |
org.apache.pivot.wtk.MeterListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
org.apache.pivot.wtk.ComponentListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
org.apache.pivot.wtk.ComponentStateListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
org.apache.pivot.wtk.ComponentMouseListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter |
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
org.apache.pivot.wtk.ComponentKeyListener.Adapter |
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, isOpaque, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, 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 |
TerraMeterSkin
public TerraMeterSkin()
install
public void install(org.apache.pivot.wtk.Component component)
- Specified by:
install in interface org.apache.pivot.wtk.Skin- Overrides:
install in class org.apache.pivot.wtk.skin.ComponentSkin
isFocusable
public boolean isFocusable()
- Specified by:
isFocusable in interface org.apache.pivot.wtk.Skin- Overrides:
isFocusable in class org.apache.pivot.wtk.skin.ComponentSkin
getPreferredWidth
public int getPreferredWidth(int height)
- Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual
getPreferredHeight
public int getPreferredHeight(int width)
- Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual
getPreferredSize
public org.apache.pivot.wtk.Dimensions getPreferredSize()
- Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin
getBaseline
public int getBaseline(int width,
int height)
- Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual- Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin
layout
public void layout()
- Specified by:
layout in interface org.apache.pivot.wtk.Skin
paint
public void paint(Graphics2D graphics)
- Specified by:
paint in interface org.apache.pivot.wtk.Visual
getColor
public Color getColor()
setColor
public void setColor(Color color)
setColor
public final void setColor(String color)
getGridColor
public Color getGridColor()
setGridColor
public void setGridColor(Color gridColor)
setGridColor
public final void setGridColor(String gridColor)
getTextColor
public Color getTextColor()
setTextColor
public void setTextColor(Color color)
setTextColor
public final void setTextColor(String color)
getTextFillColor
public Color getTextFillColor()
setTextFillColor
public void setTextFillColor(Color color)
setTextFillColor
public final void setTextFillColor(String color)
getGridFrequency
public float getGridFrequency()
setGridFrequency
public void setGridFrequency(float gridFrequency)
setGridFrequency
public final void setGridFrequency(Number gridFrequency)
getFont
public Font getFont()
setFont
public void setFont(Font font)
setFont
public final void setFont(String font)
setFont
public final void setFont(org.apache.pivot.collections.Dictionary<String,?> font)
percentageChanged
public void percentageChanged(org.apache.pivot.wtk.Meter meter,
double previousPercentage)
- Listener for meter percentage changes.
- Specified by:
percentageChanged in interface org.apache.pivot.wtk.MeterListener
- Parameters:
meter - The source of the event.previousPercentage - The previous percentage value.
textChanged
public void textChanged(org.apache.pivot.wtk.Meter meter,
String previousText)
- Listener for meter text changes.
- Specified by:
textChanged in interface org.apache.pivot.wtk.MeterListener
- Parameters:
meter - The source of the event.previousText - The previous text value.
orientationChanged
public void orientationChanged(org.apache.pivot.wtk.Meter meter)
- Listener for meter orientation changes.
- Specified by:
orientationChanged in interface org.apache.pivot.wtk.MeterListener
- Parameters:
meter - The source of the event.