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 intgetOldValueZooming()static voidreAddChangeListener()To subsequent new ScalingSlider instance.static voidregisterSessionListener()static voidregisterSessionListenerPostponed()voidsessionChanged(Session s)This method is called when the session changes.static voidsetOldValueZooming(int oldValue)voidstateChanged(ChangeEvent e)Methods inherited from class org.graffiti.session.SessionAdapter
sessionDataChanged
-
Constructor Details
-
GraphScaler
public GraphScaler()
-
-
Method Details
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
sessionChanged
Description copied from interface:SessionListenerThis method is called when the session changes.- Specified by:
sessionChangedin interfaceSessionListener- Overrides:
sessionChangedin 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.
-