synergynetframework.appsystem.contentsystem.items
Class LightImageLabel

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.QuadContentItem
              extended by synergynetframework.appsystem.contentsystem.items.LightImageLabel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, ILightImageLabelImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class LightImageLabel
extends QuadContentItem
implements java.io.Serializable, java.lang.Cloneable, ILightImageLabelImplementation

The Class LightImageLabel.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
LightImageLabel(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new light image label.
 
Method Summary
 java.lang.Object clone()
           
 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.
 boolean isAplaEnabled()
          Checks if is apla enabled.
 boolean isAspectRatioEnabled()
          Checks if is aspect ratio enabled.
 void setImageLabelHeight(int height)
          Sets the image label height.
 void useAlpha(boolean useAlpha)
          Use alpha.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem
addSizeChangeListener, getHeight, getWidth, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize, setHeight, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
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.IQuadContentItemImplementation
setAutoFitSize, setHeight, setWidth
 
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, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

LightImageLabel

public LightImageLabel(ContentSystem contentSystem,
                       java.lang.String name)
Instantiates a new light image label.

Parameters:
contentSystem - the content system
name - the name
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class QuadContentItem
Throws:
java.lang.CloneNotSupportedException

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

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

setImageLabelHeight

public void setImageLabelHeight(int height)
Sets the image label height.

Parameters:
height - the new image label height

useAlpha

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

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