Class Connector
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.Connector
-
- All Implemented Interfaces:
Descriptable
,InLink
,Linkable
,Movable
,OutLink
,Selectable
,Visitable
,Popupable
public class Connector extends VisibleObject implements Descriptable, InLink, Movable, OutLink, Popupable, Selectable
Insert the type's description here. Creation date: (29.1.2001 20:05:51)- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
disconnected
protected String
ID
protected InLink
inlink
protected int
mode
protected OutLink
outlink
-
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
-
Fields inherited from interface com.cosylab.vdct.graphics.objects.InLink
INPUT_MACRO_MODE, OUTPUT_MACRO_MODE
-
Fields inherited from interface com.cosylab.vdct.graphics.objects.OutLink
CONSTANT_PORT_MODE, EXTERNAL_INPUT_MODE, EXTERNAL_OUTPUT_MODE, INPUT_PORT_MODE, INVISIBLE_MODE, NORMAL_MODE, OUTPUT_PORT_MODE
-
-
Constructor Summary
Constructors Constructor Description Connector(String id, LinkManagerObject parent, OutLink outlink, InLink inlink)
Insert the method's description here.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Insert the method's description here.Connector
addConnector()
Insert the method's description here.void
bypass()
Insert the method's description here.boolean
checkMove(int dx, int dy)
Insert the method's description here.void
destroy()
Insert the method's description here.void
disconnect(Linkable disconnector)
This method destroys connector (connector should not be used afer this method was called) Creation date: (29.1.2001 20:05:51)protected void
draw(Graphics g, boolean hilited)
Insert the method's description here.String
getDescription()
Insert the method's description here.String
getHashID()
Insert the method's description here.String
getID()
Insert the method's description here.InLink
getInput()
Insert the method's description here.int
getInX()
Insert the method's description here.int
getInY()
Insert the method's description here.Vector
getItems()
Insert the method's description here.String
getLayerID()
Insert the method's description here.int
getLeftX()
int
getMode()
Insert the method's description here.OutLink
getOutput()
Insert the method's description here.int
getOutX()
Insert the method's description here.int
getOutY()
Insert the method's description here.int
getQueueCount()
Insert the method's description here.int
getRightX()
VisibleObject
intersects(int px, int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)VisibleObject
intersects(int p1x, int p1y, int p2x, int p2y)
Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)boolean
isConnectable()
Insert the method's description here.boolean
isDisconnected()
Insert the method's description here.boolean
isRight()
boolean
move(int dx, int dy)
Insert the method's description here.void
revalidatePosition()
Insert the method's description here.void
setDescription(String description)
Insert the method's description here.void
setID(String newID)
Insert the method's description here.void
setInput(InLink input)
Insert the method's description here.void
setLayerID(String id)
Insert the method's description here.void
setMode(int mode)
Sets the mode.void
setOutput(OutLink output, OutLink prevOutput)
Insert the method's description here.protected void
validate()
Insert the method's description here.void
validateLink()
-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, getY, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, snapToGrid, unconditionalValidation
-
-
-
-
Constructor Detail
-
Connector
public Connector(String id, LinkManagerObject parent, OutLink outlink, InLink inlink)
Insert the method's description here. Creation date: (1.2.2001 17:22:29)- Parameters:
id
- idparent
- com.cosylab.vdct.graphics.objects.Recordoutlink
- com.cosylab.vdct.graphics.objects.OutLinkinlink
- com.cosylab.vdct.graphics.objects.InLink
-
-
Method Detail
-
accept
public void accept(Visitor visitor)
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
addConnector
public Connector addConnector()
Insert the method's description here. Creation date: (4.2.2001 12:50:51)- Returns:
- something
-
bypass
public void bypass()
Insert the method's description here. Creation date: (4.2.2001 12:35:05)
-
checkMove
public boolean checkMove(int dx, int dy)
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
destroy
public void destroy()
Insert the method's description here. Creation date: (1.2.2001 16:40:51)- Overrides:
destroy
in classVisibleObject
-
disconnect
public void disconnect(Linkable disconnector)
This method destroys connector (connector should not be used afer this method was called) Creation date: (29.1.2001 20:05:51)- Specified by:
disconnect
in interfaceLinkable
- Parameters:
disconnector
- disconnector
-
draw
protected void draw(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (29.1.2001 20:05:52)- Specified by:
draw
in classVisibleObject
- Parameters:
g
- java.awt.Graphicshilited
- boolean
-
getDescription
public String getDescription()
Insert the method's description here. Creation date: (24.4.2001 18:04:05)- Specified by:
getDescription
in interfaceDescriptable
- Returns:
- java.lang.String
-
getHashID
public String getHashID()
Insert the method's description here. Creation date: (3.5.2001 16:43:08)- Specified by:
getHashID
in classVisibleObject
- Returns:
- java.lang.String
-
getID
public String getID()
Insert the method's description here. Creation date: (1.2.2001 17:31:26)
-
getInput
public InLink getInput()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
getInX
public int getInX()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
getInY
public int getInY()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
getItems
public Vector getItems()
Insert the method's description here. Creation date: (3.2.2001 11:23:59)
-
getLayerID
public String getLayerID()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)- Specified by:
getLayerID
in interfaceLinkable
- Returns:
- java.lang.String
-
getOutput
public OutLink getOutput()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
getOutX
public int getOutX()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
getOutY
public int getOutY()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
getQueueCount
public int getQueueCount()
Insert the method's description here. Creation date: (30.1.2001 14:50:26)- Specified by:
getQueueCount
in interfaceOutLink
- Returns:
- int
-
isConnectable
public boolean isConnectable()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)- Specified by:
isConnectable
in interfaceLinkable
- Returns:
- boolean
-
isDisconnected
public boolean isDisconnected()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)- Specified by:
isDisconnected
in interfaceLinkable
- Returns:
- boolean
-
move
public boolean move(int dx, int dy)
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
revalidatePosition
public void revalidatePosition()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)- Specified by:
revalidatePosition
in classVisibleObject
-
setDescription
public void setDescription(String description)
Insert the method's description here. Creation date: (24.4.2001 18:04:05)- Specified by:
setDescription
in interfaceDescriptable
- Parameters:
description
- java.lang.String
-
setID
public void setID(String newID)
Insert the method's description here. Creation date: (1.2.2001 17:31:26)- Parameters:
newID
- java.lang.String
-
setInput
public void setInput(InLink input)
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
setLayerID
public void setLayerID(String id)
Insert the method's description here. Creation date: (29.1.2001 20:05:51)- Specified by:
setLayerID
in interfaceLinkable
- Parameters:
id
- java.lang.String
-
setOutput
public void setOutput(OutLink output, OutLink prevOutput)
Insert the method's description here. Creation date: (29.1.2001 20:05:51)
-
validate
protected void validate()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)- Specified by:
validate
in classVisibleObject
-
getMode
public int getMode()
Description copied from interface:OutLink
Insert the method's description here. Creation date: (29.1.2001 17:53:09)- Specified by:
getMode
in interfaceOutLink
- Returns:
- int
- See Also:
OutLink.getMode()
-
setMode
public void setMode(int mode)
Sets the mode.- Parameters:
mode
- The mode to set
-
intersects
public VisibleObject intersects(int px, int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)- Overrides:
intersects
in classVisibleObject
- Parameters:
px
- intpy
- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
intersects
public VisibleObject intersects(int p1x, int p1y, int p2x, int p2y)
Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)- Overrides:
intersects
in classVisibleObject
- Parameters:
p1x
- intp1y
- intp2x
- intp2y
- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
validateLink
public void validateLink()
- Specified by:
validateLink
in interfaceOutLink
- See Also:
OutLink.validateLink()
-
getLeftX
public int getLeftX()
-
getRightX
public int getRightX()
-
-