synergynetframework.appsystem.contentsystem.jme.items
Class JMERoundFrame

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.JMERoundContentItem
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMERoundFrame
All Implemented Interfaces:
IContentItemImplementation, IOrthoContentItemImplementation, IRoundContentItemImplementation, IRoundFrameImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener
Direct Known Subclasses:
JMERoundImageLabel, JMERoundTextLabel

public class JMERoundFrame
extends JMERoundContentItem
implements IRoundFrameImplementation

The Class JMERoundFrame.


Constructor Summary
JMERoundFrame(ContentItem contentItem)
          Instantiates a new JME round frame.
 
Method Summary
 void cursorChanged(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
          Cursor changed.
 void cursorClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
          Cursor clicked.
 void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
          Cursor pressed.
 void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher, ScreenCursor c, MultiTouchCursorEvent event)
          Cursor released.
 void drawImage(java.net.URL imageResource)
          Draw image.
 void drawImage(java.net.URL imageResource, int x, int y, int width, int height)
          Draw image.
 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 setBackGround(Background backGround)
          Sets the back ground.
 void setBorder(Border border)
          Sets the border.
 void setRadius(float radius)
          Sets the radius.
 
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, 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, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

JMERoundFrame

public JMERoundFrame(ContentItem contentItem)
Instantiates a new JME round frame.

Parameters:
contentItem - the content item
Method Detail

cursorChanged

public void cursorChanged(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                          ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor changed.

Specified by:
cursorChanged in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorChanged in class JMEOrthoContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

cursorClicked

public void cursorClicked(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                          ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor clicked.

Specified by:
cursorClicked in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorClicked in class JMEOrthoContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

cursorPressed

public void cursorPressed(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                          ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor pressed.

Specified by:
cursorPressed in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorPressed in class JMEOrthoContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

cursorReleased

public void cursorReleased(OrthoCursorEventDispatcher commonCursorEventDispatcher,
                           ScreenCursor c,
                           MultiTouchCursorEvent event)
Description copied from interface: OrthoCursorEventDispatcher.CommonCursorEventListener
Cursor released.

Specified by:
cursorReleased in interface OrthoCursorEventDispatcher.CommonCursorEventListener
Overrides:
cursorReleased in class JMEOrthoContentItem
Parameters:
commonCursorEventDispatcher - the common cursor event dispatcher
c - the c
event - the event

drawImage

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

Specified by:
drawImage in interface IRoundFrameImplementation
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: IRoundFrameImplementation
Draw image.

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

getImages

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

Specified by:
getImages in interface IRoundFrameImplementation
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: IRoundFrameImplementation
Removes the all images.

Specified by:
removeAllImages in interface IRoundFrameImplementation

removeImage

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

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

setBackGround

public void setBackGround(Background backGround)
Description copied from interface: IContentItemImplementation
Sets the back ground.

Specified by:
setBackGround in interface IContentItemImplementation
Overrides:
setBackGround in class JMEOrthoContentItem
Parameters:
backGround - the new back ground

setBorder

public void setBorder(Border border)
Description copied from interface: IContentItemImplementation
Sets the border.

Specified by:
setBorder in interface IContentItemImplementation
Overrides:
setBorder in class JMEOrthoContentItem
Parameters:
border - the new border

setRadius

public void setRadius(float radius)
Description copied from interface: IRoundContentItemImplementation
Sets the radius.

Specified by:
setRadius in interface IRoundContentItemImplementation
Overrides:
setRadius in class JMERoundContentItem
Parameters:
radius - the new radius