public interface YouScopeClient
Modifier and Type | Method and Description |
---|---|
YouScopeFrame |
createFrame()
Creates a new content window.
|
boolean |
editMeasurement(MeasurementConfiguration configuration)
Opens the default editor to manipulate the measurement configuration.
|
ClientAddonProvider |
getAddonProvider()
Returns a class with which client addons can be constructed.
|
MeasurementConfiguration[] |
getLastSavedMeasurements()
Returns a list of the last saved mesurements.
|
YouScopeProperties |
getProperties()
Returns an interface through which an addon can save properties as well as access the properties of the YouScope client.
|
boolean |
initializeMeasurement(Measurement measurement)
Opens the measurement control frame for a measurement.
|
Measurement |
initializeMeasurement(MeasurementConfiguration configuration)
Initializes the measurement and shows the measurement control frame.
|
boolean |
isLocalServer()
Returns true if the microscope is connected to this computer, and false, if the microscope is on a different computer.
|
void |
sendError(java.lang.String message)
Notifies the client that an error occurred, such that the client can notify the user in the
client specific way.
|
void |
sendError(java.lang.String message,
java.lang.Throwable error)
Notifies the client that an error occurred, such that the client can notify the user in the
client specific way.
|
void |
sendMessage(java.lang.String message)
Sends a human readable message to the client, which (may) be displayed to the user in the
client specific way.
|
YouScopeProperties getProperties()
YouScopeFrame createFrame()
MeasurementConfiguration[] getLastSavedMeasurements()
void sendError(java.lang.String message, java.lang.Throwable error)
message
- Description of the error.error
- The error.void sendError(java.lang.String message)
message
- Description of the error.void sendMessage(java.lang.String message)
message
- The message to send to the client.boolean isLocalServer()
boolean editMeasurement(MeasurementConfiguration configuration)
configuration
- The configuration of the measurement to edit.Measurement initializeMeasurement(MeasurementConfiguration configuration)
configuration
- The configuration of the measurement.boolean initializeMeasurement(Measurement measurement)
measurement
- The measurement to control.ClientAddonProvider getAddonProvider()