Class JDrawEditor
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
fr.esrf.tangoatk.widget.util.jdraw.JDrawEditor
- All Implemented Interfaces:
DropTargetListener,ActionListener,ComponentListener,KeyListener,MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener
- Direct Known Subclasses:
TangoSynopticHandler
public class JDrawEditor
extends JComponent
implements MouseMotionListener, MouseListener, ActionListener, KeyListener, ComponentListener, DropTargetListener
The graph editor/viewer component.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intCreation mode of the editorstatic final intEditor is in classic edition modestatic final intGroup edition mode, this is a restricted edition mode (no undo possible)static final intLibrary mode, allow only selection and clipboardstatic final intPlay mode, play object according to their value , in this mode no contextual menu is displayedFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdd an JDrawEditor listener.voidAdd an object to the drawing.voidvoidAlign selection to bottomvoidAlign selection to leftvoidAlign selection to rightvoidAlign selection to topvoidsend selected object to backgroundbooleancanPaste()booleancanRedo()booleancanUndo()voidClears the JDrawEditor listener list.voidClear all objectvoidClear the undo buffervoidvoidvoidvoidvoidCompute the optimal size of the components and trigger sizeChanged()voidConvert the selected objects to JDPolyline.voidCopy selection to clipboardvoidcreate(int what) Sets the editor in creation mode.voidSets the editor in creation mode.voidMove the selection to clipboardvoidDelete selection from the drawvoiddragEnter(DropTargetDragEvent dtde) voiddragExit(DropTargetEvent dte) voiddragOver(DropTargetDragEvent dtde) voiddrop(DropTargetDropEvent dtde) voidvoidbring selected object to foregroundvoidgenerateJavaClasses(String dirName) Generates java classes from the selection.intintgetMode()booleangetObjectAt(int idx) intUsed for read only purpose , vector should not be modified by this way.getObjectsByName(String name, boolean recurseGroup) getObjectsOfClass(Class theClass) String[]Used for read only purpose , vector should not be modified by this way.intintintvoidgroup selected objectsvoidInits the player, This function should be called only if you want to build dynamicaly a graph with addObject().voidinstantSave(String defaultDir) Save the current drawing to the file (Ask for filename if no filename has been previously set)booleanbooleanbooleanbooleanbooleanisSelected(JDObject obj) voidvoidvoidvoidLoad a jdraw grpahics file into the editor Trigger valueChanged() if a file is selected to be loaded.voidLoad a jdraw grpahics file into the editor Trigger valueChanged() if a file is selected to be loaded.protected voidLoad a jdraw grpahics input stream reader into the editor.voidMove down selected object.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidPaints all JDObjects of the components.voidPaints selection area and control points.voidpasteClipboard(int x, int y, boolean fromOrigin) Paste the selection at the specified pos.voidRaise selected object.voidredo()Redo last canceled actionvoidRemove an JDrawEditor listener.voidRepaint the specified rectangle.voidReset need to save bit to falsevoidSave the current drawing to a file.voidscaleSelection(double rx, double ry) Scale selection around the selection center.voidSelect all objectvoidSelect non visible itemsvoidselectObject(JDObject obj) Select the specified object.voidselectObjects(JDObject[] objs) Selects all specified objects.voidsetAlignToGrid(boolean b) When enabled, all moved control points and objects will be aligned to the grid.voidsetAutoZoom(boolean b) Sets the auto zoom.voidsetAutoZoomFactor(double ratio) Sets the initial autoZoom factor.voidsetGridSize(int size) Sets the grid step size.voidsetGridVisible(boolean b) Shows or hide the grid.voidvoidsetRootPaths(String[] paths) CLASSPATH used for loading image (for netbeans plugins)voidsetStatusLabel(JLabel label) Sets the status label where are printed creation information.voidsetTranslation(int x, int y) Set a global translation for the drawing areavoidsetZoomFactor(int z) Sets the zoom factor.voidShows the object browservoidShows the group editor dialogvoidShows the java generation file selection boxvoidshowOpenDialog(String defaultDir) Show the file selection box and call loadFile if a file is selected.voidShows the property windowvoidshowSaveDialog(String defaultDir) Show the file selection box and call saveFile if a file is selected.voidShows the property windowvoidtranslateSelection(int x, int y) Translate selected Objectvoidundo()Undo the last actionvoidungroup selected objectvoidUnselect all objectvoidunselectObject(JDObject obj) Unselect the specified object.voidzoomIn()Zoom In the graphvoidzoomOut()Zoom Out the graphMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
MODE_EDIT
public static final int MODE_EDITEditor is in classic edition mode- See Also:
-
MODE_EDIT_GROUP
public static final int MODE_EDIT_GROUPGroup edition mode, this is a restricted edition mode (no undo possible)- See Also:
-
MODE_PLAY
public static final int MODE_PLAYPlay mode, play object according to their value , in this mode no contextual menu is displayed- See Also:
-
MODE_LIB
public static final int MODE_LIBLibrary mode, allow only selection and clipboard- See Also:
-
CREATE_RECTANGLE
public static final int CREATE_RECTANGLECreation mode of the editor- See Also:
-
CREATE_LINE
public static final int CREATE_LINECreation mode of the editor- See Also:
-
CREATE_ELLIPSE
public static final int CREATE_ELLIPSECreation mode of the editor- See Also:
-
CREATE_POLYLINE
public static final int CREATE_POLYLINECreation mode of the editor- See Also:
-
CREATE_LABEL
public static final int CREATE_LABELCreation mode of the editor- See Also:
-
CREATE_SPLINE
public static final int CREATE_SPLINECreation mode of the editor- See Also:
-
CREATE_CLIPBOARD
public static final int CREATE_CLIPBOARDCreation mode of the editor- See Also:
-
CREATE_RRECTANGLE
public static final int CREATE_RRECTANGLECreation mode of the editor- See Also:
-
CREATE_IMAGE
public static final int CREATE_IMAGECreation mode of the editor- See Also:
-
CREATE_SWINGOBJECT
public static final int CREATE_SWINGOBJECTCreation mode of the editor- See Also:
-
CREATE_AXIS
public static final int CREATE_AXISCreation mode of the editor- See Also:
-
CREATE_BAR
public static final int CREATE_BARCreation mode of the editor- See Also:
-
CREATE_SLIDER
public static final int CREATE_SLIDERCreation mode of the editor- See Also:
-
CREATE_ROTATABLELABEL
public static final int CREATE_ROTATABLELABELCreation mode of the editor- See Also:
-
-
Constructor Details
-
JDrawEditor
public JDrawEditor(int mode) Contruct a JDraw editor in the specified mode.- Parameters:
mode- Mode of the editor- See Also:
-
-
Method Details
-
setGridVisible
public void setGridVisible(boolean b) Shows or hide the grid.- Parameters:
b- True to show the grid, false otherwise.
-
isGridVisible
public boolean isGridVisible()- Returns:
- whether the grid is visible.
-
setGridSize
public void setGridSize(int size) Sets the grid step size.- Parameters:
size- Grid size (pixel)
-
getGridSize
public int getGridSize()- Returns:
- the current gid size.
- See Also:
-
setAlignToGrid
public void setAlignToGrid(boolean b) When enabled, all moved control points and objects will be aligned to the grid.- Parameters:
b- True to align object to grid , false otherwise.
-
isAlignToGrid
public boolean isAlignToGrid()- Returns:
- whether object and control point are aligned to the grid.
- See Also:
-
getMode
public int getMode()- Returns:
- the mode of the editor.
-
selectObject
Select the specified object. Does not fire selectionChanged().- Parameters:
obj- Object to be selected.
-
unselectObject
Unselect the specified object. Does not fire selectionChanged().- Parameters:
obj- Object to be deselected.
-
isSelected
- Parameters:
obj- JDObject- Returns:
- whether the specified object is selected.
- See Also:
-
selectObjects
Selects all specified objects.- Parameters:
objs- Array of JDObject to be selected.
-
getObjectNumber
public int getObjectNumber()- Returns:
- number of object
-
getObjectAt
- Parameters:
idx- Object index.- Returns:
- the JDObject at the specified position.
-
getObjects
Used for read only purpose , vector should not be modified by this way.- Returns:
- Vector of objects
-
getSelectedObjects
Used for read only purpose , vector should not be modified by this way.- Returns:
- Vector of selected objects
-
unselectAll
public void unselectAll()Unselect all object -
selectAll
public void selectAll()Select all object -
selectNotVisible
public void selectNotVisible()Select non visible items -
create
public void create(int what) Sets the editor in creation mode.- Parameters:
what- Object to be created- See Also:
-
create
Sets the editor in creation mode.- Parameters:
what- Object to be createdparam- Optional parameters (used for JDSwingObject className)- See Also:
-
getSelectionLength
public int getSelectionLength()- Returns:
- number of selected object
-
showPropertyWindow
public void showPropertyWindow()Shows the property window -
showTransformWindow
public void showTransformWindow()Shows the property window -
showBrowserWindow
public void showBrowserWindow()Shows the object browser -
showGroupEditorWindow
public void showGroupEditorWindow()Shows the group editor dialog -
generateJavaClasses
Generates java classes from the selection.- Parameters:
dirName- Directory where to generate files- Throws:
IOException- In case of failure- See Also:
-
showGroupJavaWindow
public void showGroupJavaWindow()Shows the java generation file selection box -
copySelection
public void copySelection()Copy selection to clipboard -
pasteClipboard
public void pasteClipboard(int x, int y, boolean fromOrigin) Paste the selection at the specified pos.- Parameters:
x- Up left corner x coordinatey- Up left corner y coordinatefromOrigin- Get coordinates from Top Left corner of clipboard
-
scaleSelection
public void scaleSelection(double rx, double ry) Scale selection around the selection center.- Parameters:
rx- Horizontal sace ratio.ry- Vertical sace ratio.
-
cutSelection
public void cutSelection()Move the selection to clipboard -
deleteSelection
public void deleteSelection()Delete selection from the draw -
showSaveDialog
Show the file selection box and call saveFile if a file is selected. Trigger valueChanged() if a file is selected to be saved.- Parameters:
defaultDir- default directory- See Also:
-
saveFile
Save the current drawing to a file.- Parameters:
fileName- File name- Throws:
IOException- Exception containing error message when failed.
-
getSaveString
-
instantSave
Save the current drawing to the file (Ask for filename if no filename has been previously set)- Parameters:
defaultDir- Default directory
-
loadFromStream
Load a jdraw grpahics input stream reader into the editor. Available only for play mode. The .jlx and .g files are not supported. This method is only called by TangoSynopticHandler which is in fact in Play mode.- Parameters:
inp- opened for the synoptic resource- Throws:
IOException- Exception containing error message when failed.- See Also:
-
setRootPaths
CLASSPATH used for loading image (for netbeans plugins)- Parameters:
paths- List of path used for searching image
-
getRootPaths
-
loadFile
Load a jdraw grpahics file into the editor Trigger valueChanged() if a file is selected to be loaded.- Parameters:
fileName- File name- Throws:
IOException- Exception containing error message when failed.- See Also:
-
loadFile
Load a jdraw grpahics file into the editor Trigger valueChanged() if a file is selected to be loaded.- Parameters:
fileName- File nameclearUndoBuffer- true to clear the undo buffer- Throws:
IOException- Exception containing error message when failed.- See Also:
-
showOpenDialog
Show the file selection box and call loadFile if a file is selected. Trigger valueChanged() if a file is selected to be loaded.- Parameters:
defaultDir- default directory- See Also:
-
frontSelection
public void frontSelection()bring selected object to foreground -
backSelection
public void backSelection()send selected object to background -
groupSelection
public void groupSelection()group selected objects -
ungroupSelection
public void ungroupSelection()ungroup selected object -
zoomIn
public void zoomIn()Zoom In the graph -
zoomOut
public void zoomOut()Zoom Out the graph -
getZoomFactorPercent
public int getZoomFactorPercent()- Returns:
- the zoom factor in percent
-
getZoomFactor
public int getZoomFactor()- Returns:
- the zoom factor value.
- See Also:
-
setZoomFactor
public void setZoomFactor(int z) Sets the zoom factor. Does not have effect if autoZoom is enabled.- Parameters:
z- ZoomFactor ( -1=33% , 0=50% , 1=100% , 2=200% )- See Also:
-
setAutoZoom
public void setAutoZoom(boolean b) Sets the auto zoom. When auto zoom is enabled, the drawing area follows the window size. This works only in MODE_PLAY.- Parameters:
b- True to enable auto zoom, false otherwise.- See Also:
-
setAutoZoomFactor
public void setAutoZoomFactor(double ratio) Sets the initial autoZoom factor. This allows to start the player (PLAY_MOE) with an arbitrary size.- Parameters:
ratio- Zoom factor
-
isAutoZoom
public boolean isAutoZoom()- Returns:
- true is auto zoom is enabled, false otherwise.
- See Also:
-
isAutoZoomAsked
public boolean isAutoZoomAsked()- Returns:
- true if auto zoom asked in jdw file, false otherwise
- See Also:
-
translateSelection
public void translateSelection(int x, int y) Translate selected Object- Parameters:
x- X translationy- Y translation
-
canUndo
public boolean canUndo()- Returns:
- undo state
-
canRedo
public boolean canRedo()- Returns:
- redo state
-
getLastActionName
- Returns:
- name of the last action
-
getNextActionName
- Returns:
- name of the action that can be redone
-
undo
public void undo()Undo the last action -
redo
public void redo()Redo last canceled action -
clearUndo
public void clearUndo()Clear the undo buffer -
aligntopSelection
public void aligntopSelection()Align selection to top -
alignleftSelection
public void alignleftSelection()Align selection to left -
alignbottomSelection
public void alignbottomSelection()Align selection to bottom -
alignrightSelection
public void alignrightSelection()Align selection to right -
addEditorListener
Add an JDrawEditor listener.- Parameters:
l- Editor listener.- See Also:
-
removeEditorListener
Remove an JDrawEditor listener.- Parameters:
l- Editor listener.- See Also:
-
clearEditorListener
public void clearEditorListener()Clears the JDrawEditor listener list.- See Also:
-
getNeedToSaveState
public boolean getNeedToSaveState()- Returns:
- true if the drawing has been modofied and need to be saved
-
getFileName
- Returns:
- the name of the last loaded file
-
addObject
Add an object to the drawing. If you want to add dynamcaly object to this editor (in PLAY_MODE) , You should call initPlayer() after all objects are inserted.- Parameters:
o- Object to add- See Also:
-
clearObjects
public void clearObjects()Clear all object -
setTranslation
public void setTranslation(int x, int y) Set a global translation for the drawing area- Parameters:
x- X translationy- Y translation
-
computePreferredSize
public void computePreferredSize()Compute the optimal size of the components and trigger sizeChanged() -
setPreferredSize
- Overrides:
setPreferredSizein classJComponent
-
getPreferredSize
- Overrides:
getPreferredSizein classJComponent
-
getMinimumSize
- Overrides:
getMinimumSizein classJComponent
-
initPlayer
public void initPlayer()Inits the player, This function should be called only if you want to build dynamicaly a graph with addObject(). Call it after all objects are inserted in the Editor. The call to this function is not absolutly needed. Call it only if you want to PLAY JDSwingObject or if you want to animate objects. -
getObjectsOfClass
- Parameters:
theClass- JDObject subclass- Returns:
- all objects of the specified class present in the drawing area.
-
getObjectsByName
- Parameters:
name- JDObject name (Case sensitive)recurseGroup- true to perform a deep search whithin group, false otherwise.- Returns:
- all objects having the given name present in the drawing area.
-
convertToPolyline
public void convertToPolyline()Convert the selected objects to JDPolyline. -
raiseObject
public void raiseObject()Raise selected object. -
lowerObject
public void lowerObject()Move down selected object. -
getInteractiveObjects
- Returns:
- all object that have the "User interaction" flag enabled.
-
setStatusLabel
Sets the status label where are printed creation information.- Parameters:
label- Label
-
canPaste
public boolean canPaste()- Returns:
- true if the clipboard contains valid data
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mousePressedEditorB1
-
mousePressedEditorB3
-
mousePressedPlayerB1
-
mousePressedPlayerB3
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
componentHidden
- Specified by:
componentHiddenin interfaceComponentListener
-
dragEnter
- Specified by:
dragEnterin interfaceDropTargetListener
-
dragOver
- Specified by:
dragOverin interfaceDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChangedin interfaceDropTargetListener
-
dragExit
- Specified by:
dragExitin interfaceDropTargetListener
-
drop
- Specified by:
dropin interfaceDropTargetListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
paintObjects
Paints all JDObjects of the components.- Parameters:
g- Graphics
-
paintSelection
Paints selection area and control points.- Parameters:
g- Graphics
-
paint
- Overrides:
paintin classJComponent
-
repaint
Repaint the specified rectangle.- Overrides:
repaintin classJComponent- Parameters:
r- Rectangle to be repainted ('not zoomed' coordinates).
-
resetNeedToSave
public void resetNeedToSave()Reset need to save bit to false -
addToMenu
-