com.cosylab.vdct.graphics.objects
Class Border

java.lang.Object
  extended by com.cosylab.vdct.graphics.objects.VisibleObject
      extended by com.cosylab.vdct.graphics.objects.ContainerObject
          extended by com.cosylab.vdct.graphics.objects.Border
All Implemented Interfaces:
Clipboardable, Flexible, Movable, SaveObject, Selectable, Visitable

public class Border
extends ContainerObject
implements Selectable, SaveObject, Flexible, Clipboardable, Movable

Author:
msekoranja

Field Summary
 
Fields inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
subObjects, subObjectsV, useHashtable
 
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
 
Constructor Summary
Border(java.lang.String name, Group parent)
           
Border(java.lang.String parName, Group parentGroup, boolean useHashtable)
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean checkMove(int dx, int dy)
          Insert the method's description here.
 Flexible copyToGroup(java.lang.Object dsId, java.lang.String group)
          Returns the copied instance or null if the object cannot be copied.
 void destroy()
          Insert the method's description here.
protected  void draw(java.awt.Graphics g, boolean hilited)
          Insert the method's description here.
 java.lang.String getFlexibleName()
          Insert the method's description here.
 java.lang.String getHashID()
          Insert the method's description here.
 java.lang.String getName()
           
 VisibleObject hiliteComponentsCheck(int x, int y)
          Returned value inicates change Creation date: (21.12.2000 22:21:12)
 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 move(int dx, int dy)
          Insert the method's description here.
 boolean moveToGroup(java.lang.Object dsId, java.lang.String group)
          Insert the method's description here.
 java.lang.Object removeObject(java.lang.String id)
          Insert the method's description here.
 boolean rename(java.lang.Object dsId, java.lang.String newName)
          Insert the method's description here.
 void revalidatePosition()
          Insert the method's description here.
protected  void validate()
          Insert the method's description here.
 
Methods inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
addSubObject, addSubObject, addSubObject, clear, containsObject, getRootContainer, getSubObject, getSubObjects, getSubObjectsV, updateFields
 
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, 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
 

Constructor Detail

Border

public Border(java.lang.String name,
              Group parent)
Parameters:
parent -

Border

public Border(java.lang.String parName,
              Group parentGroup,
              boolean useHashtable)
Parameters:
parent -
useHashtable -
Method Detail

removeObject

public java.lang.Object removeObject(java.lang.String id)
Description copied from class: ContainerObject
Insert the method's description here. Creation date: (21.12.2000 20:32:49)

Overrides:
removeObject in class ContainerObject
Parameters:
id - java.lang.String
Returns:
java.lang.Object

destroy

public void destroy()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (30.1.2001 11:58:53)

Overrides:
destroy in class VisibleObject

draw

protected void draw(java.awt.Graphics g,
                    boolean hilited)
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 21:30:46)

Specified by:
draw in class VisibleObject
Parameters:
g - java.awt.Graphics
hilited - boolean

getHashID

public java.lang.String getHashID()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (3.5.2001 16:40:00)

Specified by:
getHashID in class VisibleObject
Returns:
java.lang.String

revalidatePosition

public void revalidatePosition()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (21.12.2000 21:21:59)

Specified by:
revalidatePosition in class VisibleObject

validate

protected void validate()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (19.12.2000 21:31:15)

Specified by:
validate in class VisibleObject

getFlexibleName

public java.lang.String getFlexibleName()
Description copied from interface: Flexible
Insert the method's description here. Creation date: (3.5.2001 10:15:48)

Specified by:
getFlexibleName in interface Flexible
Returns:
java.lang.String

checkMove

public boolean checkMove(int dx,
                         int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (27.12.2000 13:08:09)

Specified by:
checkMove in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean

move

public boolean move(int dx,
                    int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (25.12.2000 14:13:14)

Specified by:
move in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Visitable
Parameters:
visitor - com.cosylab.vdct.graphics.objects.Visitor

hiliteComponentsCheck

public VisibleObject hiliteComponentsCheck(int x,
                                           int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12)

Parameters:
x - int
y - int
Returns:
com.cosylab.visible.objects.VisibleObject

intersects

public VisibleObject intersects(int px,
                                int py)
Description copied from class: VisibleObject
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)

Overrides:
intersects in class VisibleObject
Parameters:
px - int
py - int
Returns:
com.cosylab.visible.objects.VisibleObject

intersects

public VisibleObject intersects(int p1x,
                                int p1y,
                                int p2x,
                                int p2y)
Description copied from class: VisibleObject
Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)

Overrides:
intersects in class VisibleObject
Parameters:
p1x - int
p1y - int
p2x - int
p2y - int
Returns:
com.cosylab.visible.objects.VisibleObject

getName

public java.lang.String getName()
Returns:
Returns the name.

copyToGroup

public Flexible copyToGroup(java.lang.Object dsId,
                            java.lang.String group)
Description copied from interface: Flexible
Returns the copied instance or null if the object cannot be copied. Creation date: (4.2.2001 21:59:44)

Specified by:
copyToGroup in interface Flexible
group - java.lang.String

moveToGroup

public boolean moveToGroup(java.lang.Object dsId,
                           java.lang.String group)
Description copied from interface: Flexible
Insert the method's description here. Creation date: (4.2.2001 22:00:01)

Specified by:
moveToGroup in interface Flexible
group - java.lang.String

rename

public boolean rename(java.lang.Object dsId,
                      java.lang.String newName)
Description copied from interface: Flexible
Insert the method's description here. Creation date: (2.5.2001 23:23:17)

Specified by:
rename in interface Flexible
newName - java.lang.String