|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BScrollPane.BViewport
protected static class BScrollPane.BViewport
Does all the heavy lifting for the BScrollPane.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.bui.BContainer |
|---|
BContainer.ChildOp |
| Field Summary | |
|---|---|
protected BoundedRangeModel |
_hmodel
|
protected Rectangle |
_srect
|
protected BComponent |
_target
|
protected BoundedRangeModel |
_vmodel
|
protected MouseWheelListener |
_wheelListener
|
| Fields inherited from class com.jmex.bui.BContainer |
|---|
_children, _layout |
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BScrollPane.BViewport(BComponent target,
boolean vert,
boolean horiz,
int snap)
|
|
| Method Summary | |
|---|---|
protected Dimension |
computePreferredSize(int whint,
int hhint)
Computes and returns a preferred size for this component. |
int |
getAbsoluteX()
Returns the x position of this component in absolute screen coordinates. |
int |
getAbsoluteY()
Returns the y position of this component in absolute screen coordinates. |
BComponent |
getHitComponent(int mx,
int my)
Returns the component "hit" by the specified mouse coordinates which might be this component or any of its children. |
BoundedRangeModel |
getHModel()
Returns the range model defined by this viewport's size and the preferred size of its target component. |
BComponent |
getTarget()
Returns a reference to the target of this viewport. |
BoundedRangeModel |
getVModel()
Returns the range model defined by this viewport's size and the preferred size of its target component. |
protected int |
getXOffset()
|
protected int |
getYOffset()
|
void |
invalidate()
Marks this component as invalid and needing a relayout. |
void |
layout()
Instructs this component to lay itself out. |
protected void |
renderComponent(Renderer renderer)
Renders any custom bits for this component. |
protected void |
wasAdded()
This method is called when we are added to a hierarchy that is connected to a top-level window (at which point we can rely on having a look and feel and can set ourselves up). |
protected void |
wasRemoved()
This method is called when we are removed from a hierarchy that is connected to a top-level window. |
| Methods inherited from class com.jmex.bui.BContainer |
|---|
add, add, add, add, applyOperation, getComponent, getComponentCount, getComponentIndex, getDefaultStyleClass, getLayoutManager, getNextFocus, getPreviousFocus, remove, remove, removeAll, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BoundedRangeModel _vmodel
protected BoundedRangeModel _hmodel
protected BComponent _target
protected MouseWheelListener _wheelListener
protected Rectangle _srect
| Constructor Detail |
|---|
public BScrollPane.BViewport(BComponent target,
boolean vert,
boolean horiz,
int snap)
| Method Detail |
|---|
public BComponent getTarget()
public BoundedRangeModel getVModel()
public BoundedRangeModel getHModel()
public void invalidate()
BComponent
invalidate in class BComponentpublic void layout()
BComponent
layout in class BContainerpublic int getAbsoluteX()
BComponent
getAbsoluteX in class BComponentpublic int getAbsoluteY()
BComponent
getAbsoluteY in class BComponent
public BComponent getHitComponent(int mx,
int my)
BComponent
getHitComponent in class BContainerprotected void wasAdded()
BComponent
wasAdded in class BContainerprotected void wasRemoved()
BComponentBComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class BContainer
protected Dimension computePreferredSize(int whint,
int hhint)
BComponent
computePreferredSize in class BContainerprotected void renderComponent(Renderer renderer)
BComponent
renderComponent in class BContainerprotected final int getYOffset()
protected final int getXOffset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||