public class OMAction extends java.lang.Object implements OMGraphicConstants
Modifier and Type | Field and Description |
---|---|
protected int |
value
The internal value of the action, representing 0 or more
actions to be performed on a graphic, depending on the bits
set.
|
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
OMAction()
Create an OMAction that represents no action (No bits are set).
|
OMAction(int value)
Create an OMAction with the provided actions.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
boolean |
isMask(int mask)
Return whether a mask value is set in the internal value.
|
static boolean |
isMask(int value,
int mask)
Check to see if a mask bit is set in an integer.
|
static void |
main(java.lang.String[] argv) |
int |
setMask(int mask)
Set a particular mask bit in the internal value.
|
static int |
setMask(int value,
int mask)
Set a particular mask bit in the provided integer.
|
void |
setValue(int value) |
java.lang.String |
toString()
Provide a String that describes what the Action is all about.
|
int |
unsetMask(int mask)
Unset a particular mask bit in the internal value.
|
static int |
unsetMask(int value,
int mask)
Unset a particular mask bit in the provided integer.
|
protected int value
public OMAction()
public OMAction(int value)
public void setValue(int value)
public int getValue()
public int setMask(int mask)
mask
- an OMGraphicConstant mask constant.public int unsetMask(int mask)
mask
- an OMGraphicConstant mask constant.public boolean isMask(int mask)
mask
- an OMGraphicConstant mask constant.public static int setMask(int value, int mask)
value
- the integer to set the value(bit) on.mask
- an OMGraphicConstant mask constant.public static int unsetMask(int value, int mask)
value
- the integer to unset the value(bit) on.mask
- an OMGraphicConstant mask constant.public static boolean isMask(int value, int mask)
value
- the integer to check for the value(bit) on.mask
- an OMGraphicConstant mask constant.public java.lang.String toString()
toString
in class java.lang.Object
public static final void main(java.lang.String[] argv)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details