Пример #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);
 }