Package ilcd
Class Control

Public Method setRelativeCursorPosition

static void setRelativeCursorPosition(int xInc, int yInc)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
xInc between the positive and negative boundary values
see below
amount to increment or decrement the horizontal cursor position
yInc between the positive and negative boundary values
see below
amount to increment or decrement the vertical cursor position

positive boundary value of xInc = (display width) - (current cursor position in x direction) - 1
negative boundary value of xInc = -(current cursor position in x direction)

positive boundary value of yInc = (display height) - (current cursor position in y direction) - 1
negative boundary value of yInc = -(current cursor position in y direction)

Moves the cursor relative to the current position by the values xInc and yInc.

Note

Example

Control.setRelativeCursorPosition(-10, 20);

Moves the cursor 10 pixel to the left and 20 pixel down.

See also:

Control.setCursorPosition(int, int)
Control.getCursorPosition()
Control.setColumnAddress(int)
Control.setRowAddress(int)
Control.getCursorPosition()
Draw.setClearPixel(boolean)
Graphic.displayLocalGraphic(int)
Graphic.loadAnimatedGraphics(int, int)
Touch.createDefineTouchField(int, int)
Draw.drawDot(int)
Draw.drawLine(int, int)
Draw.drawRectangle(int, int, int)
Draw.drawCircle(int)
Draw.drawStyledCircle(int, int)
Draw.drawEllipse(int, int, int)
Draw.writeText(String)
Memory.saveCursorAttributesToMemory(int)
Control.defineViewport(int, int, int, int)
Draw.eraseDisplayArea(int, int)
Draw.writeScanLine(int, short[])