/** * 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(); }
private void setType(Type type) { value |= ((type.getValue() << TYPE_SHIFT) & TYPE_MASK); }
public static Type parse(int value) { for (Type t : values()) if (t.getValue() == value) return t; throw new IllegalArgumentException("invalid rr type: " + value); }
static { for (Type t : EnumSet.allOf(Type.class)) lookup.put(t.getValue(), t); }