japlot.jaxodraw
Class JaxoOptionsMenu
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.AbstractButton
-
- javax.swing.JMenuItem
-
- javax.swing.JMenu
-
- japlot.jaxodraw.JaxoOptionsMenu
-
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.MenuElement, javax.swing.SwingConstants
public class JaxoOptionsMenu extends javax.swing.JMenu implements java.awt.event.ActionListenerContains the entries of the options menu.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Field Summary
-
Fields inherited from class javax.swing.AbstractButton
BORDER_PAINTED_CHANGED_PROPERTY, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
-
-
Constructor Summary
Constructors Constructor and Description JaxoOptionsMenu(JaxoMainPanel mainPanel)Constructs a new options menu from the specified panel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidactionPerformed(java.awt.event.ActionEvent evt)Specifies the action to be taken when an item from the menu has been selected.voidantialiasOn(boolean on)Switches antialiasing on or off.voidarrow(boolean on)Determines whether arrows should be drawn by default on lines, arcs and loops.voiddescribe()Allows to enter a short text that serves as a description of the current JaxoGraph.voidgridOn(boolean on)Switches the grid on or off.voidlatexPackage()Brings up a dialog that allows a custom Latex package to be included in the Latex output.voidlookNFeel()Pops up a dialog box that allows the user to change the Look and Feel of this japlot.jaxodraw session.voidsetDefault(int act)Sets the label of the default entry to the selected one.voidsetLanguage(java.lang.String languageString)Sets the text for the entries in the options menu in different languages.voidsetPopVT(int popvt)Sets the radio button to the current vertex type in the pop-up menu.voidshowBrowserbar(boolean show)Sets the Editor visible or not.voidshowEditorbar(boolean show)Sets the Editor visible or not.voidshowStatusbar(boolean show)Sets the Statusbar visible or not.voidshowToolbar(boolean show)Sets the Toolbar visible or not.-
Methods inherited from class javax.swing.JMenu
add, add, add, add, add, addMenuListener, addSeparator, applyComponentOrientation, doClick, getAccessibleContext, getComponent, getDelay, getItem, getItemCount, getMenuComponent, getMenuComponentCount, getMenuComponents, getMenuListeners, getPopupMenu, getSubElements, getUIClassID, insert, insert, insert, insertSeparator, isMenuComponent, isPopupMenuVisible, isSelected, isTearOff, isTopLevelMenu, menuSelectionChanged, remove, remove, remove, removeAll, removeMenuListener, setAccelerator, setComponentOrientation, setDelay, setMenuLocation, setModel, setPopupMenuVisible, setSelected, updateUI
-
Methods inherited from class javax.swing.JMenuItem
addMenuDragMouseListener, addMenuKeyListener, getAccelerator, getMenuDragMouseListeners, getMenuKeyListeners, isArmed, processKeyEvent, processMenuDragMouseEvent, processMenuKeyEvent, processMouseEvent, removeMenuDragMouseListener, removeMenuKeyListener, setArmed, setEnabled, setUI
-
Methods inherited from class javax.swing.AbstractButton
addActionListener, addChangeListener, addItemListener, doClick, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, removeActionListener, removeChangeListener, removeItemListener, removeNotify, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Constructor Detail
-
JaxoOptionsMenu
public JaxoOptionsMenu(JaxoMainPanel mainPanel)
Constructs a new options menu from the specified panel.- Parameters:
mainPanel- The parent JaxoMainPanel.
-
-
Method Detail
-
actionPerformed
public final void actionPerformed(java.awt.event.ActionEvent evt)
Specifies the action to be taken when an item from the menu has been selected.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
evt- The event to be processed.
-
lookNFeel
public final void lookNFeel()
Pops up a dialog box that allows the user to change the Look and Feel of this japlot.jaxodraw session.
-
setLanguage
public final void setLanguage(java.lang.String languageString)
Sets the text for the entries in the options menu in different languages.- Parameters:
languageString- A string specifying the language to be set.
-
showToolbar
public final void showToolbar(boolean show)
Sets the Toolbar visible or not. If it is visible, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
show- Boolean variable that determines whether to show the Toolbar or not.
-
showEditorbar
public final void showEditorbar(boolean show)
Sets the Editor visible or not. If it is visible, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
show- Boolean variable that determines whether to show the editor or not.
-
showBrowserbar
public final void showBrowserbar(boolean show)
Sets the Editor visible or not. If it is visible, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
show- Boolean variable that determines whether to show the editor or not.
-
showStatusbar
public final void showStatusbar(boolean show)
Sets the Statusbar visible or not. If it is visible, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
show- Boolean variable that determines whether to show the Statusbar or not.
-
antialiasOn
public final void antialiasOn(boolean on)
Switches antialiasing on or off. If it is on, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
on- Boolean variable that determines whether antialiasing is on or off.
-
arrow
public final void arrow(boolean on)
Determines whether arrows should be drawn by default on lines, arcs and loops.- Parameters:
on- A boolean variable that determines whether arrows should be drawn by default on lines, arcs and loops.
-
gridOn
public final void gridOn(boolean on)
Switches the grid on or off. If it is on, a small Icon is displayed in the corresponding OptionsMenu item.- Parameters:
on- Boolean variable that determines whether the grid is on or off.
-
describe
public final void describe()
Allows to enter a short text that serves as a description of the current JaxoGraph. This text will appear in all export files.
-
latexPackage
public final void latexPackage()
Brings up a dialog that allows a custom Latex package to be included in the Latex output.
-
setPopVT
public final void setPopVT(int popvt)
Sets the radio button to the current vertex type in the pop-up menu.- Parameters:
popvt- Specifies the current vertex type.
-
setDefault
public final void setDefault(int act)
Sets the label of the default entry to the selected one.- Parameters:
act- Specifies the current default action.
-
-
DMelt 3.0 © DataMelt by jWork.ORG