synergynetframework.appsystem.contentsystem.jme.items
Class JMETextLabel

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
                  extended by synergynetframework.appsystem.contentsystem.jme.items.JMETextLabel
All Implemented Interfaces:
IContentItemImplementation, IFrameImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ITextLabelImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener
Direct Known Subclasses:
JMEMultiLineTextLabel, JMESimpleButton

public class JMETextLabel
extends JMEFrame
implements ITextLabelImplementation

The Class JMETextLabel.


Constructor Summary
JMETextLabel(ContentItem contentItem)
          Instantiates a new JME text label.
 
Method Summary
 void drawImage(java.net.URL imageResource)
          Draw image.
 TextLabel.Alignment getAlignment()
          Gets the alignment.
 void removeAllImages()
          Removes the all images.
 void setAlignment(TextLabel.Alignment textAlignment)
          Sets the alignment.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setFont(java.awt.Font font)
          Sets the font.
 void setText(java.lang.String text)
          Sets the text.
 void setTextColour(java.awt.Color textColour)
          Sets the text colour.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEFrame
drawImage, flushGraphics, getGraphicsContext, getImages, init, removeImage, setBackGround, setBorder, setHeight, setWidth
 
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.IFrameImplementation
drawImage, flushGraphics, getGraphicsContext, getImages, removeImage
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IQuadContentItemImplementation
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

JMETextLabel

public JMETextLabel(ContentItem contentItem)
Instantiates a new JME text label.

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
Overrides:
drawImage in class JMEFrame
Parameters:
imageResource - the image resource

getAlignment

public TextLabel.Alignment getAlignment()
Description copied from interface: ITextLabelImplementation
Gets the alignment.

Specified by:
getAlignment in interface ITextLabelImplementation
Returns:
the alignment

removeAllImages

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

Specified by:
removeAllImages in interface IFrameImplementation
Overrides:
removeAllImages in class JMEFrame

setAlignment

public void setAlignment(TextLabel.Alignment textAlignment)
Description copied from interface: ITextLabelImplementation
Sets the alignment.

Specified by:
setAlignment in interface ITextLabelImplementation
Parameters:
textAlignment - the new alignment

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 JMEFrame
Parameters:
isEnabled - the new auto fit size

setFont

public void setFont(java.awt.Font font)
Description copied from interface: ITextLabelImplementation
Sets the font.

Specified by:
setFont in interface ITextLabelImplementation
Parameters:
font - the new font

setText

public void setText(java.lang.String text)
Description copied from interface: ITextLabelImplementation
Sets the text.

Specified by:
setText in interface ITextLabelImplementation
Parameters:
text - the new text

setTextColour

public void setTextColour(java.awt.Color textColour)
Description copied from interface: ITextLabelImplementation
Sets the text colour.

Specified by:
setTextColour in interface ITextLabelImplementation
Parameters:
textColour - the new text colour