import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.ScrollBar;
+import org.tizen.dynamicanalyzer.util.CommonUtil;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
import org.tizen.dynamicanalyzer.widgets.button.toggle.DACustomToggleButton;
private final static int DEFAULT_CHARTBOARD_HEADER_HEIGHT = 25; //[UX]04 feature list/chart area
private final static int DEFAULT_CHARTBOARD_TITLE_BUTTON_WIDTH = 118;
private final static int DEFAULT_CHARTBOARD_MINIMIZE_BUTTON_WIDTH = 22;
- private final static int DEFAULT_CHARTBOARD_FOOTER_HEIGHT = 31;
+ private final static int DEFAULT_CHARTBOARD_FOOTER_HEIGHT = 18;
private final static int DEFAULT_CHARTBOARD_SCALE_WIDTH = 192; //[UX]04 feature list/chart area
public static final double ITEM_HEIGHT_RATIO_SHORT = 0.5;
lifecycleBar.setLayoutData(data);
}
- data = new FormData();
- data.left = new FormAttachment(0, 0);
- data.top = new FormAttachment(titleComp, 0);
- data.bottom = new FormAttachment(100, -15); //[UX] 04 feature list/chart area
- data.right = new FormAttachment(100, 0);
- itemListScrollComp.setLayoutData(data);
+
+ if (CommonUtil.isWin()) {
+ data = new FormData();
+ data.left = new FormAttachment(0, 0);
+ data.top = new FormAttachment(titleComp, 0);
+ data.bottom = new FormAttachment(100, DEFAULT_CHARTBOARD_FOOTER_HEIGHT * -1);
+ data.right = new FormAttachment(100, 0);
+ itemListScrollComp.setLayoutData(data);
- data = new FormData();
- data.left = new FormAttachment(0, 0);
- data.top = new FormAttachment(itemListScrollComp, 0);
- data.bottom = new FormAttachment(100, 0);
- data.width = DEFAULT_CHARTBOARD_SCALE_WIDTH;
-// data.height = DEFAULT_CHARTBOARD_FOOTER_HEIGHT;
- scale.setLayoutData(data);
+ data = new FormData();
+ data.left = new FormAttachment(0, 0);
+ data.top = new FormAttachment(itemListScrollComp, 0);
+ data.bottom = new FormAttachment(100, 0);
+ data.width = DEFAULT_CHARTBOARD_SCALE_WIDTH;
+ data.height = DEFAULT_CHARTBOARD_FOOTER_HEIGHT;
+ scale.setLayoutData(data);
- data = new FormData();
- data.left = new FormAttachment(scale, 0);
- data.right = new FormAttachment(100, 0);
- data.top = new FormAttachment(itemListScrollComp, 0);
- data.bottom = new FormAttachment(100, 0);
-// data.height = DEFAULT_CHARTBOARD_FOOTER_HEIGHT;
- scrollComp.setLayoutData(data);
+ data = new FormData();
+ data.left = new FormAttachment(scale, 0);
+ data.right = new FormAttachment(100, 0);
+ data.top = new FormAttachment(itemListScrollComp, 0);
+ data.bottom = new FormAttachment(100, 0);
+ data.height = DEFAULT_CHARTBOARD_FOOTER_HEIGHT;
+ scrollComp.setLayoutData(data);
+ } else {
+ data = new FormData();
+ data.left = new FormAttachment(0, 0);
+ data.top = new FormAttachment(titleComp, 0);
+ data.bottom = new FormAttachment(100, -15);
+ data.right = new FormAttachment(100, 0);
+ itemListScrollComp.setLayoutData(data);
+
+ data = new FormData();
+ data.left = new FormAttachment(0, 0);
+ data.top = new FormAttachment(itemListScrollComp, 0);
+ data.bottom = new FormAttachment(100, 0);
+ data.width = DEFAULT_CHARTBOARD_SCALE_WIDTH;
+ scale.setLayoutData(data);
+
+ data = new FormData();
+ data.left = new FormAttachment(scale, 0);
+ data.right = new FormAttachment(100, 0);
+ data.top = new FormAttachment(itemListScrollComp, 0);
+ data.bottom = new FormAttachment(100, 0);
+ scrollComp.setLayoutData(data);
+ }
itemListScrollComp.layout();
boardManager = new DAChartBoardManager(this);