public class JDrawEditorFrame extends javax.swing.JFrame implements java.awt.event.ActionListener, JDrawEditorListener, JDValueListener
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
JDCreationMenu |
createMenu
Creation menus.
|
javax.swing.JMenuItem |
editCopyMenuItem
Edit->Copy menu item.
|
javax.swing.JMenuItem |
editCutMenuItem
Edit->Cut menu item.
|
javax.swing.JMenuItem |
editDeleteMenuItem
Edit->Delete menu item.
|
javax.swing.JMenu |
editMenu
Edit menu.
|
javax.swing.JMenuItem |
editPasteMenuItem
Edit->Paste menu item.
|
javax.swing.JMenuItem |
editRedoMenuItem
Edit->Redo menu item.
|
javax.swing.JMenuItem |
editSelectAllMenuItem
Edit->Select All menu item.
|
javax.swing.JMenuItem |
editSelectNoneMenuItem
Edit->Select None menu item.
|
javax.swing.JMenuItem |
editSelectNVMenuItem
Edit->Select Not visible menu item.
|
javax.swing.JButton |
editToolAlignBottomBtn
'Align Bottom' toolbar button.
|
javax.swing.JButton |
editToolAlignLeftBtn
'Align Left' toolbar button.
|
javax.swing.JButton |
editToolAlignRightBtn
'Align Right' toolbar button.
|
javax.swing.JButton |
editToolAlignTopBtn
'Align Top' toolbar button.
|
javax.swing.JToolBar |
editToolBar
The Edition toolbar toolbar.
|
javax.swing.JButton |
editToolCopyBtn
'Copy' toolbar button.
|
javax.swing.JButton |
editToolCutBtn
'Cut' toolbar button.
|
javax.swing.JButton |
editToolFileOpenBtn
'Open' toolbar button.
|
javax.swing.JButton |
editToolFileSaveBtn
'Save' toolbar button.
|
javax.swing.JButton |
editToolHMirrorBtn
'H Mirror' toolbar button.
|
javax.swing.JButton |
editToolOptionBtn
'Object properties' toolbar button.
|
javax.swing.JButton |
editToolPasteBtn
'Paste' toolbar button.
|
javax.swing.JButton |
editToolRedoBtn
'Redo' toolbar button.
|
javax.swing.JButton |
editToolTransformBtn
'Transform' toolbar button.
|
javax.swing.JButton |
editToolUndoBtn
'Undo' toolbar button.
|
javax.swing.JButton |
editToolVMirrorBtn
'V Mirror' toolbar button.
|
javax.swing.JButton |
editToolZoomInBtn
'Zoom In' toolbar button.
|
javax.swing.JLabel |
editToolZoomLabel
'Zoom percent' toolbar label.
|
javax.swing.JButton |
editToolZoomOutBtn
'Zoom Out' toolbar button.
|
javax.swing.JMenuItem |
editUndoMenuItem
Edit->Undo menu item.
|
javax.swing.JMenuItem |
fileExitMenuItem
File->Exit menu item.
|
javax.swing.JMenuItem |
fileImportMenuItem
File->Import menu item.
|
javax.swing.JMenu |
fileMenu
File menu.
|
javax.swing.JMenuItem |
fileOpenMenuItem
File->Open menu item.
|
javax.swing.JMenuItem |
fileSaveasMenuItem
File->Save as menu item.
|
javax.swing.JMenuItem |
fileSaveMenuItem
File->Save menu item.
|
javax.swing.JLabel |
statusLabel
The status label (display at the bottom of the frame).
|
javax.swing.JScrollPane |
theEditorView
The editor scroll view.
|
javax.swing.JMenuItem |
toolsAlignbottomMenuItem
Tools->Align bottom menu item.
|
javax.swing.JMenuItem |
toolsAlignleftMenuItem
Tools->Align left menu item.
|
javax.swing.JMenuItem |
toolsAlignrightMenuItem
Tools->Align rigth item.
|
javax.swing.JMenuItem |
toolsAligntopMenuItem
Tools->Align top menu item.
|
javax.swing.JMenuItem |
toolsHMirrorMenuItem
Tools->H Mirror menu item.
|
javax.swing.JMenu |
toolsMenu
Tools menu.
|
javax.swing.JMenuItem |
toolsVMirrorMenuItem
Tools->V Mirror menu item.
|
javax.swing.JMenuItem |
viewsBrowseMenuItem
Views->Browse menu item.
|
javax.swing.JMenu |
viewsMenu
Views menu.
|
javax.swing.JMenuItem |
viewsOptionMenuItem
Views->Object properties menu item.
|
javax.swing.JMenuItem |
viewsPlayMenuItem
Views->Play menu item.
|
javax.swing.JMenuItem |
viewsTangoSynopticMenuItem
Views->Tango Synoptic menu item.
|
javax.swing.JMenuItem |
viewsTransformMenuItem
Views->Transform menu item.
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JDrawEditorFrame()
Contruct an Editor frame.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
clipboardChanged()
Called when the clipboard change , after a copy/cut
|
void |
creationDone()
Called when the user end the creation mode
|
void |
exitApp()
Ask to save if some modifications are still unsaved then exit the application.
|
static void |
main(java.lang.String[] args)
Main function of the Jdraw editor.
|
protected void |
processWindowEvent(java.awt.event.WindowEvent e) |
void |
selectionChanged()
Called when the selection change
|
void |
setAppTitle(java.lang.String title)
Name used to build the frame title.
|
void |
setEditor(JDrawEditor editor)
Sets the editor of this EditorFrame.
|
void |
setLibraries(java.lang.String path) |
void |
setPlayer(JDrawEditor editor)
Sets the player of this EditorFrame.
|
void |
sizeChanged()
Called when the size of the editor change, usualy after a zoom or a load.
|
void |
valueChanged()
Called when the drawing currently edited change, also called after laoding a file.
|
void |
valueChanged(JDObject src)
Trigerred when the JDObject value change
|
void |
valueExceedBounds(JDObject src)
Trigerred when the JDObject value goes out of bounds and is reseted to its minimum value
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public javax.swing.JScrollPane theEditorView
public javax.swing.JLabel statusLabel
public javax.swing.JMenu fileMenu
public javax.swing.JMenuItem fileOpenMenuItem
public javax.swing.JMenuItem fileImportMenuItem
public javax.swing.JMenuItem fileSaveMenuItem
public javax.swing.JMenuItem fileSaveasMenuItem
public javax.swing.JMenuItem fileExitMenuItem
public javax.swing.JMenu editMenu
public javax.swing.JMenuItem editUndoMenuItem
public javax.swing.JMenuItem editRedoMenuItem
public javax.swing.JMenuItem editCutMenuItem
public javax.swing.JMenuItem editCopyMenuItem
public javax.swing.JMenuItem editPasteMenuItem
public javax.swing.JMenuItem editDeleteMenuItem
public javax.swing.JMenuItem editSelectAllMenuItem
public javax.swing.JMenuItem editSelectNVMenuItem
public javax.swing.JMenuItem editSelectNoneMenuItem
public javax.swing.JMenu viewsMenu
public javax.swing.JMenuItem viewsTransformMenuItem
public javax.swing.JMenuItem viewsPlayMenuItem
public javax.swing.JMenuItem viewsTangoSynopticMenuItem
public javax.swing.JMenuItem viewsOptionMenuItem
public javax.swing.JMenuItem viewsBrowseMenuItem
public javax.swing.JMenu toolsMenu
public javax.swing.JMenuItem toolsHMirrorMenuItem
public javax.swing.JMenuItem toolsVMirrorMenuItem
public javax.swing.JMenuItem toolsAligntopMenuItem
public javax.swing.JMenuItem toolsAlignleftMenuItem
public javax.swing.JMenuItem toolsAlignbottomMenuItem
public javax.swing.JMenuItem toolsAlignrightMenuItem
public JDCreationMenu createMenu
public javax.swing.JToolBar editToolBar
public javax.swing.JButton editToolFileOpenBtn
public javax.swing.JButton editToolFileSaveBtn
public javax.swing.JButton editToolUndoBtn
public javax.swing.JButton editToolRedoBtn
public javax.swing.JButton editToolCutBtn
public javax.swing.JButton editToolCopyBtn
public javax.swing.JButton editToolPasteBtn
public javax.swing.JButton editToolZoomInBtn
public javax.swing.JButton editToolZoomOutBtn
public javax.swing.JLabel editToolZoomLabel
public javax.swing.JButton editToolOptionBtn
public javax.swing.JButton editToolTransformBtn
public javax.swing.JButton editToolHMirrorBtn
public javax.swing.JButton editToolVMirrorBtn
public javax.swing.JButton editToolAlignLeftBtn
public javax.swing.JButton editToolAlignTopBtn
public javax.swing.JButton editToolAlignRightBtn
public javax.swing.JButton editToolAlignBottomBtn
public JDrawEditorFrame()
main(java.lang.String[])
public void setEditor(JDrawEditor editor)
public void setPlayer(JDrawEditor editor)
public void setAppTitle(java.lang.String title)
public void setLibraries(java.lang.String path)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void creationDone()
JDrawEditorListener
creationDone
in interface JDrawEditorListener
public void selectionChanged()
JDrawEditorListener
selectionChanged
in interface JDrawEditorListener
public void clipboardChanged()
JDrawEditorListener
clipboardChanged
in interface JDrawEditorListener
public void valueChanged()
JDrawEditorListener
valueChanged
in interface JDrawEditorListener
public void sizeChanged()
JDrawEditorListener
sizeChanged
in interface JDrawEditorListener
public void valueChanged(JDObject src)
JDValueListener
valueChanged
in interface JDValueListener
public void valueExceedBounds(JDObject src)
JDValueListener
valueExceedBounds
in interface JDValueListener
public void exitApp()
protected void processWindowEvent(java.awt.event.WindowEvent e)
processWindowEvent
in class javax.swing.JFrame
public static void main(java.lang.String[] args)
public static void main(String[] args) { final JDrawEditor ed = new JDrawEditor(JDrawEditor.MODE_EDIT); final JDrawEditor py = new JDrawEditor(JDrawEditor.MODE_PLAY); JDrawableList.addClass("myClass"); final JDrawEditorFrame jde = new JDrawEditorFrame(); jde.setAppTitle("My Editor"); jde.setEditor(ed); jde.setPlayer(py); ATKGraphicsUtils.centerFrameOnScreen(jde); jde.setVisible(true); }
args
- Filename to be loaded