synergynetframework.appsystem.contentsystem.jme.items
Class JMEBackgroundController

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEBackgroundController
All Implemented Interfaces:
IBackgroundControllerImplementation, IContentItemImplementation, IFrameImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEBackgroundController
extends JMEQuadContentItem
implements IBackgroundControllerImplementation

The Class JMEBackgroundController.


Constructor Summary
JMEBackgroundController(ContentItem contentItem)
          Instantiates a new JME background controller.
 
Method Summary
 void drawImage(java.net.URL imageResource)
          Draw image.
 void drawImage(java.net.URL imageResource, int x, int y, int width, int height)
          Draw image.
 void flushGraphics()
          Flush graphics.
 java.awt.Graphics2D getGraphicsContext()
          Gets the graphics context.
 java.util.HashMap<java.net.URL,ImageInfo> getImages()
          Gets the images.
 void init()
          Inits the.
 void removeAllImages()
          Removes the all images.
 void removeImage(java.net.URL imageResource)
          Removes the image.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setBackgroundRotateTranslateScalable(boolean isEnabled)
          Sets the background rotate translate scalable.
 void setHeight(int height)
          Sets the height.
 void setWidth(int width)
          Sets the width.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
cursorChanged, cursorClicked, cursorPressed, cursorReleased
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, screenCursorChanged, screenCursorClicked, screenCursorPressed, screenCursorReleased, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBackGround, setBorder, setBringToTopable, setFixLocations, setLocalLocation, setName, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher, update, update
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
contains, getImplementationObject, getLocalLocation, hasCollision, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

JMEBackgroundController

public JMEBackgroundController(ContentItem contentItem)
Instantiates a new JME background controller.

Parameters:
contentItem - the content item
Method Detail

drawImage

public void drawImage(java.net.URL imageResource)
Description copied from interface: IFrameImplementation
Draw image.

Specified by:
drawImage in interface IFrameImplementation
Parameters:
imageResource - the image resource

drawImage

public void drawImage(java.net.URL imageResource,
                      int x,
                      int y,
                      int width,
                      int height)
Description copied from interface: IFrameImplementation
Draw image.

Specified by:
drawImage in interface IFrameImplementation
Parameters:
imageResource - the image resource
x - the x
y - the y
width - the width
height - the height

flushGraphics

public void flushGraphics()
Description copied from interface: IFrameImplementation
Flush graphics.

Specified by:
flushGraphics in interface IFrameImplementation

getGraphicsContext

public java.awt.Graphics2D getGraphicsContext()
Description copied from interface: IFrameImplementation
Gets the graphics context.

Specified by:
getGraphicsContext in interface IFrameImplementation
Returns:
the graphics context

getImages

public java.util.HashMap<java.net.URL,ImageInfo> getImages()
Description copied from interface: IFrameImplementation
Gets the images.

Specified by:
getImages in interface IFrameImplementation
Returns:
the images

init

public void init()
Description copied from interface: IContentItemImplementation
Inits the.

Specified by:
init in interface IContentItemImplementation
Overrides:
init in class JMEContentItem

removeAllImages

public void removeAllImages()
Description copied from interface: IFrameImplementation
Removes the all images.

Specified by:
removeAllImages in interface IFrameImplementation

removeImage

public void removeImage(java.net.URL imageResource)
Description copied from interface: IFrameImplementation
Removes the image.

Specified by:
removeImage in interface IFrameImplementation
Parameters:
imageResource - the image resource

setAutoFitSize

public void setAutoFitSize(boolean isEnabled)
Description copied from interface: IQuadContentItemImplementation
Sets the auto fit size.

Specified by:
setAutoFitSize in interface IQuadContentItemImplementation
Overrides:
setAutoFitSize in class JMEQuadContentItem
Parameters:
isEnabled - the new auto fit size

setBackgroundRotateTranslateScalable

public void setBackgroundRotateTranslateScalable(boolean isEnabled)
Description copied from interface: IBackgroundControllerImplementation
Sets the background rotate translate scalable.

Specified by:
setBackgroundRotateTranslateScalable in interface IBackgroundControllerImplementation
Parameters:
isEnabled - the new background rotate translate scalable

setHeight

public void setHeight(int height)
Description copied from interface: IQuadContentItemImplementation
Sets the height.

Specified by:
setHeight in interface IQuadContentItemImplementation
Overrides:
setHeight in class JMEQuadContentItem
Parameters:
height - the new height

setWidth

public void setWidth(int width)
Description copied from interface: IQuadContentItemImplementation
Sets the width.

Specified by:
setWidth in interface IQuadContentItemImplementation
Overrides:
setWidth in class JMEQuadContentItem
Parameters:
width - the new width