Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.ist.mwt.ClipLayout
Method Summary | |
void | addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
int | getChildPlacement()
Gets the placement of the child for when the size of the child is smaller than the parent container. |
java.awt.Scrollbar | getHSB()
Gets the horizontal scroll bar for this clipping layout. |
java.awt.Scrollbar | getVSB()
Gets the vertical scroll bar for this clipping layout. |
int | getXOffset()
Gets the X offset |
int | getYOffset()
Gets the Y offset |
boolean | hsbNeeded(java.awt.Container clipWindow,
java.awt.Dimension pSz)
Function to see if the horizontal scroll bar will be needed (eg. if the container passed in is wider than the child) |
void | layoutContainer(java.awt.Container parent)
Lays out the container . |
java.awt.Dimension | minimumLayoutSize(java.awt.Container parent)
Calculates the minimum dimensions for the specified panel given the components in the specified parent container. |
java.awt.Dimension | preferredLayoutSize(java.awt.Container parent)
Calculates the preferred dimensions for the specified panel given the components in the specified parent container. |
void | removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void | scrollLeft(int delta)
Tell the clipping region to scroll (pan) left by a certain increment. |
void | scrollUp(int delta)
Tell the clipping region to scroll (pan) up by a certain increment. |
void | setChildPlacement(int newPlacement)
Sets the placement of the child for when the size of the child is smaller than the parent container. |
void | setHSB(java.awt.Scrollbar hsb)
Sets the horizontal scroll bar for this clipping layout. |
void | setVSB(java.awt.Scrollbar vsb)
Sets the vertical scroll bar for this clipping layout. |
void | setXOffset(int newX)
Sets the X offset; newX must be in the range 0..100, where 0 means that the child's LHS is at the LHS of the clipping window, and 100 means that the child's RHS is at the RHS of the clipping window |
void | setYOffset(int newY)
Sets the Y offset; newY must be in the range 0..100, where 0 means that the child's top is at the top of the clipping window, and 100 means that the child's bottom is at the bottom of the clipping window |
boolean | vsbNeeded(java.awt.Container clipWindow,
java.awt.Dimension pSz)
Function to see if the vertical scroll bar will be needed (eg. if the container passed in is taller than the child) |
Methods inherited from class java.lang.Object | |
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public void setChildPlacement(int newPlacement)
public int getChildPlacement()
public void setXOffset(int newX)
newX
- the new valuepublic int getXOffset()
public void setYOffset(int newY)
newY
- the new valuepublic int getYOffset()
public void scrollUp(int delta)
delta
- the amount by which to pan. Can be negative.public void scrollLeft(int delta)
delta
- the amount by which to pan. Can be negative.public void setHSB(java.awt.Scrollbar hsb)
vsb
- the new horizontal scroll barpublic java.awt.Scrollbar getHSB()
public void setVSB(java.awt.Scrollbar vsb)
vsb
- the new vertical scroll barpublic java.awt.Scrollbar getVSB()
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic void layoutContainer(java.awt.Container parent)
parent
- the component which needs to be laid outpublic boolean vsbNeeded(java.awt.Container clipWindow, java.awt.Dimension pSz)
clipWindow
- the container whose layout this ClipLayout is
pSz
- this clipWindow's size.public boolean hsbNeeded(java.awt.Container clipWindow, java.awt.Dimension pSz)
clipWindow
- the container whose layout this ClipLayout is
pSz
- this clipWindow's size.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
name
- the component name
comp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
comp
- the component to be removedClass | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |