gr.bluevibe.fire.components
Class Movie

java.lang.Object
  extended bygr.bluevibe.fire.components.Component
      extended bygr.bluevibe.fire.components.Movie

public class Movie
extends Component


Constructor Summary
Movie()
           
 
Method Summary
 void addActor(int id, javax.microedition.lcdui.Image img, int[][] steps, int startX, int startY, int startTick, int endTick, boolean loop)
          Adds an image (actor) that will be presented on the screen using the steps animation.
 boolean clock()
          Animated components receive clock events in order to update their animation.
 int getBgColor()
           
 javax.microedition.lcdui.Image getBgImage()
           
 int getBgImageHpos()
           
 int getBgImageVpos()
           
 int getStepX()
          Get the stepX in a percendage of the Movie width.
 int getStepY()
          Get the stepY in a percendage of the Movie height.
 int getTimelineLength()
           
 boolean isAnimated()
          If a componets states that it is animated, it will receive periodically clock events in order to update its animation.
 boolean isBorder()
           
 boolean isCompleted()
           
 boolean isLoopTimeline()
           
 void paint(javax.microedition.lcdui.Graphics g)
          Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).
 gr.bluevibe.fire.components.Movie.Actor removeActor(int pos)
          Removes the actor with the given id, from the internal map of this banner.
 void setBgColor(int bgColor)
           
 void setBgImage(javax.microedition.lcdui.Image bgImage, int vpos, int hpos)
           
 void setBorder(boolean border)
           
 void setLoopTimeline(boolean loopTimeline)
           
 void setStepX(int stepX)
          Set the stepX.
 void setStepY(int stepY)
          Set the stepY.
 void setTimelineLength(int timelineLength)
           
 void validate()
          A validate event requests from the component to recalculate its internal properties suck as width/height etc.
 
Methods inherited from class gr.bluevibe.fire.components.Component
addCommand, equals, fireValidateEvent, generateEvent, getHeight, getMinHeight, getMinWidth, getWidth, isSelected, isTraversable, keyEvent, pointerEvent, setCommandListener, setContainerCurrent, setCurrent, setHeight, setMinHeight, setMinWidth, setSelected, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Movie

public Movie()
Method Detail

addActor

public void addActor(int id,
                     javax.microedition.lcdui.Image img,
                     int[][] steps,
                     int startX,
                     int startY,
                     int startTick,
                     int endTick,
                     boolean loop)
              throws java.lang.Exception
Adds an image (actor) that will be presented on the screen using the steps animation.

Returns:
the index of the image in the internal vector of this banner. You may use this value to remove the image later.
Throws:
java.lang.Exception

removeActor

public gr.bluevibe.fire.components.Movie.Actor removeActor(int pos)
Removes the actor with the given id, from the internal map of this banner.

Parameters:
pos -
Returns:
true if the image is succesfully removed.

paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).

Overrides:
paint in class Component
Parameters:
g - the area on witch the component will draw it self.

clock

public boolean clock()
Description copied from class: Component
Animated components receive clock events in order to update their animation.

Overrides:
clock in class Component
Returns:
true if repainting is needed after the clock event.

isAnimated

public boolean isAnimated()
Description copied from class: Component
If a componets states that it is animated, it will receive periodically clock events in order to update its animation.

Overrides:
isAnimated in class Component
Returns:

validate

public void validate()
Description copied from class: Component
A validate event requests from the component to recalculate its internal properties suck as width/height etc.

Overrides:
validate in class Component

isLoopTimeline

public boolean isLoopTimeline()

setLoopTimeline

public void setLoopTimeline(boolean loopTimeline)

getBgColor

public int getBgColor()

setBgColor

public void setBgColor(int bgColor)

getTimelineLength

public int getTimelineLength()

setTimelineLength

public void setTimelineLength(int timelineLength)

getStepY

public int getStepY()
Get the stepY in a percendage of the Movie height.

Returns:

setStepY

public void setStepY(int stepY)
Set the stepY.

Parameters:
stepY - , as a percentage of the Movie height.

getStepX

public int getStepX()
Get the stepX in a percendage of the Movie width.

Returns:

setStepX

public void setStepX(int stepX)
Set the stepX.

Parameters:
stepX - , as a percentage of the Movie width.

getBgImage

public javax.microedition.lcdui.Image getBgImage()

setBgImage

public void setBgImage(javax.microedition.lcdui.Image bgImage,
                       int vpos,
                       int hpos)

getBgImageHpos

public int getBgImageHpos()

getBgImageVpos

public int getBgImageVpos()

isBorder

public boolean isBorder()

setBorder

public void setBorder(boolean border)

isCompleted

public boolean isCompleted()