alchemist
Toggle table of contents
36.0.11
jvm
Platform filter
jvm
Switch theme
Search in API
alchemist
alchemist-swingui
/
it.unibo.alchemist.boundary.wormhole.impl
/
MapWormhole
Map
Wormhole
class
MapWormhole
:
WormholeSwing
<
P
>
(
source
)
Wormhole used for maps rendering.
Members
Constructors
Map
Wormhole
Link copied to clipboard
constructor
(
environment
:
Environment
<
out
Any
,
GeoPosition
>
,
comp
:
Component
,
m
:
IMapViewPosition
)
Initializes a new
MapWormhole
copying the state of the one in input.
Properties
MAX_
ZOOM
Link copied to clipboard
val
MAX_ZOOM
:
Byte
=
18
Maximum zoom.
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
)
:
GeoPosition
get
View
Point
Link copied to clipboard
open
fun
getViewPoint
(
environmentPoint
:
GeoPosition
)
:
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
(
p
:
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
(
ep
:
GeoPosition
)
set
View
Position
Link copied to clipboard
open
fun
setViewPosition
(
p
:
Point
)
set
Zoom
Link copied to clipboard
open
fun
setZoom
(
z
:
Double
)
zoom
On
Point
Link copied to clipboard
open
fun
zoomOnPoint
(
zoomPoint
:
Point
,
z
:
Double
)