Class Line
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.Line
-
- All Implemented Interfaces:
BorderObject,Clipboardable,Flexible,Movable,Selectable,Visitable,Popupable
public class Line extends VisibleObject implements BorderObject, Flexible, Movable, Popupable, Selectable, Clipboardable
- Author:
- ssah To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates.
-
-
Field Summary
-
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)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.protected voiddraw(Graphics g, boolean hilited)Insert the method's description here.static booleangetCurrentEndArrow()static booleangetCurrentStartArrow()booleangetDashed()booleangetEndArrow()VertexgetEndVertex()StringgetFlexibleName()Insert the method's description here.StringgetHashID()Insert the method's description here.intgetHeight()Insert the method's description here.VectorgetItems()Insert the method's description here.StringgetName()booleangetStartArrow()VertexgetStartVertex()intgetWidth()Insert the method's description here.intgetX()Insert the method's description here.intgetY()Insert the method's description here.VisibleObjecthiliteComponentsCheck(int x, int y)Returned value inicates change Creation date: (21.12.2000 22:21:12)VisibleObjectintersects(int px, int py)Creation date: (19.12.2000 20:20:20)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.voidrevalidatePosition()Insert the method's description here.voidsetDashed(boolean parDashed)voidsetEndArrow(boolean parEndArrow)voidsetStartArrow(boolean parStartArrow)voidsnapToGrid()Snap to grid.protected voidvalidate()Insert the method's description here.-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, unconditionalValidation
-
-
-
-
Method Detail
-
accept
public void accept(Visitor visitor)
-
checkMove
public boolean checkMove(int dx, int dy)Description copied from interface:MovableInsert the method's description here. Creation date: (27.12.2000 13:08:09)
-
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
-
destroy
public void destroy()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (30.1.2001 11:58:53)- Overrides:
destroyin classVisibleObject
-
draw
protected void draw(Graphics g, boolean hilited)
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 21:30:46)- Specified by:
drawin classVisibleObject- Parameters:
g- java.awt.Graphicshilited- boolean
-
getCurrentStartArrow
public static boolean getCurrentStartArrow()
- Returns:
- something
-
getCurrentEndArrow
public static boolean getCurrentEndArrow()
- Returns:
- something
-
getEndArrow
public boolean getEndArrow()
- Returns:
- something
-
getEndVertex
public Vertex getEndVertex()
- 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
-
getHashID
public String getHashID()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (3.5.2001 16:40:00)- Specified by:
getHashIDin classVisibleObject- Returns:
- java.lang.String
-
getDashed
public boolean getDashed()
- Returns:
- something
-
getItems
public Vector getItems()
Description copied from interface:PopupableInsert the method's description here. Creation date: (2.2.2001 20:26:25)
-
getName
public String getName()
- Specified by:
getNamein interfaceBorderObject- Returns:
- something
-
getStartArrow
public boolean getStartArrow()
- Returns:
- something
-
getStartVertex
public Vertex getStartVertex()
- Returns:
- something
-
move
public boolean move(int dx, int dy)Description copied from interface:MovableInsert the method's description here. Creation date: (25.12.2000 14:13:14)
-
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
-
rename
public boolean rename(Object dsId, String newName)
Description copied from interface:FlexibleInsert the method's description here. Creation date: (2.5.2001 23:23:17)
-
revalidatePosition
public void revalidatePosition()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (21.12.2000 21:21:59)- Specified by:
revalidatePositionin classVisibleObject
-
setEndArrow
public void setEndArrow(boolean parEndArrow)
- Parameters:
parEndArrow- parEndArrow
-
setStartArrow
public void setStartArrow(boolean parStartArrow)
- Parameters:
parStartArrow- parStartArrow
-
setDashed
public void setDashed(boolean parDashed)
- Parameters:
parDashed- parDashed
-
validate
protected void validate()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 21:31:15)- Specified by:
validatein classVisibleObject
-
hiliteComponentsCheck
public VisibleObject hiliteComponentsCheck(int x, int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12)- Parameters:
x- inty- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
intersects
public VisibleObject intersects(int px, int py)
Creation date: (19.12.2000 20:20:20)- Overrides:
intersectsin classVisibleObject- Parameters:
px- intpy- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
getX
public int getX()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 20:10:52)- Overrides:
getXin classVisibleObject- Returns:
- int
-
getY
public int getY()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 20:10:52)- Overrides:
getYin classVisibleObject- Returns:
- int
-
getWidth
public int getWidth()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 20:10:52)- Overrides:
getWidthin classVisibleObject- Returns:
- int
-
getHeight
public int getHeight()
Description copied from class:VisibleObjectInsert the method's description here. Creation date: (19.12.2000 20:10:52)- Overrides:
getHeightin classVisibleObject- Returns:
- int
-
snapToGrid
public void snapToGrid()
Description copied from class:VisibleObjectSnap to grid. Nearest point is taken.- Overrides:
snapToGridin classVisibleObject
-
-