|
|
@ -166,10 +166,10 @@ public class UIModeControlContainer extends JLayeredPane { |
|
|
|
} |
|
|
|
} |
|
|
|
// 拖动的距离,为正值表示往下拖动,为负值表示往上拖动
|
|
|
|
// 拖动的距离,为正值表示往下拖动,为负值表示往上拖动
|
|
|
|
int deltaY = e.getY(); |
|
|
|
int deltaY = e.getY(); |
|
|
|
|
|
|
|
toolPaneY += deltaY; |
|
|
|
if (toolPaneY < 0) { |
|
|
|
if (toolPaneY < 0) { |
|
|
|
toolPaneY = 0; |
|
|
|
toolPaneY = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
toolPaneY += deltaY; |
|
|
|
|
|
|
|
onResize(toolPaneY); |
|
|
|
onResize(toolPaneY); |
|
|
|
refreshContainer(); |
|
|
|
refreshContainer(); |
|
|
|
} |
|
|
|
} |
|
|
@ -244,7 +244,7 @@ public class UIModeControlContainer extends JLayeredPane { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
protected void onModeChanged() { |
|
|
|
protected void onModeChanged() { |
|
|
|
//do nothing here
|
|
|
|
//do nothing here
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -315,7 +315,7 @@ public class UIModeControlContainer extends JLayeredPane { |
|
|
|
addMouseListener(new MouseAdapter() { |
|
|
|
addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -340,7 +340,7 @@ public class UIModeControlContainer extends JLayeredPane { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void layoutContainer(Container parent) { |
|
|
|
public void layoutContainer(Container parent) { |
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|