Source Code Cross Referenced for ICanvasLink.java in  » IDE-Netbeans » soa » org » netbeans » modules » soa » mapper » common » gtk » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » soa » org.netbeans.modules.soa.mapper.common.gtk 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * The contents of this file are subject to the terms of the Common Development
003:         * and Distribution License (the License). You may not use this file except in
004:         * compliance with the License.
005:         * 
006:         * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007:         * or http://www.netbeans.org/cddl.txt.
008:         * 
009:         * When distributing Covered Code, include this CDDL Header Notice in each file
010:         * and include the License file at http://www.netbeans.org/cddl.txt.
011:         * If applicable, add the following below the CDDL Header, with the fields
012:         * enclosed by brackets [] replaced by your own identifying information:
013:         * "Portions Copyrighted [year] [name of copyright owner]"
014:         * 
015:         * The Original Software is NetBeans. The Initial Developer of the Original
016:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017:         * Microsystems, Inc. All Rights Reserved.
018:         */
019:
020:        package org.netbeans.modules.soa.mapper.common.gtk;
021:
022:        import com.nwoods.jgo.JGoPort;
023:
024:        /**
025:         * ICanvasLink connects two ports.  If the position of one or both of
026:         * its ports changes, the ICanvasLink redraws itself to connect the
027:         * new positions.
028:         * <p>
029:         * The default link stroke will consist of three segments.  The
030:         * end segments, at the ports, will be relatively short and either
031:         * horizontal or vertical.  The middle segment will be just a straight
032:         * line connecting the two short segments at the ports.  There is
033:         * no short end segment if the corresponding port does not have a
034:         * link port spot (i.e., the value is NoSpot).
035:         * <p>
036:         * By turning on the Orthogonal property, a link will have segments
037:         * that are all either horizontal or vertical.  To handle what would
038:         * normally be "Z" shaped links, there are five segments (i.e. six
039:         * stroke points).
040:         * <p>
041:         * A selected link will not have selection handles at the very
042:         * end points, unless there are only one or two segments in the stroke.
043:         * Resizing a link causes a new link to be started, keeping one
044:         * of the ports for the new link.
045:         * <p>
046:         * You can define your own style of link by overriding calculateStroke()
047:         * or by overriding paint().
048:         * <p>
049:         * The resize behavior for the user's "relinking" an existing link
050:         * to a different port sets the link's corresponding port to null
051:         * and calls the Canvas.startReLink method.
052:         * <p>
053:         * Three properties have been added: Relinkable, AvoidsNodes, and JumpsOver.
054:         * <p>
055:         * A Relinkable link (by default true) allows the user to interactively
056:         * reconnect one end of the link to another valid port (or to the original
057:         * port; or to nothing, thereby deleting the link).
058:         * <p>
059:         * A link that AvoidsNodes has a smarter implementation of calculateStroke()
060:         * that routes the path of the link so as to try not to cross any avoidable
061:         * objects.  Of course, if either end of the link is inside an object,
062:         * or if there is no non-area-crossing path that be found, the path
063:         * of the link may default to the standard calculateStroke behavior.
064:         * You can customize the objects to be avoided by overriding
065:         * ICanvasModel.isAvoidable and ICanvasModel.getAvoidableRectangle
066:         * -- by default ICanvasModel.isAvoidable is true for instances of JGoArea,
067:         * and the size and position of the object to be avoided is just the
068:         * bounding rectangle of the area.
069:         * This property, by default false, only applies when isOrthogonal()
070:         * is true and isCubic() is false.
071:         * Setting this property to true will incur some additional overhead to
072:         * search for the shortest, straightest path between the ports.
073:         * You may wish to set JGoView.setDragsRealtime(false) in order to
074:         * improve responsiveness while dragging.
075:         * <p>
076:         * A link that JumpsOver is drawn with small half-ellipses where the
077:         * path of the segment crosses over another link whose isJumpsOver()
078:         * property is true.
079:         * Both the link that crosses over and the link that is crossed over
080:         * must have the Orthogonal property true, the Cubic property false,
081:         * and the JumpsOver property true.  The crossed over link must
082:         * be "behind" the crossing link.  This property is false by default.
083:         * Setting this property to true will incur some additional overhead to
084:         * detect segment intersections.
085:         * You may wish to set ICanvas.setDragsRealtime(false) in order to
086:         * improve responsiveness while dragging.
087:         * This property may also be ignored when the view's scale is small.
088:         * <P>
089:         * @author    Charles Zhu
090:         * @created   December 3, 2002
091:         */
092:
093:        public interface ICanvasLink {
094:            /**
095:             * Retrieves the source node
096:             *
097:             * @return   - source
098:             */
099:            ICanvasNode getSourceNode();
100:
101:            /**
102:             * Retrieves the destination node
103:             *
104:             * @return ICanvasNode
105:             */
106:            ICanvasNode getDestinationNode();
107:
108:            /**
109:             * Updates the label text
110:             *
111:             * @param name - the name
112:             */
113:            void updateLabelText(String name);
114:
115:            /**
116:             * sets the label text
117:             *
118:             * @param label - the canvas link label
119:             */
120:            void setLabel(ICanvasLinkLabel label);
121:
122:            /**
123:             * gets the linklabel
124:             *
125:             * @return       The label value
126:             */
127:            ICanvasLinkLabel getLabel();
128:
129:            /**
130:             * Sets the labelVisible attribute of the ICanvasLink object
131:             *
132:             * @param val  The new labelVisible value
133:             */
134:            void setLabelVisible(boolean val);
135:
136:            /**
137:             * Sets the data object
138:             * @param  dataobject  The data object
139:             */
140:            void setDataObject(Object dataObject);
141:
142:            /**
143:             * Gets the data object
144:             * @return  dataobject
145:             */
146:            Object getDataObject();
147:
148:            /**
149:             * start highlighting this link
150:             */
151:            void startHighlighting();
152:
153:            /**
154:             * stop highlighting this link
155:             */
156:            void stopHighlighting();
157:
158:            /**
159:             * get start port
160:             * @return
161:             */
162:            JGoPort getStartPort();
163:
164:            /**
165:             * get end port
166:             * @return
167:             */
168:            JGoPort getEndPort();
169:        }
www___.___ja___v__a_2___s_.c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.