|
|||||||||||
PREV CLASS 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
javax.swing.AbstractButton
javax.swing.JButton
org.tigris.toolbar.toolbutton.ToolButton
org.tigris.toolbar.toolbutton.ModalButton
org.tigris.swidgets.PopupButton
org.argouml.ui.ZoomSliderButton
A button that can be used to change the zoom magnification of the current diagram. When the user presses the button, a popup is displayed which contains a vertical slider representing the range of zoom magnifications. Dragging the slider changes the zoom magnification for the current diagram.
Nested Class Summary |
Nested classes inherited from class org.tigris.toolbar.toolbutton.ToolButton |
org.tigris.toolbar.toolbutton.ToolButton.ToolButtonAction |
Nested classes inherited from class javax.swing.JButton |
JButton.AccessibleJButton |
Nested classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private JTextField |
currentValue
The text field which shows the current zoom magnification value. |
private static Font |
LABEL_FONT
Font used for the slider tick labels and for the current magnification value label. |
private static int |
MAXIMUM_ZOOM
The maximum zoom magnification slider value. |
private static int |
MINIMUM_ZOOM
The minimum zoom magnification slider value. |
private static String |
RESOURCE_NAME
Used for loading the zoom icon from the Zoom Reset action. |
private JSlider |
slider
The slider component. |
private static int |
SLIDER_HEIGHT
The preferred height of the slider component. |
Fields inherited from class org.tigris.swidgets.PopupButton |
|
Fields inherited from class org.tigris.toolbar.toolbutton.ModalButton |
|
Fields inherited from class org.tigris.toolbar.toolbutton.ToolButton |
_button, containedGroups, selected |
Fields inherited from class javax.swing.JButton |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ZoomSliderButton()
Constructs a new ZoomSliderButton. |
Method Summary | |
private void |
createPopupComponent()
Creates the slider popup component. |
private void |
handleSliderValueChange()
Called when the slider value changes. |
private void |
handleTextEntry()
Called when the text field value changes. |
protected void |
showPopup()
Update the slider value every time the popup is shown. |
private void |
updateCurrentValueLabel()
Sets the current value label's text to the current slider value. |
Methods inherited from class org.tigris.swidgets.PopupButton |
getPopupComponent, setIcon, setPopupComponent |
Methods inherited from class org.tigris.toolbar.toolbutton.ModalButton |
getRealAction, setAction |
Methods inherited from class org.tigris.toolbar.toolbutton.ToolButton |
performAction, setRolloverEnabled, setSelected |
Methods inherited from class javax.swing.JButton |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE_NAME
private static final Font LABEL_FONT
private static final int MINIMUM_ZOOM
private static final int MAXIMUM_ZOOM
private static final int SLIDER_HEIGHT
private JSlider slider
private JTextField currentValue
Constructor Detail |
public ZoomSliderButton()
Method Detail |
private void createPopupComponent()
protected void showPopup()
private void handleSliderValueChange()
private void handleTextEntry()
private void updateCurrentValueLabel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |