|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.ContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContainer
synergynetframework.appsystem.contentsystem.items.LineItem
public class LineItem
The Class LineItem.
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.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.IContentItemImplementation |
---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
Field Detail |
---|
public static final int ANIMATION
public static final int ARROW_TO_SOURCE
public static final int ARROW_TO_TARGET
public static final int BIDIRECTIONAL_ARROWS
public static final int CONNECTED_LINE
public static final int DOTTED_LINE
public static final int NO_ARROWS
public static final int SEGMENT_LINE
Constructor Detail |
---|
public LineItem(ContentSystem contentSystem, java.lang.String name)
contentSystem
- the content systemname
- the namepublic LineItem(ContentSystem contentSystem, java.lang.String name, Location sourceLocation, Location targetLocation)
contentSystem
- the content systemname
- the namesourceLocation
- the source locationtargetLocation
- the target locationMethod Detail |
---|
public int getArrowMode()
public java.awt.Color getLineColour()
public int getLineMode()
public ContentItem getSourceItem()
public Location getSourceLocation()
public ContentItem getTargetItem()
public Location getTargetLocation()
public java.lang.String getText()
public java.awt.Color getTextColour()
public java.awt.Font getTextFont()
public float getWidth()
public boolean isAnnotationEnabled()
public boolean isArrowEnabled()
public void setAnnotationEnabled(boolean isEnabled)
ILineImplementation
setAnnotationEnabled
in interface ILineImplementation
isEnabled
- the new annotation enabledpublic void setArrowMode(int arrowMode)
ILineImplementation
setArrowMode
in interface ILineImplementation
arrowMode
- the new arrow modepublic void setArrowsEnabled(boolean isEnabled)
ILineImplementation
setArrowsEnabled
in interface ILineImplementation
isEnabled
- the new arrows enabledpublic void setLineColour(java.awt.Color lineColour)
ILineImplementation
setLineColour
in interface ILineImplementation
lineColour
- the new line colourpublic void setLineMode(int lineMode)
ILineImplementation
setLineMode
in interface ILineImplementation
lineMode
- the new line modepublic void setSourceItem(ContentItem sourceItem)
ILineImplementation
setSourceItem
in interface ILineImplementation
sourceItem
- the new source itempublic void setSourceLocation(Location sourceLocation)
ILineImplementation
setSourceLocation
in interface ILineImplementation
sourceLocation
- the new source locationpublic void setTargetItem(ContentItem targetItem)
ILineImplementation
setTargetItem
in interface ILineImplementation
targetItem
- the new target itempublic void setTargetLocation(Location targetLocation)
ILineImplementation
setTargetLocation
in interface ILineImplementation
targetLocation
- the new target locationpublic void setText(java.lang.String text)
ILineImplementation
setText
in interface ILineImplementation
text
- the new textpublic void setTextColour(java.awt.Color textColour)
ILineImplementation
setTextColour
in interface ILineImplementation
textColour
- the new text colourpublic void setTextFont(java.awt.Font textFont)
ILineImplementation
setTextFont
in interface ILineImplementation
textFont
- the new text fontpublic void setWidth(float lineWidth)
ILineImplementation
setWidth
in interface ILineImplementation
lineWidth
- the new width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |