Modelers

org.topcased.draw2d.layout
Class PortConstraint

java.lang.Object
  extended by org.topcased.draw2d.layout.PortConstraint

public class PortConstraint
extends java.lang.Object

The constraint of a Figure contained by a BorderAttachedLayout. The constraint consist of the bounds of the figure and an attachment to the border of the container figure. Creation : 14 oct. 2005


Constructor Summary
PortConstraint(org.eclipse.draw2d.geometry.Rectangle rect, int attach)
          The Constructor
 
Method Summary
 int getAttachment()
           
 org.eclipse.draw2d.geometry.Rectangle getRectConstraints()
           
 void setAttachment(int attach)
           
 void setRectConstraints(org.eclipse.draw2d.geometry.Rectangle constraints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortConstraint

public PortConstraint(org.eclipse.draw2d.geometry.Rectangle rect,
                      int attach)
The Constructor

Parameters:
rect -
attach -
Method Detail

getAttachment

public int getAttachment()
Returns:
Returns the attachment.

setAttachment

public void setAttachment(int attach)
Parameters:
attach - The attachment to set.

getRectConstraints

public org.eclipse.draw2d.geometry.Rectangle getRectConstraints()
Returns:
Returns the rectConstraints.

setRectConstraints

public void setRectConstraints(org.eclipse.draw2d.geometry.Rectangle constraints)
Parameters:
constraints - The rectConstraints to set.

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.