Package org.molecularplayground
Class MPJmolApp
java.lang.Object
org.molecularplayground.MPJmolApp
- All Implemented Interfaces:
JsonNioClient
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openscience.jmol.app.jsonkiosk.JsonNioClient
JsonNioClient.TouchHandler
-
Field Summary
FieldsFields inherited from interface org.openscience.jmol.app.jsonkiosk.JsonNioClient
TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
static String
getJmolValueAsString
(Viewer vwr, String var) long
static void
void
nioClosed
(JsonNioServer jns) void
processNioMessage
(byte[] packet) void
scriptCallback
(String msg) void
void
setBannerLabel
(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:
nioClosed
in interfaceJsonNioClient
-
processNioMessage
- Specified by:
processNioMessage
in interfaceJsonNioClient
- Throws:
Exception
-
getJmolValueAsString
-
scriptCallback
-
serverCycle
public void serverCycle()- Specified by:
serverCycle
in interfaceJsonNioClient
-
getLong
- Throws:
Exception
-
getInt
- Throws:
Exception
-
getDouble
- Throws:
Exception
-