1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 package com.touchgraph.graphlayout;
51
52 import java.awt.Point;
53
54 import com.touchgraph.graphlayout.interaction.*;
55
56 /*** TGScrollPane is a Java interface for a user interface using scrollbars
57 * to set TouchGraph navigation and editing properties such as zoom, rotate
58 * and locality. If a particular UI doesn't use a specific scrollbar, the
59 * corresponding method should return a null.
60 *
61 * @author Murray Altheim
62 * @author Alex Shapiro
63 * @version 1.21 $Id: TGScrollPane.java,v 1.1.1.1 2004/02/06 08:44:05 keesj Exp $
64 */
65 public interface TGScrollPane {
66
67 /*** Return the TGPanel used with this TGScrollPane. */
68 public TGPanel getTGPanel();
69
70
71
72 /*** Return the HVScroll used with this TGScrollPane. */
73 public HVScroll getHVScroll();
74
75 /*** Return the HyperScroll used with this TGScrollPane. */
76 public HyperScroll getHyperScroll();
77
78 /*** Sets the horizontal offset to p.x, and the vertical offset to p.y
79 * given a Point <tt>p<tt>.
80 */
81 public void setOffset( Point p );
82
83 /*** Return the horizontal and vertical offset position as a Point. */
84 public Point getOffset();
85
86
87
88 /*** Return the RotateScroll used with this TGScrollPane. */
89 public RotateScroll getRotateScroll();
90
91 /*** Set the rotation angle of this TGScrollPane (allowable values between 0 to 359). */
92 public void setRotationAngle( int angle );
93
94 /*** Return the rotation angle of this TGScrollPane. */
95 public int getRotationAngle();
96
97
98
99 /*** Return the LocalityScroll used with this TGScrollPane. */
100 public LocalityScroll getLocalityScroll();
101
102 /*** Set the locality radius of this TGScrollPane
103 * (allowable values between 0 to 4, or LocalityUtils.INFINITE_LOCALITY_RADIUS).
104 */
105 public void setLocalityRadius( int radius );
106
107 /*** Return the locality radius of this TGScrollPane. */
108 public int getLocalityRadius();
109
110
111
112 /*** Return the ZoomScroll used with this TGScrollPane. */
113 public ZoomScroll getZoomScroll();
114
115 /*** Set the zoom value of this TGScrollPane (allowable values between -100 to 100). */
116 public void setZoomValue( int zoomValue );
117
118 /*** Return the zoom value of this TGScrollPane. */
119 public int getZoomValue();
120
121 }