cgl.hpsearch.nb4ws.GUI
Class DialogLayout
java.lang.Object
cgl.hpsearch.nb4ws.GUI.DialogLayout
- All Implemented Interfaces:
- LayoutManager
- public class DialogLayout
- extends Object
- implements LayoutManager
|
Method Summary |
void |
addLayoutComponent(String name,
Component comp)
|
protected void |
Construct(Container parent,
int width,
int height)
|
protected int |
getCharHeight(Container parent)
|
protected int |
getCharWidth(Container parent)
|
Dimension |
getDialogSize()
|
Rectangle |
getShape(Component comp)
|
void |
layoutContainer(Container parent)
|
protected void |
mapRectangle(Rectangle rect,
int charWidth,
int charHeight)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
|
void |
setShape(Component comp,
int x,
int y,
int width,
int height)
|
void |
setShape(Component comp,
Rectangle rect)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_map
protected Hashtable m_map
m_width
protected int m_width
m_height
protected int m_height
DialogLayout
public DialogLayout(Container parent,
int width,
int height)
DialogLayout
public DialogLayout(Container parent,
Dimension d)
setShape
public void setShape(Component comp,
int x,
int y,
int width,
int height)
setShape
public void setShape(Component comp,
Rectangle rect)
getShape
public Rectangle getShape(Component comp)
getDialogSize
public Dimension getDialogSize()
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Specified by:
addLayoutComponent in interface LayoutManager
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponent in interface LayoutManager
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize in interface LayoutManager
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize in interface LayoutManager
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer in interface LayoutManager
Construct
protected void Construct(Container parent,
int width,
int height)
getCharWidth
protected int getCharWidth(Container parent)
getCharHeight
protected int getCharHeight(Container parent)
mapRectangle
protected void mapRectangle(Rectangle rect,
int charWidth,
int charHeight)