toggle menu
alchemist
35.0.3
jvm
switch theme
search in API
alchemist-swingui
/
it.unibo.alchemist.boundary.wormhole.impl
/
WormholeSwing
Wormhole
Swing
open
class
WormholeSwing
<
P
:
Position2D
<
out
P
>
?
>
:
AbstractWormhole2D
<
P
>
(
source
)
An implementation of [AbstractWormhole2D] for Swing.
Parameters
<P>
the type of the position
Inheritors
MapWormhole
Members
Constructors
Wormhole
Swing
Link copied to clipboard
constructor
(
environment
:
Environment
<
out
Any
,
P
>
,
component
:
Component
)
Properties
mode
Link copied to clipboard
open
var
mode
:
Wormhole2D.Mode
rotation
Link copied to clipboard
protected
open
var
rotation
:
Double
zoom
Link copied to clipboard
open
var
zoom
:
Double
Functions
center
Link copied to clipboard
open
fun
center
(
)
get
Env
Point
Link copied to clipboard
open
fun
getEnvPoint
(
viewPoint
:
Point
)
:
P
get
View
Point
Link copied to clipboard
open
fun
getViewPoint
(
envPoint
:
P
)
:
Point
get
View
Position
Link copied to clipboard
open
fun
getViewPosition
(
)
:
Point
get
View
Size
Link copied to clipboard
open
fun
getViewSize
(
)
:
Dimension2D
is
Inside
View
Link copied to clipboard
open
fun
isInsideView
(
viewPoint
:
Point
)
:
Boolean
optimal
Zoom
Link copied to clipboard
open
fun
optimalZoom
(
)
rotate
Around
Point
Link copied to clipboard
open
fun
rotateAroundPoint
(
p
:
Point
,
a
:
Double
)
set
Env
Position
Link copied to clipboard
open
fun
setEnvPosition
(
envPoint
:
P
)
set
View
Position
Link copied to clipboard
open
fun
setViewPosition
(
viewPoint
:
Point
)
zoom
On
Point
Link copied to clipboard
open
fun
zoomOnPoint
(
point
:
Point
,
zoomRate
:
Double
)