Class marimba.gui.ScrollingContainerWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.ScrollingContainerWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ContainerWidget
|
+----marimba.gui.ScrollingContainerWidget
- public class ScrollingContainerWidget
- extends ContainerWidget
A container with scrollbars.
- Version:
- 1.32, 01/13/97
- Author:
- Arthur van Hoff
-
constrained
- Determines whether the scrollbars should be constrained.
-
contHeight
- The height of the content.
-
contWidth
- The width of the content.
-
corner
- This widget can leave the bottom-right corner open.
-
fillMode
- Determines whether the scrollbars should be filled.
-
fillOptions
- The possible options for the fillMode.
-
hdrHeight
- The heigth of the header area above the container.
-
horz
- The horizontal scrollbar.
-
horzmode
- The mode for the horizontal scrollbar:
never, optional or always.
-
horzOptions
- The possible options for the horizontal scrollbar.
-
SCROLLSIZ
-
-
vert
- The vertical scrollbar.
-
vertmode
- The mode for the vertical scrollbar:
never, optional or always.
-
vertOptions
- The possible options for the vertical scrollbar.
-
ScrollingContainerWidget()
- Constructor.
-
disable(boolean)
- Disable/enable the scrollbarst, when disabling/enabling.
-
focusContent(int, int, int, int)
- Scroll the content so that the given rectangle
is visible.
-
getContHeight()
- Get the height of the content.
-
getContWidth()
- Get the width of the content.
-
getFillMode()
- Check if the scrollbars are filled.
-
getFillOptions()
- Get the possible options for the fillMode.
-
getHdrHeight()
- Get the height of the header area above the container.
-
getHorz()
- Get the horizontal scrollbar.
-
getHorzmode()
- Get the mode for the horizontal scrollbar.
-
getHorzOptions()
- Get the possible options for the horizontal scrollbar.
-
getProperties(PropertyList)
- Get the properties.
-
getVert()
- Get the vertical scrollbar.
-
getVertmode()
- Get the mode for the vertical scrollbar.
-
getVertOptions()
- Get the possible options for the vertical scrollbar.
-
handleEvent(Event)
- Handle scroll events.
-
hasCorner()
- Check if this widget leaves the bottom-right corner open.
-
isConstrained()
- Check if the scrollbars are constrained.
-
layout()
- Layout the container.
-
newContent()
- Allocate content container.
-
newScrollbar(int)
- Create a new scrollbar with all the necessary properties.
-
scrollContent(int, int)
- Scroll the content to a given position, limited by
contHeight and contWidth.
-
setConstrained(boolean)
- Let the scrollbars be constrained or not.
-
setContentSize(int, int)
- Set the size of the content
-
setContHeight(int)
- Set the height of the content.
-
setContWidth(int)
- Set the width of the content.
-
setCorner(boolean)
- Let this widget have a corner or not.
-
setFillMode(int)
- Let the scrollbars fill or not.
-
setHdrHeight(int)
- Set the height of the header area above the container.
-
setHorzmode(int)
- Set the mode for the horizontal scrollbar.
-
setProperties(PropertyList)
- Set the properties.
-
setScrollbarModes(int, int)
- Set scrollbar mode.
-
setVertmode(int)
- Set the mode for the vertical scrollbar.
SCROLLSIZ
public final int SCROLLSIZ
horzOptions
public static Options horzOptions
- The possible options for the horizontal scrollbar.
- See Also:
- getHorzOptions, horzmode
vertOptions
public static Options vertOptions
- The possible options for the vertical scrollbar.
- See Also:
- getVertOptions, vertmode
fillOptions
public static Options fillOptions
- The possible options for the fillMode.
- See Also:
- getFillOptions, fillMode
fillMode
public int fillMode
- Determines whether the scrollbars should be filled.
- See Also:
- getFillMode, setFillMode, fillOptions
constrained
public boolean constrained
- Determines whether the scrollbars should be constrained.
- See Also:
- isConstrained, setConstrained, constrained
horz
public ScrollbarWidget horz
- The horizontal scrollbar.
- See Also:
- getHorz
vert
public ScrollbarWidget vert
- The vertical scrollbar.
- See Also:
- getVert
hdrHeight
public int hdrHeight
- The heigth of the header area above the container.
- See Also:
- getHdrHeight, setHdrHeight
horzmode
public int horzmode
- The mode for the horizontal scrollbar:
never, optional or always.
- See Also:
- getHorzmode, setHorzmode, horzOptions
vertmode
public int vertmode
- The mode for the vertical scrollbar:
never, optional or always.
- See Also:
- getVertmode, setVertmode, vertOptions
contWidth
public int contWidth
- The width of the content.
- See Also:
- getContWidth, setContWidth
contHeight
public int contHeight
- The height of the content.
- See Also:
- getContHeight, setContHeight
corner
public boolean corner
- This widget can leave the bottom-right corner open.
That means that the vertical scrollbar becomes smaller.
- See Also:
- hasCorner, setCorner
ScrollingContainerWidget
public ScrollingContainerWidget()
- Constructor.
getProperties
public void getProperties(PropertyList list)
- Get the properties.
- Overrides:
- getProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties.
- Overrides:
- setProperties in class ContainerWidget
disable
public void disable(boolean disabled)
- Disable/enable the scrollbarst, when disabling/enabling.
- Overrides:
- disable in class Widget
getHorzOptions
public Options getHorzOptions()
- Get the possible options for the horizontal scrollbar.
- See Also:
- horzOptions
getVertOptions
public Options getVertOptions()
- Get the possible options for the vertical scrollbar.
- See Also:
- vertOptions
getFillOptions
public Options getFillOptions()
- Get the possible options for the fillMode.
- See Also:
- fillOptions
getFillMode
public int getFillMode()
- Check if the scrollbars are filled.
- See Also:
- fillMode
setFillMode
public void setFillMode(int fillMode)
- Let the scrollbars fill or not.
- See Also:
- fillMode
isConstrained
public boolean isConstrained()
- Check if the scrollbars are constrained.
- See Also:
- constrained
setConstrained
public void setConstrained(boolean constrained)
- Let the scrollbars be constrained or not.
- See Also:
- constrained
getHorz
public ScrollbarWidget getHorz()
- Get the horizontal scrollbar.
- See Also:
- horz
getVert
public ScrollbarWidget getVert()
- Get the vertical scrollbar.
- See Also:
- vert
getHdrHeight
public int getHdrHeight()
- Get the height of the header area above the container.
- See Also:
- hdrHeight
setHdrHeight
public void setHdrHeight(int hdrHeight)
- Set the height of the header area above the container.
- See Also:
- hdrHeight
getHorzmode
public int getHorzmode()
- Get the mode for the horizontal scrollbar.
- See Also:
- horzmode
setHorzmode
public void setHorzmode(int horzmode)
- Set the mode for the horizontal scrollbar.
- See Also:
- horzmode
getVertmode
public int getVertmode()
- Get the mode for the vertical scrollbar.
- See Also:
- vertmode
setVertmode
public void setVertmode(int vertmode)
- Set the mode for the vertical scrollbar.
- See Also:
- vertmode
getContWidth
public int getContWidth()
- Get the width of the content.
- See Also:
- contWidth
setContWidth
public void setContWidth(int contWidth)
- Set the width of the content.
- See Also:
- contWidth
getContHeight
public int getContHeight()
- Get the height of the content.
- See Also:
- contHeight
setContHeight
public void setContHeight(int contHeight)
- Set the height of the content.
- See Also:
- contHeight
hasCorner
public boolean hasCorner()
- Check if this widget leaves the bottom-right corner open.
- See Also:
- corner
setCorner
public void setCorner(boolean corner)
- Let this widget have a corner or not.
- See Also:
- corner
newContent
protected Widget newContent()
- Allocate content container.
- Overrides:
- newContent in class ContainerWidget
scrollContent
public void scrollContent(int tx,
int ty)
- Scroll the content to a given position, limited by
contHeight and contWidth. This will change the
translation of the content.
focusContent
public void focusContent(int x,
int y,
int w,
int h)
- Scroll the content so that the given rectangle
is visible.
setContentSize
public void setContentSize(int contWidth,
int contHeight)
- Set the size of the content
setScrollbarModes
public void setScrollbarModes(int horzmode,
int vertmode)
- Set scrollbar mode.
newScrollbar
public ScrollbarWidget newScrollbar(int orientation)
- Create a new scrollbar with all the necessary properties.
layout
public void layout()
- Layout the container.
- Overrides:
- layout in class ContainerWidget
handleEvent
public boolean handleEvent(Event evt)
- Handle scroll events.
- Overrides:
- handleEvent in class Widget
All Packages Class Hierarchy This Package Previous Next Index