|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.objects.VisibleObject
com.cosylab.vdct.graphics.objects.Connector
public class Connector
Insert the type's description here. Creation date: (29.1.2001 20:05:51)
Field Summary | |
---|---|
protected boolean |
disconnected
|
protected java.lang.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 | |
---|---|
Connector(java.lang.String id,
LinkManagerObject parent,
OutLink outlink,
InLink inlink)
Insert the method's description here. |
Method Summary | |
---|---|
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(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
java.lang.String |
getDescription()
Insert the method's description here. |
java.lang.String |
getHashID()
Insert the method's description here. |
java.lang.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. |
java.util.Vector |
getItems()
Insert the method's description here. |
java.lang.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(java.lang.String description)
Insert the method's description here. |
void |
setID(java.lang.String newID)
Insert the method's description here. |
void |
setInput(InLink input)
Insert the method's description here. |
void |
setLayerID(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cosylab.vdct.graphics.popup.Popupable |
---|
getLabel |
Field Detail |
---|
protected InLink inlink
protected OutLink outlink
protected java.lang.String ID
protected boolean disconnected
protected int mode
Constructor Detail |
---|
public Connector(java.lang.String id, LinkManagerObject parent, OutLink outlink, InLink inlink)
parent
- com.cosylab.vdct.graphics.objects.Recordoutlink
- com.cosylab.vdct.graphics.objects.OutLinkinlink
- com.cosylab.vdct.graphics.objects.InLinkMethod Detail |
---|
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- com.cosylab.vdct.graphics.objects.Visitorpublic Connector addConnector()
public void bypass()
public boolean checkMove(int dx, int dy)
checkMove
in interface Movable
dx
- intdy
- int
public void destroy()
destroy
in class VisibleObject
public void disconnect(Linkable disconnector)
disconnect
in interface Linkable
protected void draw(java.awt.Graphics g, boolean hilited)
draw
in class VisibleObject
g
- java.awt.Graphicshilited
- booleanpublic java.lang.String getDescription()
getDescription
in interface Descriptable
public java.lang.String getHashID()
getHashID
in class VisibleObject
public java.lang.String getID()
getID
in interface Linkable
public InLink getInput()
getInput
in interface OutLink
public int getInX()
getInX
in interface InLink
public int getInY()
getInY
in interface InLink
public java.util.Vector getItems()
getItems
in interface Popupable
public java.lang.String getLayerID()
getLayerID
in interface Linkable
public OutLink getOutput()
getOutput
in interface InLink
public int getOutX()
getOutX
in interface OutLink
public int getOutY()
getOutY
in interface OutLink
public int getQueueCount()
getQueueCount
in interface OutLink
public boolean isConnectable()
isConnectable
in interface Linkable
public boolean isDisconnected()
isDisconnected
in interface Linkable
public boolean move(int dx, int dy)
move
in interface Movable
dx
- intdy
- int
public void revalidatePosition()
revalidatePosition
in class VisibleObject
public void setDescription(java.lang.String description)
setDescription
in interface Descriptable
description
- java.lang.Stringpublic void setID(java.lang.String newID)
newID
- java.lang.Stringpublic void setInput(InLink input)
setInput
in interface OutLink
public void setLayerID(java.lang.String id)
setLayerID
in interface Linkable
id
- java.lang.Stringpublic void setOutput(OutLink output, OutLink prevOutput)
setOutput
in interface InLink
output
- com.cosylab.vdct.graphics.objects.OutLinkprevOutput
- com.cosylab.vdct.graphics.objects.OutLinkprotected void validate()
validate
in class VisibleObject
public int getMode()
OutLink
getMode
in interface OutLink
OutLink.getMode()
public void setMode(int mode)
mode
- The mode to setpublic VisibleObject intersects(int px, int py)
intersects
in class VisibleObject
px
- intpy
- int
public VisibleObject intersects(int p1x, int p1y, int p2x, int p2y)
intersects
in class VisibleObject
p1x
- intp1y
- intp2x
- intp2y
- int
public void validateLink()
validateLink
in interface OutLink
OutLink.validateLink()
public int getLeftX()
getLeftX
in interface InLink
getLeftX
in interface OutLink
public int getRightX()
getRightX
in interface InLink
getRightX
in interface OutLink
public boolean isRight()
isRight
in interface InLink
isRight
in interface OutLink
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |