|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
ilog.views.swing.IlvJScrollManagerView
public class IlvJScrollManagerView
A panel containing an IlvManagerView and two scrollbars.
The scrollbars help translate the view of the manager.
This component must be used in a Swing Application. Note that
if your application is an AWT application, you should use the class
IlvScrollManagerView.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
HORIZONTAL_SCROLLBAR_ALWAYS
Used to set the horizontal scrollbar policy so that horizontal scrollbars are always displayed. |
static int |
HORIZONTAL_SCROLLBAR_AS_NEEDED
Used to set the horizontal scrollbar policy so that horizontal scrollbars are displayed only when needed. |
static int |
HORIZONTAL_SCROLLBAR_NEVER
Used to set the horizontal scrollbar policy so that horizontal scrollbars are never displayed. |
static int |
VERTICAL_SCROLLBAR_ALWAYS
Used to set the vertical scrollbar policy so that vertical scrollbars are always displayed. |
static int |
VERTICAL_SCROLLBAR_AS_NEEDED
Used to set the vertical scrollbar policy so that vertical scrollbars are displayed only when needed. |
static int |
VERTICAL_SCROLLBAR_NEVER
Used to set the vertical scrollbar policy so that vertical scrollbars are never displayed. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvJScrollManagerView()
Creates a new IlvJScrollManagerView. |
|
IlvJScrollManagerView(IlvManager manager,
IlvTransformer t)
Creates a new IlvJScrollManagerView. |
|
IlvJScrollManagerView(IlvManagerView view)
Creates a new IlvJScrollManagerView. |
|
| Method Summary | |
|---|---|
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. |
JScrollBar |
getHorizontalScrollBar()
Returns the horizontal scrollbar. |
int |
getHorizontalScrollBarPolicy()
Returns the horizontal scrollbar policy value. |
JScrollBar |
getVerticalScrollBar()
Returns the vertical scrollbar. |
int |
getVerticalScrollBarPolicy()
Returns the vertical scrollbar policy value. |
IlvManagerView |
getView()
Returns the IlvManagerView that is scrolled. |
boolean |
isHorizontalScrollBarVisible()
Returns true if the horizontal scrollbar is visible. |
boolean |
isOptimizedDrawingEnabled()
Returns true because this component's children do not
overlap. |
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 |
paintComponent(Graphics g)
Paints the component. |
void |
processManagerViewKeyEvent(KeyEvent event)
Invoked by the
for any keystrokes that have not been consumed by the view's interactor or
registered key listeners. |
void |
removeNotify()
Notifies the Component that it has been removed from its container. |
void |
setHorizontalScrollBarPolicy(int policy)
Sets the policy when the horizontal scrollbar appears. |
void |
setHorizontalScrollBarVisible(boolean set)
Shows or hides the horizontal scrollbar. |
void |
setVerticalScrollBarPolicy(int policy)
Sets the policy when the vertical scrollbar appears. |
void |
setVerticalScrollBarVisible(boolean set)
Shows or hides the vertical scrollbar. |
void |
setView(IlvManagerView view)
Sets the IlvManagerView that is scrolled. |
void |
setWheelScrollingEnabled(boolean handleWheel)
Enables/disables scrolling in response to movement of the mouse wheel. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VERTICAL_SCROLLBAR_AS_NEEDED
setVerticalScrollBarPolicy(int),
Constant Field Valuespublic static final int VERTICAL_SCROLLBAR_NEVER
setVerticalScrollBarPolicy(int),
Constant Field Valuespublic static final int VERTICAL_SCROLLBAR_ALWAYS
setVerticalScrollBarPolicy(int),
Constant Field Valuespublic static final int HORIZONTAL_SCROLLBAR_AS_NEEDED
setHorizontalScrollBarPolicy(int),
Constant Field Valuespublic static final int HORIZONTAL_SCROLLBAR_NEVER
setHorizontalScrollBarPolicy(int),
Constant Field Valuespublic static final int HORIZONTAL_SCROLLBAR_ALWAYS
setHorizontalScrollBarPolicy(int),
Constant Field Values| Constructor Detail |
|---|
public IlvJScrollManagerView()
IlvJScrollManagerView.
This constructor creates an IlvManager and an
IlvManagerView that is added to
the manager by calling the createManagerView method.
public IlvJScrollManagerView(IlvManager manager,
IlvTransformer t)
IlvJScrollManagerView.
This constructor 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 IlvJScrollManagerView(IlvManagerView view)
IlvJScrollManagerView.
view - The manager view that is scrolled.| Method Detail |
|---|
public void updateUI()
updateUI in class JComponentpublic boolean isOptimizedDrawingEnabled()
true because this component's children do not
overlap.
isOptimizedDrawingEnabled in class JComponentpublic final JScrollBar getVerticalScrollBar()
public final JScrollBar getHorizontalScrollBar()
protected IlvManagerView createManagerView(IlvManager manager,
IlvTransformer t)
IlvManagerView for the
IlvScrollManagerView.
This method is called by the constructor to create the
IlvManagerView.
public void removeNotify()
removeNotify in class JComponentpublic void addNotify()
addNotify in class JComponentpublic void doLayout()
doLayout in class Containerpublic final IlvManagerView getView()
IlvManagerView that is scrolled.
public final void setView(IlvManagerView view)
IlvManagerView that is scrolled.
The view must not be null.
public void adjustScrollBars()
public void adjustView()
public int getVerticalScrollBarPolicy()
setVerticalScrollBarPolicy(int)public void setVerticalScrollBarPolicy(int policy)
policy - One of the three values listed above.
IllegalArgumentException - if policy
is not one of the legal values shown abovegetVerticalScrollBarPolicy()public int getHorizontalScrollBarPolicy()
setHorizontalScrollBarPolicy(int)public void setHorizontalScrollBarPolicy(int policy)
HORIZONTAL_SCROLLBAR_AS_NEEDED
HORIZONTAL_SCROLLBAR_NEVER
HORIZONTAL_SCROLLBAR_ALWAYS (default value)
policy - One of the three values listed above.
IllegalArgumentException - If policy
is not one of the legal values shown above.getHorizontalScrollBarPolicy()public boolean isVerticalScrollBarVisible()
true if the vertical scrollbar is visible.
public void setVerticalScrollBarVisible(boolean set)
VERTICAL_SCROLLBAR_AS_NEEDED calls
this method when necessary to change the visibility.
set - If true the scrollbar is shown.setVerticalScrollBarPolicy(int)public boolean isHorizontalScrollBarVisible()
true if the horizontal scrollbar is visible.
public void setHorizontalScrollBarVisible(boolean set)
HORIZONTAL_SCROLLBAR_AS_NEEDED calls
this method when necessary to change the visibility.
set - If true the scrollbar is shown.setHorizontalScrollBarPolicy(int)public boolean isWheelScrollingEnabled()
setWheelScrollingEnabled(boolean)public void setWheelScrollingEnabled(boolean handleWheel)
handleWheel - true if scrolling should be done
automatically for a MouseWheelEvent,
false otherwise.isWheelScrollingEnabled()public void processManagerViewKeyEvent(KeyEvent event)
IlvManagerView
for any keystrokes that have not been consumed by the view's interactor or
registered key listeners. This scroll panel simply invokes its own
processKeyEvent method so that the keystrokes are routed up
the Swing container hierarchy and any registered keyboard actions and/or
menu accelerators are properly handled.
Warning: This method is considered to be part of the scroll panel's internal implementation and is not a public API.
public void paintComponent(Graphics g)
paintComponent in class JComponent
protected void addImpl(Component comp,
Object constraints,
int index)
addImpl in class Container
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||