org.netbeans.microedition.svg
Class SVGSlider
java.lang.Object
org.netbeans.microedition.svg.SVGComponent
org.netbeans.microedition.svg.SVGSlider
- All Implemented Interfaces:
- SVGForm.FocusListener
public class SVGSlider
- extends SVGComponent
Suggested svg snippet:
<g id="size_slider" transform="translate(20,110)">
<!-- Metadata information. Please don't edit. -->
<text display="none">type=slider</text>
<rect x="0" y="-10" rx="5" ry="5" width="200" height="30" fill="none" stroke="rgb(255,165,0)" stroke-width="2" visibility="hidden">
<set attributeName="visibility" attributeType="XML" begin="size_slider.focusin" fill="freeze" to="visible"/>
<set attributeName="visibility" attributeType="XML" begin="size_slider.focusout" fill="freeze" to="hidden"/>
</rect>
<g id="size_slider_rule" >
<text display="none">type=rule</text>
<rect x="10.0" y="1.0" width="180" height="4" fill="rgb(240,240,255)" stroke="black" stroke-width="1"/>
</g>
<g id="size_slider_knob" transform="translate(0,-5)">
<text display="none">type=knob</text>
<polygon transform="scale(0.2,0.2)" points="20,10 80,10 80,40 50,70 20,40"
fill="rgb(220,220,255)" stroke="black" stroke-width="1"/>
</g>
</g>
Fields inherited from class org.netbeans.microedition.svg.SVGComponent |
actionListeners, DASH, ENABLED, form, LABEL_FOR, REF, SVG_NS, TR_VALUE_HIDDEN, TR_VALUE_INHERIT, TR_VALUE_VISIBLE, TRAIT_FILL, TRAIT_TEXT, TRAIT_VISIBILITY, TRAIT_X, TRAIT_Y, TYPE, wrapperElement |
Methods inherited from class org.netbeans.microedition.svg.SVGComponent |
addActionListener, fireActionPerformed, focusGained, focusLost, getElement, getElementById, getElementByMeta, getElementByMeta, getForm, getLabel, getNestedElementByMeta, getProperty, isFocusable, removeActionListener, requestFocus, setFocusable, setProperty, setTraitSafely, setTraitSafely |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVGSlider
public SVGSlider(SVGForm form,
java.lang.String elemId)
SVGSlider
public SVGSlider(int min,
int max,
SVGForm form,
java.lang.String elemId)
getValue
public int getValue()
getInputHandler
public InputHandler getInputHandler()
- Overrides:
getInputHandler
in class SVGComponent
setValue
public void setValue(int value)
setMin
public void setMin(int min)
setMax
public void setMax(int max)
getMin
public int getMin()
getMax
public int getMax()