synergynetframework.appsystem.contentsystem.jme.items
Class JMELineItem

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.JMEOrthoContainer
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMELineItem
All Implemented Interfaces:
IContentItemImplementation, ILineImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, ScreenCursorListener, JMEContentItemImplementation, UpdateableJMEContentItemImplementation, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMELineItem
extends JMEOrthoContainer
implements ILineImplementation, OrthoCursorEventDispatcher.CommonCursorEventListener, UpdateableJMEContentItemImplementation

The Class JMELineItem.


Constructor Summary
JMELineItem(ContentItem contentItem)
          Instantiates a new JME line item.
JMELineItem(ContentItem contentItem, com.jme.math.Vector3f sourcePoint, com.jme.math.Vector3f targetPoint)
          Instantiates a new JME line item.
 
Method Summary
 com.jme.scene.Line getLine()
          Gets the line.
 com.jme.scene.Spatial getSpatial()
          Gets the spatial.
 void setAnnotationEnabled(boolean isEnabled)
          Sets the annotation enabled.
 void setArrowMode(int arrowMode)
          Sets the arrow mode.
 void setArrowsEnabled(boolean isEnabled)
          Sets the arrows enabled.
 void setLineColour(java.awt.Color lineColour)
          Sets the line colour.
 void setLineMode(int lineMode)
          Sets the line mode.
 void setSourceItem(ContentItem sourceItem)
          Sets the source item.
 void setSourceLocation(Location sourceLocation)
          Sets the source location.
 void setTargetItem(ContentItem targetItem)
          Sets the target item.
 void setTargetLocation(Location targetLocation)
          Sets the target location.
 void setText(java.lang.String str)
          Sets the text.
 void setTextColour(java.awt.Color textColour)
          Sets the text colour.
 void setTextFont(java.awt.Font textFont)
          Sets the text font.
 void setWidth(float lineWidth)
          Sets the width.
 void update(float interpolation)
          Update.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContainer
addSubItem, detachSubItem, getNode, removeSubItem, setBackGround, setBorder, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorChanged, cursorClicked, cursorPressed, cursorReleased, 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
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
contains, getImplementationObject, getLocalLocation, hasCollision, init, 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, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update
 
Methods inherited from interface synergynetframework.jme.cursorsystem.elements.twod.OrthoCursorEventDispatcher.CommonCursorEventListener
cursorChanged, cursorClicked, cursorPressed, cursorReleased, cursorRightClicked
 

Constructor Detail

JMELineItem

public JMELineItem(ContentItem contentItem)
Instantiates a new JME line item.

Parameters:
contentItem - the content item

JMELineItem

public JMELineItem(ContentItem contentItem,
                   com.jme.math.Vector3f sourcePoint,
                   com.jme.math.Vector3f targetPoint)
Instantiates a new JME line item.

Parameters:
contentItem - the content item
sourcePoint - the source point
targetPoint - the target point
Method Detail

getLine

public com.jme.scene.Line getLine()
Gets the line.

Returns:
the line

getSpatial

public com.jme.scene.Spatial getSpatial()
Description copied from interface: JMEContentItemImplementation
Gets the spatial.

Specified by:
getSpatial in interface JMEContentItemImplementation
Returns:
the spatial

setAnnotationEnabled

public void setAnnotationEnabled(boolean isEnabled)
Description copied from interface: ILineImplementation
Sets the annotation enabled.

Specified by:
setAnnotationEnabled in interface ILineImplementation
Parameters:
isEnabled - the new annotation enabled

setArrowMode

public void setArrowMode(int arrowMode)
Description copied from interface: ILineImplementation
Sets the arrow mode.

Specified by:
setArrowMode in interface ILineImplementation
Parameters:
arrowMode - the new arrow mode

setArrowsEnabled

public void setArrowsEnabled(boolean isEnabled)
Description copied from interface: ILineImplementation
Sets the arrows enabled.

Specified by:
setArrowsEnabled in interface ILineImplementation
Parameters:
isEnabled - the new arrows enabled

setLineColour

public void setLineColour(java.awt.Color lineColour)
Description copied from interface: ILineImplementation
Sets the line colour.

Specified by:
setLineColour in interface ILineImplementation
Parameters:
lineColour - the new line colour

setLineMode

public void setLineMode(int lineMode)
Description copied from interface: ILineImplementation
Sets the line mode.

Specified by:
setLineMode in interface ILineImplementation
Parameters:
lineMode - the new line mode

setSourceItem

public void setSourceItem(ContentItem sourceItem)
Description copied from interface: ILineImplementation
Sets the source item.

Specified by:
setSourceItem in interface ILineImplementation
Parameters:
sourceItem - the new source item

setSourceLocation

public void setSourceLocation(Location sourceLocation)
Description copied from interface: ILineImplementation
Sets the source location.

Specified by:
setSourceLocation in interface ILineImplementation
Parameters:
sourceLocation - the new source location

setTargetItem

public void setTargetItem(ContentItem targetItem)
Description copied from interface: ILineImplementation
Sets the target item.

Specified by:
setTargetItem in interface ILineImplementation
Parameters:
targetItem - the new target item

setTargetLocation

public void setTargetLocation(Location targetLocation)
Description copied from interface: ILineImplementation
Sets the target location.

Specified by:
setTargetLocation in interface ILineImplementation
Parameters:
targetLocation - the new target location

setText

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

Specified by:
setText in interface ILineImplementation
Parameters:
str - the new text

setTextColour

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

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

setTextFont

public void setTextFont(java.awt.Font textFont)
Description copied from interface: ILineImplementation
Sets the text font.

Specified by:
setTextFont in interface ILineImplementation
Parameters:
textFont - the new text font

setWidth

public void setWidth(float lineWidth)
Description copied from interface: ILineImplementation
Sets the width.

Specified by:
setWidth in interface ILineImplementation
Parameters:
lineWidth - the new width

update

public void update(float interpolation)
Description copied from interface: IContentItemImplementation
Update.

Specified by:
update in interface IContentItemImplementation
Specified by:
update in interface UpdateableJMEContentItemImplementation
Overrides:
update in class JMEOrthoContentItem
Parameters:
interpolation - the interpolation