Class MPJmolApp
java.lang.Object
org.molecularplayground.MPJmolApp
- All Implemented Interfaces:
JsonNioClient
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface JsonNioClient
JsonNioClient.TouchHandler -
Field Summary
FieldsFields inherited from interface JsonNioClient
TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintstatic StringgetJmolValueAsString(Viewer vwr, String var) longstatic voidvoidnioClosed(JsonNioServer jns) voidprocessNioMessage(byte[] packet) voidscriptCallback(String msg) voidvoidsetBannerLabel(String label)
-
Field Details
-
vwr
-
motionDisabled
public boolean motionDisabled -
contentDisabled
public boolean contentDisabled -
service
-
-
Constructor Details
-
MPJmolApp
public MPJmolApp() -
MPJmolApp
public MPJmolApp(int port)
-
-
Method Details
-
main
-
setBannerLabel
-
nioClosed
- Specified by:
nioClosedin interfaceJsonNioClient
-
processNioMessage
- Specified by:
processNioMessagein interfaceJsonNioClient- Throws:
Exception
-
getJmolValueAsString
-
scriptCallback
-
serverCycle
public void serverCycle()- Specified by:
serverCyclein interfaceJsonNioClient
-
getLong
-
getInt
-
getDouble
-