Package net.sf.fysix.leveleditor.tool.level.subtool.draw

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.DrawSettings


    }*/   

  public boolean propertyValueChanged(String propertyName, Object newValue, Object oldValue) {

    boolean updDS = false;
    DrawSettings dsCopy = new DrawSettings();
    readValues(dsCopy);

    if (propertyName.equals(propShowVerticesEnable.getName())) {
      if (newValue instanceof Boolean) {
        dsCopy.setEnableShowVertices(((Boolean)newValue).booleanValue());
        updDS = true;
      }
    }
    else if (propertyName.equals(propAutocompleteEnable.getName())) {
      if (newValue instanceof Boolean) {
        dsCopy.setEnableAutocomplete(((Boolean)newValue).booleanValue());
        propAutocompleteVertices.setEditable(dsCopy.isEnableAutocomplete());
        updDS = true;
      }
    }
    else if (propertyName.equals(propFillShape.getName())) {
      if (newValue instanceof Boolean) {
        dsCopy.setEnableFillShape(((Boolean)newValue).booleanValue());
        updDS = true;
      }
    }
    else if (propertyName.equals(propAutocompleteVertices.getName())) {
      if (newValue instanceof String) {
        dsCopy.setNrOfAutocompleteVertices(Integer.parseInt(newValue.toString()));
        updDS = true;
      }
    }
    else if (propertyName.equals(propTransparens.getName())) {
      if (newValue instanceof String) {
        dsCopy.setFillTransparency(Integer.parseInt(newValue.toString()));
        updDS = true;
      }
    }
    else if (propertyName.equals(propLineStroke.getName())) {
      if (newValue instanceof String) {
        dsCopy.setLineStroke(Float.parseFloat(newValue.toString()));
        updDS = true;
      }
    }
    else if (propertyName.equals(propAttachToGrid.getName())) {
      if (newValue instanceof Boolean) {
        dsCopy.setAttachToGrid(((Boolean)newValue).booleanValue());
        updDS = true;
      }
    }

    if(updDS){
View Full Code Here


  {
    ShapeHandler sh = new ShapeHandler();
    sh.loadShapes(new File("config\\level.xml"));
    List<ShapeData> shapes = sh.getShapes();
    for (ShapeData sd : Collections.unmodifiableCollection(shapes)){
      ShapeMapObject smo = new ShapeMapObject(new DrawSettings()); // TODO: Attach draw settings to GENEREAL (DrawTool)
      for(int i=0;i<sd.x.length;i++){
        WorldPos vertex = new WorldPos(sd.x[i], sd.y[i]);
        smo.addVertex(vertex);
        smo.setShapeId(sd.name);
      }
View Full Code Here

  {
    ShapeHandler sh = new ShapeHandler();
    sh.loadShapes(new File("config\\level.xml"));
    List<ShapeData> shapes = sh.getShapes();
    for (ShapeData sd : Collections.unmodifiableCollection(shapes)){
      ShapeMapObject smo = new ShapeMapObject(new DrawSettings()); // TODO: Attach draw settings to GENEREAL (DrawTool)
      for(int i=0;i<sd.x.length;i++){
        WorldPos vertex = new WorldPos(sd.x[i], sd.y[i]);
        smo.addVertex(vertex);
        smo.setShapeId(sd.name);
      }
View Full Code Here

TOP

Related Classes of net.sf.fysix.leveleditor.tool.level.subtool.draw.DrawSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.