Package com.scriptographer

Examples of com.scriptographer.ScriptographerException


      // use this.name, instead of name, because it was modified
      // in the constructor above
      handle = nativeCreate(name, near.name, 0, options);

      if (handle == 0)
        throw new ScriptographerException("Unable to create MenuGroup.");
    } else {
      setOptions(options);
    }
    putGroup(this);
  }
View Full Code Here


      } else {
        handle = nativeCreate(this.name, null, parent.handle, options);
      }
 
      if (handle == 0)
        throw new ScriptographerException("Unable to create MenuGroup.");
    } else {
      setOptions(options);
    }
    putGroup(this);
  }
View Full Code Here

    // if no item has been taken over, create a new one:
    if (this.handle == 0)
      this.handle = nativeCreate(name, name, group.name, options);

    if (this.handle == 0)
      throw new ScriptographerException("Unable to create MenuItem.");

    items.put(this.handle, this);
  }
View Full Code Here

    script = ScriptographerEngine.getCurrentScript();
    this.period = period;
    this.periodic = periodic;
    handle = nativeCreate(period);
    if (handle == 0)
      throw new ScriptographerException("Unable to create Timer.");
    timers.put(handle, this);
  }
View Full Code Here

      // Call onResize
      try {
        onResize(deltaX, deltaY);
      } catch (Exception e) {
        // TODO: deal with Exception...
        throw new ScriptographerException(e);
      }
    }
  }
View Full Code Here

    }
    if (sizeChanged) {
      try {
        onResize(deltaX, deltaY);
      } catch (Exception e) {
        throw new ScriptographerException(e);
      }
    }
  }
View Full Code Here

  protected AWTContainer getAWTContainer(boolean create) {
    java.awt.Component component = getAWTComponent(create);
    if (component == null && !create)
      return null;
    if (!(component instanceof AWTContainer))
      throw new ScriptographerException("Component does not support sub components.");
    return (AWTContainer) component;
  }
View Full Code Here

   * @param list
   * @param index
   */
  public ListEntry(ListItem list, int index) {
    if (list instanceof HierarchyListBox && !(this instanceof HierarchyListEntry))
      throw new ScriptographerException(
          "Use HierarchyListEntry objects for HierarchyListBox");
    handle = nativeCreate(list, index, list.getUniqueId());
    if (handle == 0)
      throw new ScriptographerException("Unable to create list entry.");
    this.list = list;
  }
View Full Code Here

          groupTool != null ? groupTool.handle : 0,
          toolsetTool != null ? toolsetTool.handle : 0);
    }

    if (handle == 0)
      throw new ScriptographerException("Unable to create Tool.");

    reset();

    tools.put(handle, this);
  }
View Full Code Here

        profile = ICC_Profile.getInstance(
            Color.class.getClassLoader().getResourceAsStream(
                "com/scriptographer/cmm/"
                + model.name().toLowerCase() + ".icc"));
      } catch (IOException e) {
        throw new ScriptographerException(e);
      }
    }
    return profile;
  }
View Full Code Here

TOP

Related Classes of com.scriptographer.ScriptographerException

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.