com.incrediblesoft.redjey
Class ImageItem

java.lang.Object
  extended by com.incrediblesoft.redjey.Component
      extended by com.incrediblesoft.redjey.ImageItem

public class ImageItem
extends Component


Field Summary
 
Fields inherited from class com.incrediblesoft.redjey.Component
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT
 
Constructor Summary
ImageItem(CustomImage image)
           
 
Method Summary
 java.lang.String getName()
          This method is used to retrieve the appropriate style set from a hashtable of styles
 boolean isFocusable()
           
 void setImage(CustomImage image)
           
 void tick(int dt)
          Called every tick.
 
Methods inherited from class com.incrediblesoft.redjey.Component
addActionListener, addMouseListener, dispatchEvent, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, paint, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setState, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageItem

public ImageItem(CustomImage image)
Method Detail

getName

public java.lang.String getName()
Description copied from class: Component
This method is used to retrieve the appropriate style set from a hashtable of styles

Specified by:
getName in class Component
Returns:
Name of component

setImage

public void setImage(CustomImage image)

isFocusable

public boolean isFocusable()

tick

public void tick(int dt)
Description copied from class: Component
Called every tick. Subclasses must override this method to do custom actions that depend on real time.

Overrides:
tick in class Component
Parameters:
dt - time in milliseconds