コード例 #1
0
 /**
  * Creates a new RobotComponent.
  *
  * @param name The name of the new component.
  * @param type The type of the new component (like in the {@link Palette}).
  * @param robot The RobotTree that this will be created in.
  */
 public RobotComponent(String name, String type, RobotTree robot) {
   this(name, Palette.getInstance().getItem(type), robot);
 }
コード例 #2
0
 public void setBaseType(String baseType) {
   this.base = Palette.getInstance().getItem(baseType);
 }