import org.tizen.emulator.skin.info.SkinInformation;
import org.tizen.emulator.skin.layout.GeneralPurposeSkinComposer;
import org.tizen.emulator.skin.layout.ISkinComposer;
-import org.tizen.emulator.skin.layout.PhoneShapeSkinComposer;
+import org.tizen.emulator.skin.layout.ProfileSpecificSkinComposer;
import org.tizen.emulator.skin.log.SkinLogger;
import org.tizen.emulator.skin.menu.PopupMenu;
import org.tizen.emulator.skin.screenshot.ScreenShotDialog;
imageRegistry = ImageRegistry.getInstance();
if (skinInfo.isGeneralPurposeSkin() == false) {
- skinComposer = new PhoneShapeSkinComposer(config, this,
+ skinComposer = new ProfileSpecificSkinComposer(config, this,
shell, currentState, imageRegistry, communicator);
- ((PhoneShapeSkinComposer) skinComposer).addPhoneShapeListener(shell);
+ ((ProfileSpecificSkinComposer) skinComposer).addProfileSpecificListener(shell);
} else { /* general purpose skin */
skinComposer = new GeneralPurposeSkinComposer(config, this,
shell, currentState, imageRegistry);
shell.getDisplay().syncExec(new Runnable() {
@Override
public void run() {
-// Point location = new Point(100, 100);
-//
-// if (skinInfo.isPhoneShape()) { /* TODO: */
-// location = shell.getLocation();
-// shell.setVisible(false);
-// }
-
skinComposer.arrangeSkin(currentState.getCurrentScale(), rotationId);
-// if (skinInfo.isPhoneShape()) { /* TODO: */
-// shell.setVisible(true);
-// shell.setLocation(location);
-// SkinUtil.setTopMost(shell, isOnTop);
-// }
-
/* location correction */
Rectangle monitorBounds = Display.getDefault().getBounds();
Rectangle emulatorBounds = shell.getBounds();
shell.getDisplay().syncExec(new Runnable() {
@Override
public void run() {
-// Point location = new Point(100, 100);
-//
-// if (skinInfo.isPhoneShape()) { /* TODO: */
-// location = shell.getLocation();
-// shell.setVisible(false);
-// }
-
skinComposer.arrangeSkin(scale, currentState.getCurrentRotationId());
-// if (skinInfo.isPhoneShape()) { /* TODO: */
-// shell.setVisible(true);
-// shell.setLocation(location);
-// SkinUtil.setTopMost(shell, isOnTop);
-// }
-
/* location correction */
Rectangle monitorBounds = Display.getDefault().getBounds();
Rectangle emulatorBounds = shell.getBounds();
/**
- *
+ * Profile-Specific Skin Layout
*
* Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
*
import org.tizen.emulator.skin.util.SkinUtil;
import org.tizen.emulator.skin.util.SwtUtil;
-public class PhoneShapeSkinComposer implements ISkinComposer {
+public class ProfileSpecificSkinComposer implements ISkinComposer {
private Logger logger = SkinLogger.getSkinLogger(
- PhoneShapeSkinComposer.class).getLogger();
+ ProfileSpecificSkinComposer.class).getLogger();
private EmulatorConfig config;
private EmulatorSkin skin;
private boolean isGrabbedShell;
private Point grabPosition;
- public PhoneShapeSkinComposer(EmulatorConfig config, EmulatorSkin skin,
+ public ProfileSpecificSkinComposer(EmulatorConfig config, EmulatorSkin skin,
Shell shell, EmulatorSkinState currentState,
ImageRegistry imageRegistry, SocketCommunicator communicator) {
this.config = config;
return lcdBounds;
}
- public void addPhoneShapeListener(final Shell shell) {
+ public void addProfileSpecificListener(final Shell shell) {
shellPaintListener = new PaintListener() {
@Override
public void paintControl(final PaintEvent e) {