Search in sources :

Example 1 with ConfigInfo

use of co.videofirst.vft.capture.model.info.ConfigInfo in project vft-capture by videofirst.

the class DefaultInfoService method initConfigInfo.

private ConfigInfo initConfigInfo() {
    GraphicsConfiguration graphicsConfiguration = getGraphicsConfiguration();
    Rectangle rect = graphicsConfiguration.getBounds();
    ConfigInfo systemInfo = ConfigInfo.builder().started(LocalDateTime.now()).categories(vftConfig.getCategories()).storage(vftConfig.getStorage()).upload(vftConfig.getUpload()).display(DisplayInfo.builder().x(rect.x).y(rect.y).width(rect.width).height(rect.height).build()).environment(getEnvironmentFromJavaSystemProps()).build();
    return systemInfo;
}
Also used : Rectangle(java.awt.Rectangle) ConfigInfo(co.videofirst.vft.capture.model.info.ConfigInfo) GraphicsConfiguration(java.awt.GraphicsConfiguration)

Aggregations

ConfigInfo (co.videofirst.vft.capture.model.info.ConfigInfo)1 GraphicsConfiguration (java.awt.GraphicsConfiguration)1 Rectangle (java.awt.Rectangle)1