synergynetframework.appsystem.contentsystem.jme.items
Class JMEFrame

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.JMEFrame
All Implemented Interfaces:
IContentItemImplementation, IFrameImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener
Direct Known Subclasses:
JMEDrawableFrame, JMEHtmlFrame, JMEObjShape, JMEPDFViewer, JMEPPTViewer, JMESketchPad, JMETextLabel

public class JMEFrame
extends JMEQuadContentItem
implements IFrameImplementation

The Class JMEFrame.


Constructor Summary
JMEFrame(ContentItem contentItem)
          Instantiates a new JME frame.
 
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 setBackGround(Background backGround)
          Sets the back ground.
 void setBorder(Border border)
          Sets the border.
 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, 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

JMEFrame

public JMEFrame(ContentItem contentItem)
Instantiates a new JME frame.

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

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

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