java-api 17.25.0__py2-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- java/__init__.py +0 -0
- java/awt/__init__.py +265 -0
- java/awt/event/__init__.py +184 -0
- java/awt/geom/__init__.py +116 -0
- java/awt/image/__init__.py +14 -0
- java/awt/print/__init__.py +93 -0
- java/beans/__init__.py +38 -0
- java/io/__init__.py +442 -0
- java/lang/__init__.py +868 -0
- java/lang/reflect/__init__.py +9 -0
- java/math/__init__.py +93 -0
- java/net/__init__.py +504 -0
- java/net/http/__init__.py +15 -0
- java/nio/__init__.py +667 -0
- java/nio/channels/__init__.py +352 -0
- java/nio/charset/__init__.py +146 -0
- java/nio/file/__init__.py +728 -0
- java/nio/file/attribute/__init__.py +141 -0
- java/org/__init__.py +0 -0
- java/org/jdesktop/__init__.py +0 -0
- java/org/jdesktop/core/__init__.py +0 -0
- java/org/jdesktop/core/animation/__init__.py +0 -0
- java/org/jdesktop/core/animation/timing/__init__.py +17 -0
- java/security/__init__.py +27 -0
- java/text/__init__.py +543 -0
- java/time/__init__.py +575 -0
- java/time/chrono/__init__.py +319 -0
- java/time/format/__init__.py +72 -0
- java/time/temporal/__init__.py +353 -0
- java/util/__init__.py +1479 -0
- java/util/concurrent/__init__.py +147 -0
- java/util/function/__init__.py +131 -0
- java/util/regex/__init__.py +197 -0
- java/util/stream/__init__.py +128 -0
- java_api-17.25.0.dist-info/LICENSE +21 -0
- java_api-17.25.0.dist-info/METADATA +150 -0
- java_api-17.25.0.dist-info/RECORD +46 -0
- java_api-17.25.0.dist-info/WHEEL +5 -0
- java_api-17.25.0.dist-info/top_level.txt +2 -0
- javax/__init__.py +0 -0
- javax/security/__init__.py +0 -0
- javax/security/auth/__init__.py +14 -0
- javax/swing/__init__.py +483 -0
- javax/swing/event/__init__.py +43 -0
- javax/swing/plaf/__init__.py +28 -0
- javax/swing/text/__init__.py +19 -0
java/__init__.py
ADDED
|
File without changes
|
java/awt/__init__.py
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"AWTEvent",
|
|
5
|
+
"Color",
|
|
6
|
+
"Component",
|
|
7
|
+
"Container",
|
|
8
|
+
"Dimension",
|
|
9
|
+
"Frame",
|
|
10
|
+
"Graphics",
|
|
11
|
+
"GridLayout",
|
|
12
|
+
"Image",
|
|
13
|
+
"LayoutManager",
|
|
14
|
+
"Point",
|
|
15
|
+
"Toolkit",
|
|
16
|
+
"Window",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
from typing import Any, Optional, Union
|
|
20
|
+
|
|
21
|
+
from java.awt.geom import Dimension2D, Point2D
|
|
22
|
+
from java.lang import Object
|
|
23
|
+
from java.util import EventObject
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class LayoutManager(object):
|
|
27
|
+
def addLayoutComponent(self, name, comp):
|
|
28
|
+
# type: (Union[str, unicode], Component) -> None
|
|
29
|
+
raise NotImplementedError
|
|
30
|
+
|
|
31
|
+
def layoutContainer(self, parent):
|
|
32
|
+
# type: (Container) -> None
|
|
33
|
+
raise NotImplementedError
|
|
34
|
+
|
|
35
|
+
def minimumLayoutSize(self, parent):
|
|
36
|
+
# type: (Container) -> Dimension
|
|
37
|
+
raise NotImplementedError
|
|
38
|
+
|
|
39
|
+
def preferredLayoutSize(self, parent):
|
|
40
|
+
# type: (Container) -> Dimension
|
|
41
|
+
raise NotImplementedError
|
|
42
|
+
|
|
43
|
+
def removeLayoutComponent(self, comp):
|
|
44
|
+
# type: (Component) -> None
|
|
45
|
+
raise NotImplementedError
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class AWTEvent(EventObject):
|
|
49
|
+
_id = None # type: int
|
|
50
|
+
|
|
51
|
+
def __init__(self, source, id):
|
|
52
|
+
# type: (Object, int) -> None
|
|
53
|
+
super(AWTEvent, self).__init__(source)
|
|
54
|
+
self._id = id
|
|
55
|
+
|
|
56
|
+
def getID(self):
|
|
57
|
+
# type: () -> int
|
|
58
|
+
return self._id
|
|
59
|
+
|
|
60
|
+
def paramString(self):
|
|
61
|
+
# type: () -> Union[str, unicode]
|
|
62
|
+
pass
|
|
63
|
+
|
|
64
|
+
def setSource(self, newSource):
|
|
65
|
+
# type: (Object) -> None
|
|
66
|
+
pass
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class Color(Object):
|
|
70
|
+
def __init__(self, *args):
|
|
71
|
+
# type: (*Any) -> None
|
|
72
|
+
super(Color, self).__init__()
|
|
73
|
+
print(args)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class Component(Object):
|
|
77
|
+
def imageUpdate(
|
|
78
|
+
self,
|
|
79
|
+
img, # type: Image
|
|
80
|
+
infoflags, # type: int
|
|
81
|
+
x, # type: int
|
|
82
|
+
y, # type: int
|
|
83
|
+
width, # type: int
|
|
84
|
+
height, # type: int
|
|
85
|
+
):
|
|
86
|
+
# type: (...) -> bool
|
|
87
|
+
return True
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class Container(Component):
|
|
91
|
+
def add(self, *args):
|
|
92
|
+
# type: (*Any) -> Optional[Component]
|
|
93
|
+
pass
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class Dimension(Dimension2D):
|
|
97
|
+
height = None # type: int
|
|
98
|
+
width = None # type: int
|
|
99
|
+
|
|
100
|
+
def __init__(self, *args):
|
|
101
|
+
# type: (*Any) -> None
|
|
102
|
+
super(Dimension, self).__init__()
|
|
103
|
+
print(args)
|
|
104
|
+
|
|
105
|
+
def getHeight(self):
|
|
106
|
+
# type: () -> float
|
|
107
|
+
pass
|
|
108
|
+
|
|
109
|
+
def getSize(self):
|
|
110
|
+
# type: () -> Dimension
|
|
111
|
+
pass
|
|
112
|
+
|
|
113
|
+
def getWidth(self):
|
|
114
|
+
# type: () -> float
|
|
115
|
+
pass
|
|
116
|
+
|
|
117
|
+
def setSize(self, *args):
|
|
118
|
+
# type: (*Any) -> None
|
|
119
|
+
pass
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class Image(Object):
|
|
123
|
+
def flush(self):
|
|
124
|
+
# type: () -> None
|
|
125
|
+
pass
|
|
126
|
+
|
|
127
|
+
def getAccelerationPriority(self):
|
|
128
|
+
# type: () -> float
|
|
129
|
+
pass
|
|
130
|
+
|
|
131
|
+
def setAccelerationPriority(self, priority):
|
|
132
|
+
# type: (float) -> None
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class Point(Point2D):
|
|
137
|
+
x = 0
|
|
138
|
+
y = 0
|
|
139
|
+
|
|
140
|
+
def __init__(self, *args):
|
|
141
|
+
# type: (*Any) -> None
|
|
142
|
+
super(Point, self).__init__()
|
|
143
|
+
print(args)
|
|
144
|
+
|
|
145
|
+
def getLocation(self):
|
|
146
|
+
# type: () -> Point
|
|
147
|
+
pass
|
|
148
|
+
|
|
149
|
+
def getX(self):
|
|
150
|
+
# type: () -> float
|
|
151
|
+
pass
|
|
152
|
+
|
|
153
|
+
def getY(self):
|
|
154
|
+
# type: () -> float
|
|
155
|
+
pass
|
|
156
|
+
|
|
157
|
+
def move(self, x, y):
|
|
158
|
+
# type: (int, int) -> None
|
|
159
|
+
pass
|
|
160
|
+
|
|
161
|
+
def setLocation(self, *args):
|
|
162
|
+
# type: (*Any) -> None
|
|
163
|
+
pass
|
|
164
|
+
|
|
165
|
+
def translate(self, dx, dy):
|
|
166
|
+
# type: (int, int) -> None
|
|
167
|
+
pass
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class Toolkit(Object):
|
|
171
|
+
def __init__(self):
|
|
172
|
+
# type: () -> None
|
|
173
|
+
super(Toolkit, self).__init__()
|
|
174
|
+
|
|
175
|
+
def beep(self):
|
|
176
|
+
# type: () -> None
|
|
177
|
+
print(self, "Beep!")
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def getDefaultToolkit():
|
|
181
|
+
# type: () -> Toolkit
|
|
182
|
+
return Toolkit()
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class Window(Container):
|
|
186
|
+
def __init__(self, *args):
|
|
187
|
+
# type: (*Any) -> None
|
|
188
|
+
super(Window, self).__init__()
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class Frame(Window):
|
|
192
|
+
def __init__(self, *args):
|
|
193
|
+
# type: (*Any) -> None
|
|
194
|
+
super(Frame, self).__init__(*args)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class Graphics(Object):
|
|
198
|
+
def create(self):
|
|
199
|
+
# type: () -> Graphics
|
|
200
|
+
raise NotImplementedError
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class GridLayout(Object, LayoutManager):
|
|
204
|
+
def __init__(
|
|
205
|
+
self,
|
|
206
|
+
rows=None, # type: Optional[int]
|
|
207
|
+
cols=None, # type: Optional[int]
|
|
208
|
+
hgap=None, # type: Optional[int]
|
|
209
|
+
vgap=None, # type: Optional[int]
|
|
210
|
+
):
|
|
211
|
+
# type: (...) -> None
|
|
212
|
+
super(GridLayout, self).__init__()
|
|
213
|
+
print(rows, cols, hgap, vgap)
|
|
214
|
+
|
|
215
|
+
def addLayoutComponent(self, name, comp):
|
|
216
|
+
# type: (Union[str, unicode], Component) -> None
|
|
217
|
+
pass
|
|
218
|
+
|
|
219
|
+
def getColumns(self):
|
|
220
|
+
# type: () -> int
|
|
221
|
+
pass
|
|
222
|
+
|
|
223
|
+
def getHgap(self):
|
|
224
|
+
# type: () -> int
|
|
225
|
+
pass
|
|
226
|
+
|
|
227
|
+
def getRows(self):
|
|
228
|
+
# type: () -> int
|
|
229
|
+
pass
|
|
230
|
+
|
|
231
|
+
def getVgap(self):
|
|
232
|
+
# type: () -> int
|
|
233
|
+
pass
|
|
234
|
+
|
|
235
|
+
def layoutContainer(self, parent):
|
|
236
|
+
# type: (Container) -> None
|
|
237
|
+
pass
|
|
238
|
+
|
|
239
|
+
def minimumLayoutSize(self, parent):
|
|
240
|
+
# type: (Container) -> Dimension
|
|
241
|
+
pass
|
|
242
|
+
|
|
243
|
+
def preferredLayoutSize(self, parent):
|
|
244
|
+
# type: (Container) -> Dimension
|
|
245
|
+
pass
|
|
246
|
+
|
|
247
|
+
def removeLayoutComponent(self, comp):
|
|
248
|
+
# type: (Component) -> None
|
|
249
|
+
pass
|
|
250
|
+
|
|
251
|
+
def setColumns(self, cols):
|
|
252
|
+
# type: (int) -> None
|
|
253
|
+
pass
|
|
254
|
+
|
|
255
|
+
def setHgap(self, hgap):
|
|
256
|
+
# type: (int) -> None
|
|
257
|
+
pass
|
|
258
|
+
|
|
259
|
+
def setRows(self, rows):
|
|
260
|
+
# type: (int) -> None
|
|
261
|
+
pass
|
|
262
|
+
|
|
263
|
+
def setVgap(self, vgap):
|
|
264
|
+
# type: (int) -> None
|
|
265
|
+
pass
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
__all__ = ["ActionEvent", "ComponentEvent", "InputEvent", "MouseEvent"]
|
|
4
|
+
|
|
5
|
+
from typing import Any, Union
|
|
6
|
+
|
|
7
|
+
from java.awt import AWTEvent, Component, Point
|
|
8
|
+
from java.lang import Object
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ActionEvent(AWTEvent):
|
|
12
|
+
ACTION_FIRST = None # type: int
|
|
13
|
+
ACTION_LAST = None # type: int
|
|
14
|
+
ACTION_PERFORMED = None # type: int
|
|
15
|
+
ACTION_MASK = None # type: int
|
|
16
|
+
CTRL_MASK = None # type: int
|
|
17
|
+
META_MASK = None # type: int
|
|
18
|
+
SHIFT_MASK = None # type: int
|
|
19
|
+
|
|
20
|
+
def __init__(self, source, id, *args):
|
|
21
|
+
# type: (Object, int, *Any) -> None
|
|
22
|
+
print(args)
|
|
23
|
+
super(ActionEvent, self).__init__(source, id)
|
|
24
|
+
|
|
25
|
+
def getActionCommand(self):
|
|
26
|
+
# type: () -> Union[str, unicode]
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def getModifiers(self):
|
|
30
|
+
# type: () -> int
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
def getWhen(self):
|
|
34
|
+
# type: () -> long
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class ComponentEvent(AWTEvent):
|
|
39
|
+
COMPONENT_FIRST = None # type: int
|
|
40
|
+
COMPONENT_HIDDEN = None # type: int
|
|
41
|
+
COMPONENT_LAST = None # type: int
|
|
42
|
+
COMPONENT_MOVED = None # type: int
|
|
43
|
+
COMPONENT_RESIZED = None # type: int
|
|
44
|
+
COMPONENT_SHOWN = None # type: int
|
|
45
|
+
|
|
46
|
+
def __init__(self, source, id):
|
|
47
|
+
# type: (Object, int) -> None
|
|
48
|
+
super(ComponentEvent, self).__init__(source, id)
|
|
49
|
+
|
|
50
|
+
def getComponent(self):
|
|
51
|
+
# type: () -> Component
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class InputEvent(ComponentEvent):
|
|
56
|
+
ALT_DOWN_MASK = None # type: int
|
|
57
|
+
ALT_GRAPH_DOWN_MASK = None # type: int
|
|
58
|
+
ALT_GRAPH_MASL = None # type: int
|
|
59
|
+
ALT_MASK = None # type: int
|
|
60
|
+
BUTTON1_DOWN_MASK = None # type: int
|
|
61
|
+
BUTTOM1_MASK = None # type: int
|
|
62
|
+
BUTTON2_DOWN_MASK = None # type: int
|
|
63
|
+
BUTTON2_MASK = None # type: int
|
|
64
|
+
BUTTON3_DOWN_MASK = None # type: int
|
|
65
|
+
BUTTON3_MASK = None # type: int
|
|
66
|
+
CTRL_DOWN_MASK = None # type: int
|
|
67
|
+
CTRL_MASK = None # type: int
|
|
68
|
+
META_DOWN_MASK = None # type: int
|
|
69
|
+
META_MASK = None # type: int
|
|
70
|
+
SHIFT_DOWN_MASK = None # type: int
|
|
71
|
+
SHIFT_MASK = None # type: int
|
|
72
|
+
|
|
73
|
+
def consume(self):
|
|
74
|
+
# type: () -> None
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
@staticmethod
|
|
78
|
+
def getMaskForButton(button):
|
|
79
|
+
# type: (int) -> int
|
|
80
|
+
pass
|
|
81
|
+
|
|
82
|
+
def getModifiersEx(self):
|
|
83
|
+
# type: () -> int
|
|
84
|
+
pass
|
|
85
|
+
|
|
86
|
+
@staticmethod
|
|
87
|
+
def getModifiersExText(modifiers):
|
|
88
|
+
# type: (int) -> Union[str, unicode]
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
def getWhen(self):
|
|
92
|
+
# type: () -> long
|
|
93
|
+
pass
|
|
94
|
+
|
|
95
|
+
def isAltDown(self):
|
|
96
|
+
# type: () -> bool
|
|
97
|
+
return True
|
|
98
|
+
|
|
99
|
+
def isAltGraphDown(self):
|
|
100
|
+
# type: () -> bool
|
|
101
|
+
return True
|
|
102
|
+
|
|
103
|
+
def isConsumed(self):
|
|
104
|
+
# type: () -> bool
|
|
105
|
+
return True
|
|
106
|
+
|
|
107
|
+
def isControlDown(self):
|
|
108
|
+
# type: () -> bool
|
|
109
|
+
return True
|
|
110
|
+
|
|
111
|
+
def isMetaDown(self):
|
|
112
|
+
# type: () -> bool
|
|
113
|
+
return True
|
|
114
|
+
|
|
115
|
+
def isShiftDown(self):
|
|
116
|
+
# type: () -> bool
|
|
117
|
+
return True
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class MouseEvent(InputEvent):
|
|
121
|
+
BUTTON1 = None # type: int
|
|
122
|
+
BUTTON2 = None # type: int
|
|
123
|
+
BUTTON3 = None # type: int
|
|
124
|
+
MOUSE_CLICKED = None # type: int
|
|
125
|
+
MOUSE_DRAGGED = None # type: int
|
|
126
|
+
MOUSE_ENTERED = None # type: int
|
|
127
|
+
MOUSE_EXITED = None # type: int
|
|
128
|
+
MOUSE_FIRST = None # type: int
|
|
129
|
+
MOUSE_LAST = None # type: int
|
|
130
|
+
MOUSE_MOVED = None # type: int
|
|
131
|
+
MOUSE_PRESSED = None # type: int
|
|
132
|
+
MOUSE_RELEASED = None # type: int
|
|
133
|
+
MOUSE_WHEEL = None # type: int
|
|
134
|
+
NOBUTTON = None # type: int
|
|
135
|
+
|
|
136
|
+
def __init__(self, source, id, *args):
|
|
137
|
+
# type: (Component, int, *Any) -> None
|
|
138
|
+
print(args)
|
|
139
|
+
super(MouseEvent, self).__init__(source, id)
|
|
140
|
+
|
|
141
|
+
def getButton(self):
|
|
142
|
+
# type: () -> int
|
|
143
|
+
pass
|
|
144
|
+
|
|
145
|
+
def getClickCount(self):
|
|
146
|
+
# type: () -> int
|
|
147
|
+
pass
|
|
148
|
+
|
|
149
|
+
def getLocationOnScreen(self):
|
|
150
|
+
# type: () -> Point
|
|
151
|
+
pass
|
|
152
|
+
|
|
153
|
+
@staticmethod
|
|
154
|
+
def getMouseModifiersText(modifiers):
|
|
155
|
+
# type: (int) -> Union[str, unicode]
|
|
156
|
+
pass
|
|
157
|
+
|
|
158
|
+
def getPoint(self):
|
|
159
|
+
# type: () -> Point
|
|
160
|
+
pass
|
|
161
|
+
|
|
162
|
+
def getX(self):
|
|
163
|
+
# type: () -> int
|
|
164
|
+
pass
|
|
165
|
+
|
|
166
|
+
def getXOnScreen(self):
|
|
167
|
+
# type: () -> int
|
|
168
|
+
pass
|
|
169
|
+
|
|
170
|
+
def getY(self):
|
|
171
|
+
# type: () -> int
|
|
172
|
+
pass
|
|
173
|
+
|
|
174
|
+
def getYOnScreen(self):
|
|
175
|
+
# type: () -> int
|
|
176
|
+
pass
|
|
177
|
+
|
|
178
|
+
def isPopupTrigger(self):
|
|
179
|
+
# type: () -> bool
|
|
180
|
+
return True
|
|
181
|
+
|
|
182
|
+
def translatePoint(self, x, y):
|
|
183
|
+
# type: (int, int) -> None
|
|
184
|
+
pass
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
__all__ = ["Dimension2D", "Point2D"]
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from java.lang import Object
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Dimension2D(Object):
|
|
9
|
+
def getHeight(self):
|
|
10
|
+
# type: () -> float
|
|
11
|
+
raise NotImplementedError
|
|
12
|
+
|
|
13
|
+
def getWidth(self):
|
|
14
|
+
# type: () -> float
|
|
15
|
+
raise NotImplementedError
|
|
16
|
+
|
|
17
|
+
def setSize(self, *args):
|
|
18
|
+
# type: (*Any) -> None
|
|
19
|
+
raise NotImplementedError
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Point2D(Object):
|
|
23
|
+
|
|
24
|
+
class Double(Object):
|
|
25
|
+
x = None # type: float
|
|
26
|
+
y = None # type: float
|
|
27
|
+
|
|
28
|
+
def __init__(self, x=0.0, y=0.0):
|
|
29
|
+
# type: (float, float) -> None
|
|
30
|
+
super(Point2D.Double, self).__init__()
|
|
31
|
+
self.x = x
|
|
32
|
+
self.y = y
|
|
33
|
+
|
|
34
|
+
def clone(self):
|
|
35
|
+
# type: () -> Object
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
def distance(self, *args):
|
|
39
|
+
# type: (*Any) -> float
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
def distanceSq(self, *args):
|
|
43
|
+
# type: (*Any) -> float
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
def getX(self):
|
|
47
|
+
# type: () -> float
|
|
48
|
+
return self.x
|
|
49
|
+
|
|
50
|
+
def getY(self):
|
|
51
|
+
# type: () -> float
|
|
52
|
+
return self.y
|
|
53
|
+
|
|
54
|
+
def setLocation(self, x, y):
|
|
55
|
+
# type: (float, float) -> None
|
|
56
|
+
self.x = x
|
|
57
|
+
self.y = y
|
|
58
|
+
|
|
59
|
+
class Float(Object):
|
|
60
|
+
x = None # type: float
|
|
61
|
+
y = None # type: float
|
|
62
|
+
|
|
63
|
+
def __init__(self, x=0.0, y=0.0):
|
|
64
|
+
# type: (float, float) -> None
|
|
65
|
+
super(Point2D.Float, self).__init__()
|
|
66
|
+
self.x = x
|
|
67
|
+
self.y = y
|
|
68
|
+
|
|
69
|
+
def clone(self):
|
|
70
|
+
# type: () -> Object
|
|
71
|
+
pass
|
|
72
|
+
|
|
73
|
+
def distance(self, *args):
|
|
74
|
+
# type: (*Any) -> float
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
def distanceSq(self, *args):
|
|
78
|
+
# type: (*Any) -> float
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
def getX(self):
|
|
82
|
+
# type: () -> float
|
|
83
|
+
return self.x
|
|
84
|
+
|
|
85
|
+
def getY(self):
|
|
86
|
+
# type: () -> float
|
|
87
|
+
return self.y
|
|
88
|
+
|
|
89
|
+
def setLocation(self, x, y):
|
|
90
|
+
# type: (float, float) -> None
|
|
91
|
+
self.x = x
|
|
92
|
+
self.y = y
|
|
93
|
+
|
|
94
|
+
def clone(self):
|
|
95
|
+
# type: () -> Object
|
|
96
|
+
pass
|
|
97
|
+
|
|
98
|
+
def distance(self, *args):
|
|
99
|
+
# type: (*Any) -> float
|
|
100
|
+
pass
|
|
101
|
+
|
|
102
|
+
def distanceSq(self, *args):
|
|
103
|
+
# type: (*Any) -> float
|
|
104
|
+
pass
|
|
105
|
+
|
|
106
|
+
def getX(self):
|
|
107
|
+
# type: () -> float
|
|
108
|
+
raise NotImplementedError
|
|
109
|
+
|
|
110
|
+
def getY(self):
|
|
111
|
+
# type: () -> float
|
|
112
|
+
raise NotImplementedError
|
|
113
|
+
|
|
114
|
+
def setLocation(self, *args):
|
|
115
|
+
# type: (*Any) -> None
|
|
116
|
+
raise NotImplementedError
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
__all__ = ["BufferedImage"]
|
|
4
|
+
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from java.awt import Image
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BufferedImage(Image):
|
|
11
|
+
def __init__(self, *args):
|
|
12
|
+
# type: (*Any) -> None
|
|
13
|
+
super(BufferedImage, self).__init__()
|
|
14
|
+
print(args)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
__all__ = ["PageFormat", "Paper"]
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from java.lang import Object
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PageFormat(Object):
|
|
9
|
+
LANDSCAPE = 0
|
|
10
|
+
PORTRAIT = 1
|
|
11
|
+
REVERSE_LANDSCAPE = 2
|
|
12
|
+
|
|
13
|
+
def clone(self):
|
|
14
|
+
# type: () -> Object
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
def getHeight(self):
|
|
18
|
+
# type: () -> float
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
def getImageableHeight(self):
|
|
22
|
+
# type: () -> float
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def getImageableWidth(self):
|
|
26
|
+
# type: () -> float
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def getImageableX(self):
|
|
30
|
+
# type: () -> float
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
def getImageableY(self):
|
|
34
|
+
# type: () -> float
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
def getMatrix(self):
|
|
38
|
+
# type: () -> List[float]
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
def getOrientation(self):
|
|
42
|
+
# type: () -> int
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
def getPaper(self):
|
|
46
|
+
# type: () -> Paper
|
|
47
|
+
pass
|
|
48
|
+
|
|
49
|
+
def setOrientation(self, orientation):
|
|
50
|
+
# type: (int) -> None
|
|
51
|
+
pass
|
|
52
|
+
|
|
53
|
+
def setPaper(self, paper):
|
|
54
|
+
# type: (Paper) -> None
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Paper(Object):
|
|
59
|
+
def clone(self):
|
|
60
|
+
# type: () -> Object
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
def getHeight(self):
|
|
64
|
+
# type: () -> float
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
def getImageableHeight(self):
|
|
68
|
+
# type: () -> float
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
def getImageableWidth(self):
|
|
72
|
+
# type: () -> float
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
def getImageableX(self):
|
|
76
|
+
# type: () -> float
|
|
77
|
+
pass
|
|
78
|
+
|
|
79
|
+
def getImageableY(self):
|
|
80
|
+
# type: () -> float
|
|
81
|
+
pass
|
|
82
|
+
|
|
83
|
+
def getWidth(self):
|
|
84
|
+
# type: () -> float
|
|
85
|
+
pass
|
|
86
|
+
|
|
87
|
+
def setImageableArea(self, x, y, width, height):
|
|
88
|
+
# type: (float, float, float, float) -> None
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
def setSize(self, width, height):
|
|
92
|
+
# type: (float, float) -> None
|
|
93
|
+
pass
|
java/beans/__init__.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
__all__ = ["PropertyChangeEvent", "PropertyChangeListener"]
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
|
|
5
|
+
from java.lang import Object
|
|
6
|
+
from java.util import EventObject
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PropertyChangeEvent(EventObject):
|
|
10
|
+
def __init__(self, source, propertyName, oldValue, newValue):
|
|
11
|
+
# type: (Object, Union[str, unicode], Object, Object) -> None
|
|
12
|
+
super(PropertyChangeEvent, self).__init__(source)
|
|
13
|
+
self._newValue = newValue
|
|
14
|
+
self._oldValue = oldValue
|
|
15
|
+
self._propertyName = propertyName
|
|
16
|
+
self._propagationId = Object()
|
|
17
|
+
|
|
18
|
+
def getNewValue(self):
|
|
19
|
+
# type: () -> Object
|
|
20
|
+
return self._newValue
|
|
21
|
+
|
|
22
|
+
def getOldValue(self):
|
|
23
|
+
# type: () -> Object
|
|
24
|
+
return self._oldValue
|
|
25
|
+
|
|
26
|
+
def getPropagationId(self):
|
|
27
|
+
# type: () -> Object
|
|
28
|
+
return self._propagationId
|
|
29
|
+
|
|
30
|
+
def setPropagationId(self, propagationId):
|
|
31
|
+
# type: (Object) -> None
|
|
32
|
+
self._propagationId = propagationId
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class PropertyChangeListener(object):
|
|
36
|
+
def propertyChange(self, evt):
|
|
37
|
+
# type: (PropertyChangeEvent) -> None
|
|
38
|
+
raise NotImplementedError
|