public class IlvScrollManagerView extends Panel
IlvManagerView
and two scrollbars.
The scrollbars help translate the view of the manager.
This component must be used in an AWT Application. Note that
if your application is a Swing application you should use the class
IlvJScrollManagerView
.
IlvManagerView
,
Serialized FormPanel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvScrollManagerView()
Creates a new
IlvScrollManagerView . |
IlvScrollManagerView(IlvManager manager,
IlvTransformer t)
Creates a new
IlvScrollManagerView . |
IlvScrollManagerView(IlvManager manager,
IlvTransformer t,
Adjustable verticalScrollbar,
Adjustable horizontalScrollbar)
Creates a new
IlvScrollManagerView . |
IlvScrollManagerView(IlvManagerView view)
Creates a new
IlvScrollManagerView . |
IlvScrollManagerView(IlvManagerView view,
Adjustable verticalScrollbar,
Adjustable horizontalScrollbar)
Creates a new
IlvScrollManagerView . |
Modifier and Type | Method and Description |
---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this container at the specified index.
|
void |
addNotify()
Notifies the Component that it has been added to a container.
|
void |
adjustScrollbars()
Adjusts the scrollbars so that they reflect the content of
the manager.
|
void |
adjustView()
Translates the view according to the values of the scrollbars.
|
protected IlvManagerView |
createManagerView(IlvManager manager,
IlvTransformer t)
Creates an
IlvManagerView for the
IlvScrollManagerView . |
void |
doLayout()
Performs the layout of the components.
|
int |
getBorderThickness()
Returns the thickness of the border around the
manager view.
|
Adjustable |
getHorizontalAdjustable()
Returns the horizontal scrollbar.
|
Dimension |
getMaximumSize()
Returns the maximum size of the component.
|
Dimension |
getMinimumSize()
Returns the minimum size of the component.
|
Dimension |
getPreferredSize()
Returns the preferred size of the component.
|
Adjustable |
getVerticalAdjustable()
Returns the vertical scrollbar.
|
IlvManagerView |
getView()
Returns the
IlvManagerView that is scrolled. |
boolean |
isDoubleBuffering()
Returns the double buffering state of the manager view.
|
boolean |
isHorizontalScrollbarVisible()
Returns true if the horizontal scrollbar is visible.
|
boolean |
isVerticalScrollbarVisible()
Returns true if the vertical scrollbar is visible.
|
boolean |
isWheelScrollingEnabled()
Indicates whether or not scrolling will take place in response to movement
of the mouse wheel.
|
void |
paint(Graphics g)
Paints the component.
|
protected void |
processFocusEvent(FocusEvent event)
Dispatches focus event to the view of the manager.
|
void |
removeNotify()
Notifies the Component that it has been removed from its container.
|
void |
setBorderThickness(int thickness)
Changes the thickness of the border around the
manager view.
|
void |
setDoubleBuffering(boolean set)
Sets the manager view in double buffering mode.
|
void |
setHorizontalScrollbarVisible(boolean set)
Shows or hides the horizontal scrollbar.
|
void |
setVerticalScrollbarVisible(boolean set)
Shows or hides the vertical scrollbar.
|
void |
setWheelScrollingEnabled(boolean handleWheel)
Enables/disables scrolling in response to movement of the mouse wheel.
|
void |
update(Graphics dst)
Updates the view.
|
getAccessibleContext
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IlvScrollManagerView()
IlvScrollManagerView
.
This method creates an IlvManager
and a view of
the manager by calling the createManagerView
method.public IlvScrollManagerView(IlvManager manager, IlvTransformer t)
IlvScrollManagerView
.
This method creates an IlvManagerView
that is added to
the manager by calling the createManagerView
method.manager
- the manager to scroll.t
- the initial transformer to draw the content of the manager.
This is the initial transformer of the IlvManagerView
that
is created.public IlvScrollManagerView(IlvManager manager, IlvTransformer t, Adjustable verticalScrollbar, Adjustable horizontalScrollbar)
IlvScrollManagerView
.
This method creates an IlvManagerView
that is added to
the manager by calling the createManagerView
method.
This constructor also allows you to specify the scrollbars that you
want.manager
- the manager to scroll.t
- the initial transformer to draw the content of the manager.
This is the initial transformer of the IlvManagerView
that
is created.verticalScrollbar
- the vertical scrollbar.
Note this must be a Component
.horizontalScrollbar
- the horizontal scrollbar.
Note this must be a Component
.createManagerView(ilog.views.IlvManager, ilog.views.IlvTransformer)
public IlvScrollManagerView(IlvManagerView view)
IlvScrollManagerView
.view
- the manager view that is scrolled.public IlvScrollManagerView(IlvManagerView view, Adjustable verticalScrollbar, Adjustable horizontalScrollbar)
IlvScrollManagerView
.
This constructor also allows you to specify the scrollbars that you
want. It may be, for example, instances of JFC's JScrollbar
.view
- the manager view that is scrolled.verticalScrollbar
- the vertical scrollbar.
Note this must be a Component
.horizontalScrollbar
- the horizontal scrollbar.
Note this must be a Component
.public final int getBorderThickness()
setBorderThickness(int)
public final void setBorderThickness(int thickness)
getBorderThickness()
public final Adjustable getVerticalAdjustable()
java.awt.Scrollbar
class, but you can use
any type of component that implements the Adjustable
interface for the implementation of scrollbars.
That is the reason why this method returns a Adjustable
that
you can cast in Scrollbar
.public final Adjustable getHorizontalAdjustable()
java.awt.Scrollbar
class, but you can use
any type of component that implements the Adjustable
interface for the implementation of scrollbars.
That is the reason why this method returns a Adjustable
that
you can cast in Scrollbar
.protected IlvManagerView createManagerView(IlvManager manager, IlvTransformer t)
IlvManagerView
for the
IlvScrollManagerView
.
This method is called by the constructor to create the
IlvManagerView
.public void paint(Graphics g)
public void removeNotify()
removeNotify
in class Container
public void addNotify()
public void doLayout()
public Dimension getPreferredSize()
getPreferredSize
in class Container
public Dimension getMinimumSize()
getMinimumSize
in class Container
public Dimension getMaximumSize()
getMaximumSize
in class Container
public final IlvManagerView getView()
IlvManagerView
that is scrolled.public void adjustScrollbars()
public void adjustView()
public final boolean isDoubleBuffering()
public final void setDoubleBuffering(boolean set)
public boolean isVerticalScrollbarVisible()
public void setVerticalScrollbarVisible(boolean set)
set
- if true the scrollbar is shown.public boolean isHorizontalScrollbarVisible()
public void setHorizontalScrollbarVisible(boolean set)
set
- if true the scrollbar is shown.public boolean isWheelScrollingEnabled()
setWheelScrollingEnabled(boolean)
public void setWheelScrollingEnabled(boolean handleWheel)
handleWheel
- true
if scrolling should be done
automatically for a MouseWheelEvent,
false
otherwise.isWheelScrollingEnabled()
protected void processFocusEvent(FocusEvent event)
processFocusEvent
in class Component
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.