예제 #1
0
 private void setSelected(ToolButton button) {
   if (fSelectedToolButton != null) {
     fSelectedToolButton.reset();
   }
   fSelectedToolButton = button;
   if (fSelectedToolButton != null) {
     fSelectedToolButton.select();
   }
 }
예제 #2
0
 public void paletteUserOver(PaletteButton button, boolean inside) {
   if (inside) {
     showStatus(button.name());
   } else if (fSelectedToolButton != null) {
     showStatus(fSelectedToolButton.name());
   }
 }
예제 #3
0
 public void toolDone() {
   setTool(fDefaultToolButton.tool(), fDefaultToolButton.name());
   setSelected(fDefaultToolButton);
 }
예제 #4
0
 public void paletteUserSelected(PaletteButton button) {
   ToolButton toolButton = (ToolButton) button;
   setTool(toolButton.tool(), toolButton.name());
   setSelected(toolButton);
 }