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 booleandisconnectedprotected StringIDprotected InLinkinlinkprotected intmodeprotected OutLinkoutlink-
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 voidaccept(Visitor visitor)Insert the method's description here.ConnectoraddConnector()Insert the method's description here.voidbypass()Insert the method's description here.booleancheckMove(int dx, int dy)Insert the method's description here.voiddestroy()Insert the method's description here.voiddisconnect(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 voiddraw(Graphics g, boolean hilited)Insert the method's description here.StringgetDescription()Insert the method's description here.StringgetHashID()Insert the method's description here.StringgetID()Insert the method's description here.InLinkgetInput()Insert the method's description here.intgetInX()Insert the method's description here.intgetInY()Insert the method's description here.VectorgetItems()Insert the method's description here.StringgetLayerID()Insert the method's description here.intgetLeftX()intgetMode()Insert the method's description here.OutLinkgetOutput()Insert the method's description here.intgetOutX()Insert the method's description here.intgetOutY()Insert the method's description here.intgetQueueCount()Insert the method's description here.intgetRightX()VisibleObjectintersects(int px, int py)Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)VisibleObjectintersects(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)booleanisConnectable()Insert the method's description here.booleanisDisconnected()Insert the method's description here.booleanisRight()booleanmove(int dx, int dy)Insert the method's description here.voidrevalidatePosition()Insert the method's description here.voidsetDescription(String description)Insert the method's description here.voidsetID(String newID)Insert the method's description here.voidsetInput(InLink input)Insert the method's description here.voidsetLayerID(String id)Insert the method's description here.voidsetMode(int mode)Sets the mode.voidsetOutput(OutLink output, OutLink prevOutput)Insert the method's description here.protected voidvalidate()Insert the method's description here.voidvalidateLink()-
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:
destroyin 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:
disconnectin 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:
drawin 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:
getDescriptionin 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:
getHashIDin 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:
getLayerIDin 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:
getQueueCountin interfaceOutLink- Returns:
- int
-
isConnectable
public boolean isConnectable()
Insert the method's description here. Creation date: (29.1.2001 20:05:52)- Specified by:
isConnectablein interfaceLinkable- Returns:
- boolean
-
isDisconnected
public boolean isDisconnected()
Insert the method's description here. Creation date: (29.1.2001 20:05:51)- Specified by:
isDisconnectedin 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:
revalidatePositionin classVisibleObject
-
setDescription
public void setDescription(String description)
Insert the method's description here. Creation date: (24.4.2001 18:04:05)- Specified by:
setDescriptionin 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:
setLayerIDin 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:
validatein classVisibleObject
-
getMode
public int getMode()
Description copied from interface:OutLinkInsert the method's description here. Creation date: (29.1.2001 17:53:09)- Specified by:
getModein 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:
intersectsin 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:
intersectsin classVisibleObject- Parameters:
p1x- intp1y- intp2x- intp2y- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
validateLink
public void validateLink()
- Specified by:
validateLinkin interfaceOutLink- See Also:
OutLink.validateLink()
-
getLeftX
public int getLeftX()
-
getRightX
public int getRightX()
-
-