jfig.gui
Class JEditorMenuBar
java.lang.Object
jfig.gui.JEditorMenuBar
- public class JEditorMenuBar
- extends java.lang.Object
Swing menu bar and menu items for the jfig editor.
Constructor Summary |
JEditorMenuBar()
create the main editor menu bar for the Swing based jfig editor,
including all normal and checkbox menu items and their shortcuts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
menuBar
javax.swing.JMenuBar menuBar
fileMenu
javax.swing.JMenu fileMenu
writeFig31MI
public javax.swing.JCheckBoxMenuItem writeFig31MI
writeFig32MI
public javax.swing.JCheckBoxMenuItem writeFig32MI
optionsRemapMouseMI
public javax.swing.JCheckBoxMenuItem optionsRemapMouseMI
antialiasMI
public javax.swing.JCheckBoxMenuItem antialiasMI
qualityMI
public javax.swing.JCheckBoxMenuItem qualityMI
tripleBufferMI
public javax.swing.JCheckBoxMenuItem tripleBufferMI
mouseWheelScrollingMI
public javax.swing.JCheckBoxMenuItem mouseWheelScrollingMI
showLayerManagerMI
public javax.swing.JCheckBoxMenuItem showLayerManagerMI
showLineLengthsMI
public javax.swing.JCheckBoxMenuItem showLineLengthsMI
showTeXStringsMI
public javax.swing.JCheckBoxMenuItem showTeXStringsMI
scaleLineWidthMI
javax.swing.JCheckBoxMenuItem scaleLineWidthMI
scaleFontSizeMI
javax.swing.JCheckBoxMenuItem scaleFontSizeMI
debugWriteResourceMI
public javax.swing.JMenuItem debugWriteResourceMI
JEditorMenuBar
public JEditorMenuBar()
- create the main editor menu bar for the Swing based jfig editor,
including all normal and checkbox menu items and their shortcuts.
setFont
public void setFont(java.awt.Font font)
addActionListener
public void addActionListener(java.awt.event.ActionListener AL)
addExportListener
public void addExportListener(java.awt.event.ActionListener AL)
addItemListener
public void addItemListener(java.awt.event.ItemListener IL)
setFigVersion
public void setFigVersion(int version,
java.awt.event.ItemListener IL)
- update the "FIG 3.1" or "FIG 3.2" CheckBoxMenuItems to reflect the
currently selected FIG format version.
Swing fun: to avoid a StackOverflow due to CheckBoxMenuItem.setState
instantly calling itemStateChanged in JDK 1.3.x, we have to remove the
ItemListener, call setState(), and add the ItemListener back...
setRecentFileManager
public void setRecentFileManager(JRecentFileManager rfm,
java.awt.event.ActionListener AL)
getUndoMenuItem
public javax.swing.JMenuItem getUndoMenuItem()
getRedoMenuItem
public javax.swing.JMenuItem getRedoMenuItem()
getJMenuBar
public javax.swing.JMenuBar getJMenuBar()
main
public static void main(java.lang.String[] argv)