示例#1
0
  /**
   * Set the type of the symbol using the specified {@link DragEventType} constant.
   *
   * <p>The default type is {@link DragEventType#CIRCLE}.
   *
   * @param type
   * @return
   */
  public Symbol type(Type type) {

    String value = type.getValue();
    String command = "this.type('" + value + "');";
    JSObject result = evalForJsObject(command);
    return new Symbol(webEngine, result);
  }
 public int getType() {
   return mType.getValue();
 }
示例#3
0
 private void setType(Type type) {
   value |= ((type.getValue() << TYPE_SHIFT) & TYPE_MASK);
 }
示例#4
0
 public static Type parse(int value) {
   for (Type t : values()) if (t.getValue() == value) return t;
   throw new IllegalArgumentException("invalid rr type: " + value);
 }
示例#5
0
 static {
   for (Type t : EnumSet.allOf(Type.class)) lookup.put(t.getValue(), t);
 }