com.nutiteq.controls
Class OnScreenZoomControls

java.lang.Object
  extended by com.nutiteq.controls.OnScreenZoomControls

public class OnScreenZoomControls
extends java.lang.Object

Zoom controls to be used on touch screen. Displays images on screen and also handles pressing on them.

Used image needs to have zoom images in one image - zoom in is first frame and zoom out second frame. Frames need to be the same size.


Field Summary
static int CONTROL_ZOOM_IN
           
static int CONTROL_ZOOM_OUT
           
static java.lang.String DEFAULT_ZOOM_IMAGE
          Default zoom controls image path for library.
 
Constructor Summary
OnScreenZoomControls(com.nutiteq.wrappers.Image controlsImage)
          Create zoom controls with given image.
 
Method Summary
 int getControlAction(int x, int y)
          Not part of public API
 void paint(com.nutiteq.wrappers.Graphics g, int displayWidth, int displayHeight)
          Not part of public API
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ZOOM_IMAGE

public static final java.lang.String DEFAULT_ZOOM_IMAGE
Default zoom controls image path for library.

See Also:
Constant Field Values

CONTROL_ZOOM_IN

public static final int CONTROL_ZOOM_IN
See Also:
Constant Field Values

CONTROL_ZOOM_OUT

public static final int CONTROL_ZOOM_OUT
See Also:
Constant Field Values
Constructor Detail

OnScreenZoomControls

public OnScreenZoomControls(com.nutiteq.wrappers.Image controlsImage)
Create zoom controls with given image.

Parameters:
controlsImage - image to be used
Method Detail

paint

public void paint(com.nutiteq.wrappers.Graphics g,
                  int displayWidth,
                  int displayHeight)
Not part of public API

Parameters:
g -
displayWidth -
displayHeight -

getControlAction

public int getControlAction(int x,
                            int y)
Not part of public API

Parameters:
x -
y -
Returns:
action code