this.pressedKeyEventList = new LinkedList<KeyEventData>();
int style = SWT.NO_TRIM;
- if (skinMode == SkinMode.NONE) {
+ if (skinMode == SkinMode.GENERAL) {
style = SWT.TITLE | SWT.CLOSE | SWT.MIN | SWT.BORDER;
}
arrangeSkin(lcdWidth, lcdHeight, scale, rotationId);
- if (skinMode != SkinMode.NONE && null == currentImage) {
+ if (skinMode != SkinMode.GENERAL && null == currentImage) {
logger.severe("Failed to load initial skin image file. Kill this skin process.");
SkinUtil.openMessage(shell, null,
"Failed to load Skin image file.", SWT.ICON_ERROR, config);
this.currentRotationId = rotationId;
this.currentAngle = SkinRotation.getAngle( rotationId );
- if (skinMode != SkinMode.NONE) {
+ if (skinMode != SkinMode.GENERAL) {
Image tempImage = null;
Image tempKeyPressedImage = null;
}
};
- if (skinMode != SkinMode.NONE) {
+ if (skinMode != SkinMode.GENERAL) {
shell.addPaintListener(shellPaintListener);
}
};
- if (skinMode != SkinMode.NONE) {
+ if (skinMode != SkinMode.GENERAL) {
shell.addMouseTrackListener(shellMouseTrackListener);
}
} //end of mouseMove
};
- if (skinMode != SkinMode.NONE) {
+ if (skinMode != SkinMode.GENERAL) {
shell.addMouseMoveListener(shellMouseMoveListener);
}
}
};
- if (skinMode != SkinMode.NONE) {
+ if (skinMode != SkinMode.GENERAL) {
shell.addMouseListener(shellMouseListener);
}
LcdType lcd = rotation.getLcd();
RegionType region = lcd.getRegion();
- Integer left = (mode != SkinMode.NONE) ? region.getLeft() : 0;
- Integer top = (mode != SkinMode.NONE) ? region.getTop() : 0;
+ Integer left = (mode != SkinMode.GENERAL) ? region.getLeft() : 0;
+ Integer top = (mode != SkinMode.GENERAL) ? region.getTop() : 0;
Integer width = region.getWidth();
Integer height = region.getHeight();