File: iicm.widgets.ImageButton.html

package info (click to toggle)
vrwave 0.9-4
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 5,032 kB
  • ctags: 7,153
  • sloc: java: 15,050; ansic: 8,219; sh: 458; makefile: 181
file content (205 lines) | stat: -rw-r--r-- 8,322 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Thu Sep 25 20:23:36 MET DST 1997 -->
<a name="_top_"></a>
<title>
  Class iicm.widgets.ImageButton
</title>
</head>
<body background="vrwavebg.gif">
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-iicm.widgets.html">This Package</a>  <a href="iicm.widgets.FramedArea.html#_top_">Previous</a>  <a href="iicm.widgets.ImageButtonGroup.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class iicm.widgets.ImageButton
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----<a href="java.awt.Canvas.html#_top_">java.awt.Canvas</a>
                   |
                   +----iicm.widgets.ImageButton
</pre>
<hr>
<dl>
  <dt> public class <b>ImageButton</b>
  <dt> extends <a href="java.awt.Canvas.html#_top_">Canvas</a>
</dl>
ImageButton - image button
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ImageButton(java.lang.String, java.awt.Image, int, int, boolean, iicm.widgets.ImageButtonGroup)"><b>ImageButton</b></a>(String, Image, int, int, boolean, ImageButtonGroup)
  <dd> constructor

</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getState()"><b>getState</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#minimumSize()"><b>minimumSize</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#mouseDown(java.awt.Event, int, int)"><b>mouseDown</b></a>(Event, int, int)
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#paint(java.awt.Graphics)"><b>paint</b></a>(Graphics)
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#preferredSize()"><b>preferredSize</b></a>()
  <dd> 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setState(boolean)"><b>setState</b></a>(boolean)
  <dd> 
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#subimage(java.awt.Image, int, int, int, int, java.awt.Component)"><b>subimage</b></a>(Image, int, int, int, int, Component)
  <dd> small helper to crop a subimage area out of an image.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#update(java.awt.Graphics)"><b>update</b></a>(Graphics)
  <dd> 
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#waitForImage(java.awt.Image, java.awt.Component)"><b>waitForImage</b></a>(Image, Component)
  <dd> small helper to wait until an image is completely loaded

</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ImageButton"></a>
<a name="ImageButton(java.lang.String, java.awt.Image, int, int, boolean, iicm.widgets.ImageButtonGroup)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ImageButton</b>
<pre>
  public ImageButton(<a href="java.lang.String.html#_top_">String</a> label,
                     <a href="java.awt.Image.html#_top_">Image</a> img,
                     int width,
                     int height,
                     boolean state,
                     <a href="iicm.widgets.ImageButtonGroup.html#_top_">ImageButtonGroup</a> group)
</pre>
<dl>
  <dd> constructor
  <dl>
    <dt> <b>Parameters:</b>
    <dd> label - label used when img is null
    <dd> width - image width, substituted by label width when img is null
    <dd> height - allows uniform button height if some images are not available,
width determined from image or label
    <dd> state - initial state flag
    <dd> group - ImageButtonGroup for radio buttons, null for toggle buttons
  </dl>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="subimage(java.awt.Image, int, int, int, int, java.awt.Component)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="subimage"><b>subimage</b></a>
<pre>
  public static <a href="java.awt.Image.html#_top_">Image</a> subimage(<a href="java.awt.Image.html#_top_">Image</a> img,
                               int x,
                               int y,
                               int w,
                               int h,
                               <a href="java.awt.Component.html#_top_">Component</a> target)
</pre>
<dl>
  <dd> small helper to crop a subimage area out of an image.
will wait until cropping has been completed when target is non-null.
</dl>
<a name="waitForImage(java.awt.Image, java.awt.Component)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="waitForImage"><b>waitForImage</b></a>
<pre>
  public static boolean waitForImage(<a href="java.awt.Image.html#_top_">Image</a> img,
                                     <a href="java.awt.Component.html#_top_">Component</a> target)
</pre>
<dl>
  <dd> small helper to wait until an image is completely loaded
  <dl>
    <dt> <b>Returns:</b>
    <dd> flag whether all was ok
  </dl>
</dl>
<a name="minimumSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="minimumSize"><b>minimumSize</b></a>
<pre>
  public <a href="java.awt.Dimension.html#_top_">Dimension</a> minimumSize()
</pre>
<dl>
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#minimumSize()">minimumSize</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl>
</dl>
<a name="preferredSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="preferredSize"><b>preferredSize</b></a>
<pre>
  public <a href="java.awt.Dimension.html#_top_">Dimension</a> preferredSize()
</pre>
<dl>
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#preferredSize()">preferredSize</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl>
</dl>
<a name="update(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="update"><b>update</b></a>
<pre>
  public void update(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)
</pre>
<dl>
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#update(java.awt.Graphics)">update</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl>
</dl>
<a name="paint(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="paint"><b>paint</b></a>
<pre>
  public void paint(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)
</pre>
<dl>
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Canvas.html#paint(java.awt.Graphics)">paint</a> in class <a href="java.awt.Canvas.html#_top_">Canvas</a>
  </dl>
</dl>
<a name="mouseDown(java.awt.Event, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="mouseDown"><b>mouseDown</b></a>
<pre>
  public boolean mouseDown(<a href="java.awt.Event.html#_top_">Event</a> evt,
                           int x,
                           int y)
</pre>
<dl>
  <dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#mouseDown(java.awt.Event, int, int)">mouseDown</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl>
</dl>
<a name="setState(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setState"><b>setState</b></a>
<pre>
  public void setState(boolean value)
</pre>
<a name="getState()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getState"><b>getState</b></a>
<pre>
  public boolean getState()
</pre>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-iicm.widgets.html">This Package</a>  <a href="iicm.widgets.FramedArea.html#_top_">Previous</a>  <a href="iicm.widgets.ImageButtonGroup.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>