Class Zoomer.State

java.lang.Object
VASSAL.build.module.map.Zoomer.State
Enclosing class:
Zoomer

protected static class Zoomer.State extends Object
Stores the state information for the Zoomer. This class exists to keep the Zoomer data separate from the Zoomer GUI.

Predefined zoom levels are stored in levels. If we are in a predefined zoom level, then custom == -1 and levels[cur] is the current zoom factor. If we are in a user-defined zoom level, then custom is the current zoom factor and cur is the greatest value such that custom < level[cur]}.

Since:
3.1.0
Author:
Joel Uckelman