igeo.gui
Class IPanel
java.lang.Object
igeo.gui.IComponent
igeo.gui.IPanel
- All Implemented Interfaces:
- IPanelI, IServerI, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
- Direct Known Subclasses:
- IScreenTogglePanel
public class IPanel
- extends IComponent
- implements IPanelI, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.KeyListener, java.awt.event.FocusListener, java.awt.event.ComponentListener
A root GUI object of iGeo managing all IPane instance.
An instance IG is keyed by IPanel object when it's in Graphic mode.
- Author:
- Satoru Sugihara
|
Constructor Summary |
IPanel(int x,
int y,
int width,
int height)
|
|
Method Summary |
void |
addPane(IPane p)
|
java.io.File |
chooseFile(java.lang.String[][] acceptableExtensions,
java.lang.String[] extensionDescriptions,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)
|
java.io.File |
chooseFile(java.lang.String[] acceptableExtensions,
java.lang.String extensionDescription,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)
|
java.io.File |
chooseFile(java.lang.String acceptableExtension,
java.lang.String extensionDescription,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)
|
void |
clearPane()
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
IPane |
currentPane()
returns current pane; if null, it returns first pane. |
void |
draw(IGraphics g)
|
void |
focus()
focus on all pane |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
IBounds |
getBounds()
|
IG |
getIG()
|
IPane |
getPaneAt(IMouseEvent e)
|
IPane |
getPaneAt(int x,
int y)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
|
IPane |
pane(int i)
|
int |
paneNum()
|
void |
postdraw(IGraphics g)
|
void |
predraw(IGraphics g)
|
void |
removePane(int i)
|
void |
saveDialog()
|
IServer |
server()
|
void |
setBounds()
|
void |
setIG(IG ig)
|
void |
setSize(int w,
int h)
|
void |
setVisible(boolean v)
|
void |
startDynamicServer()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
panes
public java.util.ArrayList<IPane> panes
ig
public IG ig
currentMousePane
public IPane currentMousePane
bounds
public IBounds bounds
serverStateCount
public int serverStateCount
startDynamicServer
public boolean startDynamicServer
sizeChanged
public boolean sizeChanged
IPanel
public IPanel(int x,
int y,
int width,
int height)
setIG
public void setIG(IG ig)
- Specified by:
setIG in interface IPanelI
getIG
public IG getIG()
- Specified by:
getIG in interface IPanelI
server
public IServer server()
- Specified by:
server in interface IPanelI- Specified by:
server in interface IServerI
addPane
public void addPane(IPane p)
- Specified by:
addPane in interface IPanelI
pane
public IPane pane(int i)
- Specified by:
pane in interface IPanelI
paneNum
public int paneNum()
- Specified by:
paneNum in interface IPanelI
removePane
public void removePane(int i)
- Specified by:
removePane in interface IPanelI
clearPane
public void clearPane()
- Specified by:
clearPane in interface IPanelI
setVisible
public void setVisible(boolean v)
- Specified by:
setVisible in interface IPanelI- Overrides:
setVisible in class IComponent
focus
public void focus()
- focus on all pane
- Specified by:
focus in interface IPanelI
setSize
public void setSize(int w,
int h)
- Specified by:
setSize in interface IPanelI- Overrides:
setSize in class IComponent
startDynamicServer
public void startDynamicServer()
- Specified by:
startDynamicServer in interface IPanelI
predraw
public void predraw(IGraphics g)
- Specified by:
predraw in interface IPanelI
draw
public void draw(IGraphics g)
- Specified by:
draw in interface IPanelI
postdraw
public void postdraw(IGraphics g)
- Specified by:
postdraw in interface IPanelI
getPaneAt
public IPane getPaneAt(int x,
int y)
- Specified by:
getPaneAt in interface IPanelI
getPaneAt
public IPane getPaneAt(IMouseEvent e)
currentPane
public IPane currentPane()
- returns current pane; if null, it returns first pane.
- Specified by:
currentPane in interface IPanelI
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased in interface java.awt.event.MouseListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited in interface java.awt.event.MouseListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
- Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped in interface java.awt.event.KeyListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost in interface java.awt.event.FocusListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained in interface java.awt.event.FocusListener
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
- Specified by:
componentHidden in interface java.awt.event.ComponentListener
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
- Specified by:
componentMoved in interface java.awt.event.ComponentListener
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
- Specified by:
componentResized in interface java.awt.event.ComponentListener
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
- Specified by:
componentShown in interface java.awt.event.ComponentListener
getBounds
public IBounds getBounds()
- Specified by:
getBounds in interface IPanelI
setBounds
public void setBounds()
- Specified by:
setBounds in interface IPanelI
saveDialog
public void saveDialog()
- Specified by:
saveDialog in interface IPanelI
chooseFile
public java.io.File chooseFile(java.lang.String acceptableExtension,
java.lang.String extensionDescription,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)
chooseFile
public java.io.File chooseFile(java.lang.String[] acceptableExtensions,
java.lang.String extensionDescription,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)
chooseFile
public java.io.File chooseFile(java.lang.String[][] acceptableExtensions,
java.lang.String[] extensionDescriptions,
java.lang.String approveButtonText,
boolean writing,
java.lang.String defaultPath,
java.io.File defaultFile)