synergynetframework.appsystem.contentsystem.jme.items
Class JMELightImageLabel

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.JMELightImageLabel
All Implemented Interfaces:
IContentItemImplementation, ILightImageLabelImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMELightImageLabel
extends JMEQuadContentItem
implements ILightImageLabelImplementation

The Class JMELightImageLabel.


Constructor Summary
JMELightImageLabel(ContentItem contentItem)
          Instantiates a new JME light image label.
 
Method Summary
 void drawImage(java.awt.Image image)
          Draw image.
 void drawImage(java.net.URL imageResource)
          Draw image.
 void enableAspectRatio(boolean isAspectRationEnabled)
          Enable aspect ratio.
 java.net.URL getImageResource()
          Gets the image resource.
 void init()
          Inits the.
 boolean isAplaEnabled()
          Checks if is apla enabled.
 boolean isAspectRatioEnabled()
          Checks if is aspect ratio enabled.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setHeight(int height)
          Sets the height.
 void setWidth(int width)
          Sets the width.
 void useAlpha(boolean useAlpha)
          Use alpha.
 
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

JMELightImageLabel

public JMELightImageLabel(ContentItem contentItem)
Instantiates a new JME light image label.

Parameters:
contentItem - the content item
Method Detail

drawImage

public void drawImage(java.awt.Image image)
Description copied from interface: ILightImageLabelImplementation
Draw image.

Specified by:
drawImage in interface ILightImageLabelImplementation
Parameters:
image - the image

drawImage

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

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

enableAspectRatio

public void enableAspectRatio(boolean isAspectRationEnabled)
Description copied from interface: ILightImageLabelImplementation
Enable aspect ratio.

Specified by:
enableAspectRatio in interface ILightImageLabelImplementation
Parameters:
isAspectRationEnabled - the is aspect ration enabled

getImageResource

public java.net.URL getImageResource()
Description copied from interface: ILightImageLabelImplementation
Gets the image resource.

Specified by:
getImageResource in interface ILightImageLabelImplementation
Returns:
the image resource

init

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

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

isAplaEnabled

public boolean isAplaEnabled()
Description copied from interface: ILightImageLabelImplementation
Checks if is apla enabled.

Specified by:
isAplaEnabled in interface ILightImageLabelImplementation
Returns:
true, if is apla enabled

isAspectRatioEnabled

public boolean isAspectRatioEnabled()
Description copied from interface: ILightImageLabelImplementation
Checks if is aspect ratio enabled.

Specified by:
isAspectRatioEnabled in interface ILightImageLabelImplementation
Returns:
true, if is aspect ratio enabled

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

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

useAlpha

public void useAlpha(boolean useAlpha)
Description copied from interface: ILightImageLabelImplementation
Use alpha.

Specified by:
useAlpha in interface ILightImageLabelImplementation
Parameters:
useAlpha - the use alpha