Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class BendpointConnectionRouter

java.lang.Object
  extended by

org.eclipse.draw2d.AbstractRouter
      extended by
org.eclipse.draw2d.BendpointConnectionRouter
All Implemented Interfaces:
ConnectionRouter

public class BendpointConnectionRouter
extends AbstractRouter

Routes Connections through a List of Bendpoints.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d. ConnectionRouter
ConnectionRouter.NullConnectionRouter
 
Field Summary
 
Fields inherited from interface org.eclipse.draw2d. ConnectionRouter
NULL
 
Constructor Summary
BendpointConnectionRouter ()
           
 
Method Summary
 java.lang.Object getConstraint ( Connection connection)
          Gets the constraint for the given Connection.
 void remove ( Connection connection)
          Removes the given connection from the map of constraints.
 void route ( Connection conn)
          Routes the Connection.
 void setConstraint ( Connection connection, java.lang.Object constraint)
          Sets the constraint for the given Connection.
 
Methods inherited from class org.eclipse.draw2d. AbstractRouter
getEndPoint, getStartPoint, invalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BendpointConnectionRouter

public BendpointConnectionRouter()
Method Detail

getConstraint

public java.lang.Object getConstraint(
Connection connection)
Gets the constraint for the given Connection.

Specified by:
getConstraint in interface ConnectionRouter
Overrides:
getConstraint in class AbstractRouter
Parameters:
connection - The connection whose constraint we are retrieving
Returns:
The constraint

remove

public void remove(
Connection connection)
Removes the given connection from the map of constraints.

Specified by:
remove in interface ConnectionRouter
Overrides:
remove in class AbstractRouter
Parameters:
connection - The connection to remove

route

public void route(
Connection conn)
Routes the Connection. Expects the constraint to be a List of Bendpoints.

Parameters:
conn - The connection to route

setConstraint

public void setConstraint(
Connection connection,
                          java.lang.Object constraint)
Sets the constraint for the given Connection.

Specified by:
setConstraint in interface ConnectionRouter
Overrides:
setConstraint in class AbstractRouter
Parameters:
connection - The connection whose constraint we are setting
constraint - The constraint

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire