synergynetframework.appsystem.contentsystem.items
Class RoundTextLabel

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.RoundContentItem
              extended by synergynetframework.appsystem.contentsystem.items.RoundFrame
                  extended by synergynetframework.appsystem.contentsystem.items.RoundTextLabel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IOrthoContentItemImplementation, IRoundContentItemImplementation, IRoundFrameImplementation, IRoundTextLabelImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class RoundTextLabel
extends RoundFrame
implements IRoundTextLabelImplementation

The Class RoundTextLabel.

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
RoundTextLabel(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new round text label.
 
Method Summary
 java.lang.String getFirstLine()
          Gets the first line.
 java.awt.Font getFont()
          Gets the font.
 java.util.List<java.lang.String> getLines()
          Gets the lines.
 java.lang.String getText()
          Gets the text.
 java.awt.Color getTextColour()
          Gets the text colour.
 boolean isAutoFitSize()
          Checks if is auto fit size.
 void setAutoFitSize(boolean isEnabled)
          Sets the auto fit size.
 void setCRLFSeparatedString(java.lang.String s)
          Sets the CRLF separated string.
 void setFont(java.awt.Font font)
          Sets the font.
 void setLines(java.util.List<java.lang.String> lines)
          Sets the lines.
 void setLines(java.lang.String s, int charsPerLine)
          Sets the lines.
 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.items.RoundFrame
drawImage, drawImage, getImageResources, getImages, removeAllImages, removeImage
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.RoundContentItem
getRadius, setRadius
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, clone, 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.IRoundFrameImplementation
drawImage, drawImage, getImages, removeAllImages, removeImage
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IRoundContentItemImplementation
setRadius
 
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

RoundTextLabel

public RoundTextLabel(ContentSystem contentSystem,
                      java.lang.String name)
Instantiates a new round text label.

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

getFirstLine

public java.lang.String getFirstLine()
Gets the first line.

Returns:
the first line

getFont

public java.awt.Font getFont()
Gets the font.

Returns:
the font

getLines

public java.util.List<java.lang.String> getLines()
Gets the lines.

Returns:
the lines

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

getTextColour

public java.awt.Color getTextColour()
Gets the text colour.

Returns:
the text colour

isAutoFitSize

public boolean isAutoFitSize()
Checks if is auto fit size.

Returns:
true, if is auto fit size

setAutoFitSize

public void setAutoFitSize(boolean isEnabled)
Description copied from interface: IRoundTextLabelImplementation
Sets the auto fit size.

Specified by:
setAutoFitSize in interface IRoundTextLabelImplementation
Parameters:
isEnabled - the new auto fit size

setCRLFSeparatedString

public void setCRLFSeparatedString(java.lang.String s)
Description copied from interface: IRoundTextLabelImplementation
Sets the CRLF separated string.

Specified by:
setCRLFSeparatedString in interface IRoundTextLabelImplementation
Parameters:
s - the new CRLF separated string

setFont

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

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

setLines

public void setLines(java.util.List<java.lang.String> lines)
Description copied from interface: IRoundTextLabelImplementation
Sets the lines.

Specified by:
setLines in interface IRoundTextLabelImplementation
Parameters:
lines - the new lines

setLines

public void setLines(java.lang.String s,
                     int charsPerLine)
Description copied from interface: IRoundTextLabelImplementation
Sets the lines.

Specified by:
setLines in interface IRoundTextLabelImplementation
Parameters:
s - the s
charsPerLine - the chars per line

setText

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

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

setTextColour

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

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