org.netbeans.microedition.svg
Class SVGLabel
java.lang.Object
org.netbeans.microedition.svg.SVGComponent
org.netbeans.microedition.svg.SVGLabel
- All Implemented Interfaces:
- SVGForm.FocusListener
public class SVGLabel
- extends SVGComponent
Suggested SVG snippet :
<g id="label" transform="translate(130,200)">
<text display="none">type=label</text>
<g>
<text id="label_text" x="5" y="5" stroke="black" font-size="15" font-family="SunSansSemiBold">
Label</text>
<text display="none">type=text</text>
</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, getInputHandler, getLabel, getNestedElementByMeta, getProperty, removeActionListener, requestFocus, setFocusable, setProperty, setTraitSafely, setTraitSafely |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVGLabel
public SVGLabel(SVGForm form,
java.lang.String elemId)
SVGLabel
public SVGLabel(SVGForm form,
org.w3c.dom.svg.SVGLocatableElement element)
setLabelFor
public void setLabelFor(SVGComponent component)
getLabelFor
public SVGComponent getLabelFor()
setText
public void setText(java.lang.String text)
getText
public java.lang.String getText()
isFocusable
public boolean isFocusable()
- Overrides:
isFocusable
in class SVGComponent