Package ilcd

Class Graphic

extends Object

General Information About Animated Graphics

All graphics - including the animated ones - are loaded into the Flash memory of the iLCD or stored on a MicroSD card via iLCD Manager XEJoC Manager. Although there can be an unlimited number of animated graphics, a maximum of 8 animated graphics can be animated at the same time on a LCD screen. While animated graphics are shown on the screen, any other method like drawing text or graphics to any cursor position can be carried out, as the iLCD's animation engine runs in the background of the iLCD controllerJoC's firmware. Scrolling the screen while animations are active can be done, but will cause unwanted effects, as the position of animated graphics are not changed via the scroll screen methods.

When working with animated graphics, the first thing to do is to load an animated graphic to one of the 8 animation controls (referred to as anim_loc in the following methods). All other animation related methods refer to the index of the animation control regardless of which animated graphic is loaded into it.

Please note that the single frames of an animated graphic may contain areas of the image, which are smaller in width and/or height than the complete image. This is exactly how animated GIFs work (iLCD Manager XEJoC Manager imports animated GIFs and takes care about the frames' size and position). So setting a certain frame number via the Graphic.stopAnimationAndSetFrameNumber(int, int) method may cause surprising effects when one does not keep in mind that only the (smaller) frame contents of the selected frame will be drawn, and not the whole image which is normally created by the sequence of consecutive frames.

Note

_INSERT_CONSTRUCTOR_ENTRY_HERE_

Public Methods

Methods inherited from java.lang.Object

_INSERT_INHERITED_METHOD_ENTRY_HERE_

Public Fields

  • static final byte MOVE_ANIM_AUTO
  • static final byte MOVE_ANIM_BACKWARD
  • static final byte MOVE_ANIM_FORWARD

_INSERT_FIELDS_ENTRY_HERE_