synergynetframework.appsystem.contentsystem.items
Class LineItem

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

public class LineItem
extends OrthoContainer
implements java.io.Serializable, ILineImplementation

The Class LineItem.

See Also:
Serialized Form

Field Summary
static int ANIMATION
          The Constant ANIMATION.
static int ARROW_TO_SOURCE
          The Constant ARROW_TO_SOURCE.
static int ARROW_TO_TARGET
          The Constant ARROW_TO_TARGET.
static int BIDIRECTIONAL_ARROWS
          The Constant BIDIRECTIONAL_ARROWS.
static int CONNECTED_LINE
          The Constant CONNECTED_LINE.
static int DOTTED_LINE
          The Constant DOTTED_LINE.
static int NO_ARROWS
          The Constant NO_ARROWS.
static int SEGMENT_LINE
          The Constant SEGMENT_LINE.
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
LineItem(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new line item.
LineItem(ContentSystem contentSystem, java.lang.String name, Location sourceLocation, Location targetLocation)
          Instantiates a new line item.
 
Method Summary
 int getArrowMode()
          Gets the arrow mode.
 java.awt.Color getLineColour()
          Gets the line colour.
 int getLineMode()
          Gets the line mode.
 ContentItem getSourceItem()
          Gets the source item.
 Location getSourceLocation()
          Gets the source location.
 ContentItem getTargetItem()
          Gets the target item.
 Location getTargetLocation()
          Gets the target location.
 java.lang.String getText()
          Gets the text.
 java.awt.Color getTextColour()
          Gets the text colour.
 java.awt.Font getTextFont()
          Gets the text font.
 float getWidth()
          Gets the width.
 boolean isAnnotationEnabled()
          Checks if is annotation enabled.
 boolean isArrowEnabled()
          Checks if is arrow enabled.
 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 text)
          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.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContainer
addSubItem, contains, detachSubItem, getAllItemsIncludeSystemItems, getNode, removeSubItem, removeSubItem, setBringToTopable, setRotateTranslateScalable, setScaleLimit, setTopItem, updateOrder
 
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, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, 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.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
 

Field Detail

ANIMATION

public static final int ANIMATION
The Constant ANIMATION.

See Also:
Constant Field Values

ARROW_TO_SOURCE

public static final int ARROW_TO_SOURCE
The Constant ARROW_TO_SOURCE.

See Also:
Constant Field Values

ARROW_TO_TARGET

public static final int ARROW_TO_TARGET
The Constant ARROW_TO_TARGET.

See Also:
Constant Field Values

BIDIRECTIONAL_ARROWS

public static final int BIDIRECTIONAL_ARROWS
The Constant BIDIRECTIONAL_ARROWS.

See Also:
Constant Field Values

CONNECTED_LINE

public static final int CONNECTED_LINE
The Constant CONNECTED_LINE.

See Also:
Constant Field Values

DOTTED_LINE

public static final int DOTTED_LINE
The Constant DOTTED_LINE.

See Also:
Constant Field Values

NO_ARROWS

public static final int NO_ARROWS
The Constant NO_ARROWS.

See Also:
Constant Field Values

SEGMENT_LINE

public static final int SEGMENT_LINE
The Constant SEGMENT_LINE.

See Also:
Constant Field Values
Constructor Detail

LineItem

public LineItem(ContentSystem contentSystem,
                java.lang.String name)
Instantiates a new line item.

Parameters:
contentSystem - the content system
name - the name

LineItem

public LineItem(ContentSystem contentSystem,
                java.lang.String name,
                Location sourceLocation,
                Location targetLocation)
Instantiates a new line item.

Parameters:
contentSystem - the content system
name - the name
sourceLocation - the source location
targetLocation - the target location
Method Detail

getArrowMode

public int getArrowMode()
Gets the arrow mode.

Returns:
the arrow mode

getLineColour

public java.awt.Color getLineColour()
Gets the line colour.

Returns:
the line colour

getLineMode

public int getLineMode()
Gets the line mode.

Returns:
the line mode

getSourceItem

public ContentItem getSourceItem()
Gets the source item.

Returns:
the source item

getSourceLocation

public Location getSourceLocation()
Gets the source location.

Returns:
the source location

getTargetItem

public ContentItem getTargetItem()
Gets the target item.

Returns:
the target item

getTargetLocation

public Location getTargetLocation()
Gets the target location.

Returns:
the target location

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

getTextFont

public java.awt.Font getTextFont()
Gets the text font.

Returns:
the text font

getWidth

public float getWidth()
Gets the width.

Returns:
the width

isAnnotationEnabled

public boolean isAnnotationEnabled()
Checks if is annotation enabled.

Returns:
true, if is annotation enabled

isArrowEnabled

public boolean isArrowEnabled()
Checks if is arrow enabled.

Returns:
true, if is arrow enabled

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 text)
Description copied from interface: ILineImplementation
Sets the text.

Specified by:
setText in interface ILineImplementation
Parameters:
text - 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