Package org.vanted.scaling.vanted
Class GraphScaler
java.lang.Object
org.graffiti.session.SessionAdapter
org.vanted.scaling.vanted.GraphScaler
- All Implemented Interfaces:
EventListener
,ChangeListener
,SessionListener
public class GraphScaler extends SessionAdapter implements ChangeListener
Responsible for the synchronization between scaling and the established graph
zooming, which acts as graph scaling.
- Author:
- D. Garkov
-
Constructor Summary
Constructors Constructor Description GraphScaler()
-
Method Summary
Modifier and Type Method Description static int
getOldValueZooming()
static void
reAddChangeListener()
To subsequent new ScalingSlider instance.static void
registerSessionListener()
static void
registerSessionListenerPostponed()
void
sessionChanged(Session s)
This method is called when the session changes.static void
setOldValueZooming(int oldValue)
void
stateChanged(ChangeEvent e)
Methods inherited from class org.graffiti.session.SessionAdapter
sessionDataChanged
-
Constructor Details
-
GraphScaler
public GraphScaler()
-
-
Method Details
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
sessionChanged
Description copied from interface:SessionListener
This method is called when the session changes.- Specified by:
sessionChanged
in interfaceSessionListener
- Overrides:
sessionChanged
in classSessionAdapter
- Parameters:
s
- the new Session.
-
registerSessionListener
public static void registerSessionListener() -
registerSessionListenerPostponed
public static void registerSessionListenerPostponed() -
getOldValueZooming
public static int getOldValueZooming() -
setOldValueZooming
public static void setOldValueZooming(int oldValue) -
reAddChangeListener
public static void reAddChangeListener()To subsequent new ScalingSlider instance.
-