コード例 #1
0
  /**
   * Create a PositionableLabel, then add to a target JLayeredPane
   *
   * @param element Top level Element to unpack.
   * @param o LayoutEditor as an Object
   */
  public void load(Element element, Object o) {

    SignalHeadIconXml tmp = new SignalHeadIconXml();
    tmp.load(element, o);
    // create the objects
  }
コード例 #2
0
 /**
  * Default implementation for storing the contents of a LayoutSignalHeadIcon
  *
  * @param o Object to store, of type LayoutSignalHeadIcon
  * @return Element containing the complete info
  */
 public Element store(Object o) {
   SignalHeadIconXml tmp = new SignalHeadIconXml();
   return tmp.store(o);
 }