Enum Constant and Description |
---|
DYNAMIC_ZOOM
Interactive Dynamic zoom
|
HORIZONTAL_ZOOM
Zoom via 'cursors' for horizontal start/end position
|
NONE
Disarm zoom behavior
|
PANNING
Zoom 'out' around mouse pointer
|
RUBBERBAND_ZOOM
Interactive Rubberband zoom
|
VERTICAL_ZOOM
Zoom via 'cursors' for vertical start/end position
|
ZOOM_IN
Zoom 'in' around mouse pointer
|
ZOOM_IN_HORIZONTALLY
Zoom 'in' around mouse pointer along horizontal axis
|
ZOOM_IN_VERTICALLY
Zoom 'in' around mouse pointer along vertical axis
|
ZOOM_OUT
Zoom 'out' around mouse pointer
|
ZOOM_OUT_HORIZONTALLY
Zoom 'out' around mouse pointer along horizontal axis
|
ZOOM_OUT_VERTICALLY
Zoom 'out' around mouse pointer along vertical axes
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Cursor |
getCursor() |
org.eclipse.swt.graphics.Cursor |
getCursorOnAxis(boolean horizontalAxis) |
java.lang.String |
getDescription() |
org.eclipse.swt.graphics.Image |
getIconImage() |
java.lang.String |
getId()
Return the unique id for the enum.
|
boolean |
isZoom()
Some of the so-called ZoomTypes are not actually Zooms.
|
void |
setCursor(org.eclipse.swt.graphics.Cursor cursor)
Deprecated.
see Javadocs above for details
|
java.lang.String |
toString() |
boolean |
useWithFlags(int flags)
Check if this zoom mode should be offered when a graph was created with
given flags
|
static ZoomType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZoomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZoomType RUBBERBAND_ZOOM
public static final ZoomType DYNAMIC_ZOOM
public static final ZoomType HORIZONTAL_ZOOM
public static final ZoomType VERTICAL_ZOOM
public static final ZoomType ZOOM_IN
public static final ZoomType ZOOM_OUT
public static final ZoomType ZOOM_IN_HORIZONTALLY
public static final ZoomType ZOOM_OUT_HORIZONTALLY
public static final ZoomType ZOOM_IN_VERTICALLY
public static final ZoomType ZOOM_OUT_VERTICALLY
public static final ZoomType PANNING
public static final ZoomType NONE
public static ZoomType[] values()
for (ZoomType c : ZoomType.values()) System.out.println(c);
public static ZoomType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic org.eclipse.swt.graphics.Image getIconImage()
public java.lang.String getDescription()
public org.eclipse.swt.graphics.Cursor getCursor()
public org.eclipse.swt.graphics.Cursor getCursorOnAxis(boolean horizontalAxis)
public boolean useWithFlags(int flags)
flags
- Flags of the XYGraph tool bartrue
if this zoom type appliespublic java.lang.String toString()
toString
in class java.lang.Enum<ZoomType>
public java.lang.String getId()
@Deprecated public void setCursor(org.eclipse.swt.graphics.Cursor cursor)
Override the cursor for the given zoom type.
Overriding the cursor is a normal operation for the NONE
cursor
as when the cursor is NONE it is deactivated, so external control has an
effect on the cursor.
When set to non-null
value, getCursor()
and
getCursorOnAxis(boolean)
will return the overridden cursor.
cursor
- to use when overridden