1 package org.catacomb.druid.gui.base; 2 3 4 import org.catacomb.interlish.structure.FrameShowable; 5 6 7 public class DruEditorWindow extends DruRoot implements FrameShowable { 8 9 DruFrame mainFrame; 10 11 12 13 public void setMainFrame(DruFrame df) { 14 mainFrame = df; 15 } 16 17 public DruFrame getMainFrame() { 18 return mainFrame; 19 } 20 21 22 public void pack() { 23 mainFrame.pack(); 24 } 25 26 public int[] getSize() { 27 return mainFrame.getIntArraySize(); 28 } 29 30 31 public void setLocation(int x, int y) { 32 mainFrame.setLocation(x, y); 33 } 34 35 public void show() { 36 mainFrame.packIfNecessary(); 37 mainFrame.setVisible(true); 38 } 39 40 public void hide() { 41 mainFrame.setVisible(false); 42 } 43 44 public void toFront() { 45 mainFrame.toFront(); 46 } 47 48 public int[] getLocation() { 49 return mainFrame.getLocation(); 50 } 51 52 }