Class Macro
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.Macro
-
- All Implemented Interfaces:
Descriptable,Flexible,InLink,Linkable,Movable,MultiInLink,Selectable,Visitable,Popupable,Inspectable
public class Macro extends VisibleObject implements Descriptable, Movable, InLink, Popupable, Selectable, Inspectable, MultiInLink, Flexible
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 VDBMacrodataprotected booleandisconnectedprotected PolygonleftPolyprotected intleftXtranslationprotected intleftYtranslationprotected Vectoroutlinksprotected PolygonrightPolyprotected intrightXtranslationprotected intrightYtranslation-
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
-
-
Constructor Summary
Constructors Constructor Description Macro(VDBMacro data, ContainerObject parent, int x, int y)Insert the method's description here.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Insert the method's description here.booleancheckMove(int dx, int dy)Insert the method's description here.FlexiblecopyToGroup(Object dsId, String group)Returns the copied instance or null if the object cannot be copied.voiddestroy()Insert the method's description here.voiddisconnect(Linkable disconnector)Insert the method's description here.protected voiddraw(Graphics g, boolean hilited)Insert the method's description here.InspectablePropertygetCommentProperty()VDBMacrogetData()Returns the data.StringgetDescription()Insert the method's description here.StringgetFlexibleName()Insert the method's description here.StringgetHashID()Insert the method's description here.IcongetIcon()Insert the method's description here.StringgetID()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.intgetLeftOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.intgetLeftX()intgetLinkCount()Insert the method's description here.static GUISeparatorgetMacroSeparator()Insert the method's description here.intgetMode()ArrayListgetModeNames()Obtains list of all mode names for this particular property.StringgetName()Insert the method's description here.VectorgetOutlinks()OutLinkgetOutput()Insert the method's description here.InspectableProperty[]getProperties(int mode, boolean spreadsheet)intgetRightOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.intgetRightX()VectorgetStartPoints()Insert the method's description here.intgetTopOffset()Returns the offset in pixels(the length of additional objects (arrows, strings) drawn above this object.booleanisConnectable()Insert the method's description here.booleanisDisconnected()Insert the method's description here.booleanisRight()Insert the method's description here.booleanisTextPositionNorth()booleanmove(int dx, int dy)Insert the method's description here.booleanmoveToGroup(Object dsId, String group)Insert the method's description here.booleanrename(Object dsId, String newName)Insert the method's description here.voidrename(String oldName, String newName)voidrevalidatePosition()Insert the method's description here.voidsetDescription(String description)Insert the method's description here.voidsetDestroyed(boolean newDestroyed)Insert the method's description here.voidsetLayerID(String id)Insert the method's description here.voidsetMode(int mode)voidsetOutput(OutLink output, OutLink prevOutput)Insert the method's description here.voidsetTextPositionNorth(boolean isTextPositionNorth)StringtoString()Insert the method's description here.voidupdateTemplateLink()Insert the method's description here.protected voidvalidate()Insert the method's description here.-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getHeight, getLabel, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getVisibleColor, getWidth, getX, getY, intersects, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setColor, 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, wait, wait, wait
-
Methods inherited from interface com.cosylab.vdct.inspector.Inspectable
getDsId
-
-
-
-
Field Detail
-
disconnected
protected boolean disconnected
-
outlinks
protected Vector outlinks
-
data
protected VDBMacro data
-
rightXtranslation
protected int rightXtranslation
-
rightYtranslation
protected int rightYtranslation
-
leftXtranslation
protected int leftXtranslation
-
leftYtranslation
protected int leftYtranslation
-
leftPoly
protected Polygon leftPoly
-
rightPoly
protected Polygon rightPoly
-
-
Constructor Detail
-
Macro
public Macro(VDBMacro data, ContainerObject parent, int x, int y)
Insert the method's description here. Creation date: (1.2.2001 17:22:29)- Parameters:
data- datay- yparent- parentx- x
-
-
Method Detail
-
accept
public void accept(Visitor visitor)
Insert the method's description here. Creation date: (29.1.2001 20:05:52)
-
checkMove
public boolean checkMove(int dx, int dy)Insert the method's description here. Creation date: (25.12.2000 14:14:35)
-
destroy
public void destroy()
Insert the method's description here. Creation date: (29.1.2001 21:59:34)- Overrides:
destroyin classVisibleObject
-
disconnect
public void disconnect(Linkable disconnector)
Insert the method's description here. Creation date: (29.1.2001 21:23:04)- 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)
-
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
-
getInX
public int getInX()
Insert the method's description here. Creation date: (29.1.2001 22:22:13)
-
getInY
public int getInY()
Insert the method's description here. Creation date: (29.1.2001 22:22:13)
-
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: (25.12.2000 14:14:35)
-
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
-
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
-
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()
- Returns:
- something
- See Also:
OutLink.getMode()
-
setTextPositionNorth
public void setTextPositionNorth(boolean isTextPositionNorth)
- Parameters:
isTextPositionNorth- isTextPositionNorth
-
isTextPositionNorth
public boolean isTextPositionNorth()
- Returns:
- something
-
setMode
public void setMode(int mode)
- Parameters:
mode- mode
-
getCommentProperty
public InspectableProperty getCommentProperty()
- Specified by:
getCommentPropertyin interfaceInspectable- Returns:
- com.cosylab.vdct.inspector.InspectableProperty
- See Also:
Inspectable.getCommentProperty()
-
getIcon
public Icon getIcon()
Description copied from interface:InspectableInsert the method's description here. Creation date: (10.1.2001 15:14:56)- Specified by:
getIconin interfaceInspectable- Returns:
- javax.swing.Icon
- See Also:
Inspectable.getIcon()
-
getModeNames
public ArrayList getModeNames()
Description copied from interface:InspectableObtains list of all mode names for this particular property. Modes are numbered from 0-n. Creation date: (11.1.2001 21:30:04)- Specified by:
getModeNamesin interfaceInspectable- Returns:
- java.util.ArrayList array of mode names - obtained using toString().
- See Also:
Inspectable.getModeNames()
-
getName
public String getName()
Description copied from interface:InspectableInsert the method's description here. Creation date: (10.1.2001 14:47:43)- Specified by:
getNamein interfaceInspectable- Returns:
- java.lang.String
- See Also:
Inspectable.getName()
-
toString
public String toString()
Description copied from interface:InspectableInsert the method's description here. Creation date: (10.1.2001 14:48:10)- Specified by:
toStringin interfaceFlexible- Specified by:
toStringin interfaceInspectable- Overrides:
toStringin classObject- Returns:
- java.lang.String
- See Also:
String.toString()
-
getMacroSeparator
public static GUISeparator getMacroSeparator()
Insert the method's description here. Creation date: (3.2.2001 13:07:04)- Returns:
- com.cosylab.vdct.vdb.GUISeparator
-
getProperties
public InspectableProperty[] getProperties(int mode, boolean spreadsheet)
- Specified by:
getPropertiesin interfaceInspectable- Parameters:
mode- modespreadsheet- spreadsheet- Returns:
- com.cosylab.vdct.inspector.InspectableProperty[]
- See Also:
Inspectable.getProperties(int, boolean spreadsheet)
-
setDestroyed
public void setDestroyed(boolean newDestroyed)
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (5.5.2001 18:02:09)- Overrides:
setDestroyedin classVisibleObject- Parameters:
newDestroyed- boolean- See Also:
VisibleObject.setDestroyed(boolean)
-
rename
public void rename(String oldName, String newName)
- Parameters:
oldName- oldNamenewName- newName
-
getData
public VDBMacro getData()
Returns the data.- Returns:
- VDBMacro
-
getStartPoints
public Vector getStartPoints()
Insert the method's description here. Creation date: (5.2.2001 12:10:18)- Specified by:
getStartPointsin interfaceMultiInLink- Returns:
- java.util.Vector
-
isRight
public boolean isRight()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)
-
setOutput
public void setOutput(OutLink output, OutLink prevOutput)
Insert the method's description here. Creation date: (29.1.2001 21:34:27)
-
getOutput
public OutLink getOutput()
Insert the method's description here. Creation date: (29.1.2001 21:34:27)
-
updateTemplateLink
public void updateTemplateLink()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)
-
getLinkCount
public int getLinkCount()
Description copied from interface:MultiInLinkInsert the method's description here. Creation date: (4.5.2001 9:51:40)- Specified by:
getLinkCountin interfaceMultiInLink- Returns:
- java.util.Vector
-
getOutlinks
public Vector getOutlinks()
- Specified by:
getOutlinksin interfaceMultiInLink- Returns:
- something
-
getTopOffset
public int getTopOffset()
Description copied from class:VisibleObjectReturns the offset in pixels(the length of additional objects (arrows, strings) drawn above this object.- Overrides:
getTopOffsetin classVisibleObject- Returns:
- something
-
getLeftOffset
public int getLeftOffset()
Description copied from class:VisibleObjectReturns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.- Overrides:
getLeftOffsetin classVisibleObject- Returns:
- something
-
getRightOffset
public int getRightOffset()
Description copied from class:VisibleObjectReturns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.- Overrides:
getRightOffsetin classVisibleObject- Returns:
- something
-
copyToGroup
public Flexible copyToGroup(Object dsId, String group)
Description copied from interface:FlexibleReturns the copied instance or null if the object cannot be copied. Creation date: (4.2.2001 21:59:44)- Specified by:
copyToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
getFlexibleName
public String getFlexibleName()
Description copied from interface:FlexibleInsert the method's description here. Creation date: (3.5.2001 10:15:48)- Specified by:
getFlexibleNamein interfaceFlexible- Returns:
- java.lang.String
-
moveToGroup
public boolean moveToGroup(Object dsId, String group)
Description copied from interface:FlexibleInsert the method's description here. Creation date: (4.2.2001 22:00:01)- Specified by:
moveToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
-