private MediaSizeName loadDefaultPrinterProperties() {
int printMediaUnit =
PropertiesManager.checkAndStoreIntegerProperty(
propertiesManager,
PropertiesManager.PROPERTY_PRINT_MEDIA_SIZE_UNIT,
1000);
double printMediaWidth =
PropertiesManager.checkAndStoreDoubleProperty(
propertiesManager,
PropertiesManager.PROPERTY_PRINT_MEDIA_SIZE_WIDTH,
215.9);
double printMediaHeight =
PropertiesManager.checkAndStoreDoubleProperty(
propertiesManager,
PropertiesManager.PROPERTY_PRINT_MEDIA_SIZE_HEIGHT,
279.4);
return MediaSize.findMedia((float) printMediaWidth,
(float) printMediaHeight,
printMediaUnit);
}