org.netbeans.microedition.svg
Class SVGLabel

java.lang.Object
  extended by org.netbeans.microedition.svg.SVGComponent
      extended by 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>
 


Field Summary
 
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
 
Constructor Summary
SVGLabel(SVGForm form, java.lang.String elemId)
           
SVGLabel(SVGForm form, org.w3c.dom.svg.SVGLocatableElement element)
           
 
Method Summary
 SVGComponent getLabelFor()
           
 java.lang.String getText()
           
 boolean isFocusable()
           
 void setLabelFor(SVGComponent component)
           
 void setText(java.lang.String text)
           
 
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
 

Constructor Detail

SVGLabel

public SVGLabel(SVGForm form,
                java.lang.String elemId)

SVGLabel

public SVGLabel(SVGForm form,
                org.w3c.dom.svg.SVGLocatableElement element)
Method Detail

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