public class JDrawEditor
extends javax.swing.JComponent
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.ComponentListener, java.awt.dnd.DropTargetListener
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
CREATE_AXIS
Creation mode of the editor
|
static int |
CREATE_BAR
Creation mode of the editor
|
static int |
CREATE_CLIPBOARD
Creation mode of the editor
|
static int |
CREATE_ELLIPSE
Creation mode of the editor
|
static int |
CREATE_IMAGE
Creation mode of the editor
|
static int |
CREATE_LABEL
Creation mode of the editor
|
static int |
CREATE_LINE
Creation mode of the editor
|
static int |
CREATE_POLYLINE
Creation mode of the editor
|
static int |
CREATE_RECTANGLE
Creation mode of the editor
|
static int |
CREATE_RRECTANGLE
Creation mode of the editor
|
static int |
CREATE_SLIDER
Creation mode of the editor
|
static int |
CREATE_SPLINE
Creation mode of the editor
|
static int |
CREATE_SWINGOBJECT
Creation mode of the editor
|
static int |
MODE_EDIT
Editor is in classic edition mode
|
static int |
MODE_EDIT_GROUP
Group edition mode, this is a restricted edition mode (no undo possible)
|
static int |
MODE_LIB
Library mode, allow only selection and clipboard
|
static int |
MODE_PLAY
Play mode, play object according to their value , in this mode no contextual menu is displayed
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JDrawEditor(int mode)
Contruct a JDraw editor in the specified mode.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addEditorListener(JDrawEditorListener l)
Add an JDrawEditor listener.
|
void |
addObject(JDObject o)
Add an object to the drawing.
|
void |
addToMenu(javax.swing.JMenuItem newItem) |
void |
alignbottomSelection()
Align selection to bottom
|
void |
alignleftSelection()
Align selection to left
|
void |
alignrightSelection()
Align selection to right
|
void |
aligntopSelection()
Align selection to top
|
void |
backSelection()
send selected object to background
|
boolean |
canPaste()
Returns true if the clipboard contains valid data
|
boolean |
canRedo()
Get redo state
|
boolean |
canUndo()
Get undo state
|
void |
clearEditorListener()
Clears the JDrawEditor listener list.
|
void |
clearObjects()
Clear all object
|
void |
clearUndo()
Clear the undo buffer
|
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
computePreferredSize()
Compute the optimal size of the components and trigger sizeChanged()
|
void |
convertToPolyline()
Convert the selected objects to JDPolyline.
|
void |
copySelection()
Copy selection to clipboard
|
void |
create(int what)
Sets the editor in creation mode.
|
void |
create(int what,
java.lang.String param)
Sets the editor in creation mode.
|
void |
cutSelection()
Move the selection to clipboard
|
void |
deleteSelection()
Delete selection from the draw
|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetEvent dte) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde) |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde) |
void |
frontSelection()
bring selected object to foreground
|
void |
generateJavaClasses(java.lang.String dirName)
Generates java classes from the selection.
|
java.lang.String |
getFileName()
Gets the name of the last loaded file
|
int |
getGridSize()
Returns the current gid size.
|
java.util.Vector |
getInteractiveObjects()
Return all object that have the "User interaction" flag enabled.
|
java.lang.String |
getLastActionName()
Get name of the last action
|
java.awt.Dimension |
getMinimumSize() |
int |
getMode()
Returns the mode of the editor.
|
boolean |
getNeedToSaveState()
Returns true if the drawing has been modofied and need to be saved
|
java.lang.String |
getNextActionName()
Get name of the action that can be redone
|
JDObject |
getObjectAt(int idx)
Get the JDObject at the specified position.
|
int |
getObjectNumber()
Get number of object
|
java.util.Vector |
getObjects()
Used for read only purpose , vector should not be modified by this way.
|
java.util.Vector |
getObjectsByName(java.lang.String name,
boolean recurseGroup)
Returns all objects having the given name present in the drawing area.
|
java.util.Vector |
getObjectsOfClass(java.lang.Class theClass)
Retunrs all objects of the specified class present in the drawing area.
|
java.awt.Dimension |
getPreferredSize() |
java.lang.String[] |
getRootPaths() |
java.lang.StringBuffer |
getSaveString() |
java.util.Vector |
getSelectedObjects()
Used for read only purpose , vector should not be modified by this way.
|
int |
getSelectionLength()
Get number of selected object
|
int |
getZoomFactor()
Returns the zoom factor value.
|
int |
getZoomFactorPercent()
Get the zoom factor in percent
|
void |
groupSelection()
group selected objects
|
void |
initPlayer()
Inits the player, This function should be called only if you want
to build dynamicaly a graph with addObject().
|
void |
instantSave(java.lang.String defaultDir)
Save the current drawing to the file (Ask for filename if no filename has been previously set)
|
boolean |
isAlignToGrid()
Determines whether object and control point are aligned to the grid.
|
boolean |
isAutoZoom()
Returns true is auto zoom is enabled, false otherwise.
|
boolean |
isGridVisible()
Determines whether the grid is visible.
|
boolean |
isSelected(JDObject obj)
Determine wheter the specifed object is selected.
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
loadFile(java.lang.String fileName)
Load a jdraw grpahics file into the editor
Trigger valueChanged() if a file is selected to be loaded.
|
void |
loadFile(java.lang.String fileName,
boolean clearUndoBuffer)
Load a jdraw grpahics file into the editor
Trigger valueChanged() if a file is selected to be loaded.
|
protected void |
loadFromStream(java.io.InputStreamReader inp)
Load a jdraw grpahics input stream reader into the editor.
|
void |
lowerObject()
Move down selected object.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mousePressedEditorB1(java.awt.event.MouseEvent e) |
void |
mousePressedEditorB3(java.awt.event.MouseEvent e) |
void |
mousePressedPlayerB1(java.awt.event.MouseEvent e) |
void |
mousePressedPlayerB3(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics g) |
void |
paintObjects(java.awt.Graphics g)
Paints all JDObjects of the components.
|
void |
paintSelection(java.awt.Graphics g)
Paints selection area and control points.
|
void |
pasteClipboard(int x,
int y,
boolean fromOrigin)
Paste the selection at the specified pos.
|
void |
raiseObject()
Raise selected object.
|
void |
redo()
Redo last canceled action
|
void |
removeEditorListener(JDrawEditorListener l)
Remove an JDrawEditor listener.
|
void |
repaint(java.awt.Rectangle r)
Repaint the specified rectangle.
|
void |
resetNeedToSave()
Reset need to save bit to false
|
void |
saveFile(java.lang.String fileName)
Save the current drawing to a file.
|
void |
scaleSelection(double rx,
double ry)
Scale selection around the selection center.
|
void |
selectAll()
Select all object
|
void |
selectNotVisible()
Select non visible items
|
void |
selectObject(JDObject obj)
Select the specified object.
|
void |
selectObjects(JDObject[] objs)
Selects all specified objects.
|
void |
setAlignToGrid(boolean b)
When enabled, all moved control points and objects will be aligned
to the grid.
|
void |
setAutoZoom(boolean b)
Sets the auto zoom.
|
void |
setAutoZoomFactor(double ratio)
Sets the initial autoZoom factor.
|
void |
setGridSize(int size)
Sets the grid step size.
|
void |
setGridVisible(boolean b)
Shows or hide the grid.
|
void |
setPreferredSize(java.awt.Dimension d) |
void |
setRootPaths(java.lang.String[] paths)
CLASSPATH used for loading image (for netbeans plugins)
|
void |
setStatusLabel(javax.swing.JLabel label)
Sets the status label where are printed creation information.
|
void |
setTranslation(int x,
int y)
Set a global translation for the drawing area
|
void |
setZoomFactor(int z)
Sets the zoom factor.
|
void |
showBrowserWindow()
Shows the object browser
|
void |
showGroupEditorWindow()
Shows the group editor dialog
|
void |
showGroupJavaWindow()
Shows the java generation file selection box
|
void |
showOpenDialog(java.lang.String defaultDir)
Show the file selection box and call loadFile if a file is selected.
|
void |
showPropertyWindow()
Shows the property window
|
void |
showSaveDialog(java.lang.String defaultDir)
Show the file selection box and call saveFile if a file is selected.
|
void |
showTransformWindow()
Shows the property window
|
void |
translateSelection(int x,
int y)
Translate selected Object
|
void |
undo()
Undo the last action
|
void |
ungroupSelection()
ungroup selected object
|
void |
unselectAll()
Unselect all object
|
void |
unselectObject(JDObject obj)
Unselect the specified object.
|
void |
zoomIn()
Zoom In the graph
|
void |
zoomOut()
Zoom Out the graph
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, 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, updateUI
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, validateTree
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, 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, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int MODE_EDIT
public static final int MODE_EDIT_GROUP
public static final int MODE_PLAY
public static final int MODE_LIB
public static final int CREATE_RECTANGLE
public static final int CREATE_LINE
public static final int CREATE_ELLIPSE
public static final int CREATE_POLYLINE
public static final int CREATE_LABEL
public static final int CREATE_SPLINE
public static final int CREATE_CLIPBOARD
public static final int CREATE_RRECTANGLE
public static final int CREATE_IMAGE
public static final int CREATE_SWINGOBJECT
public static final int CREATE_AXIS
public static final int CREATE_BAR
public static final int CREATE_SLIDER
public JDrawEditor(int mode)
mode
- Mode of the editorMODE_EDIT
,
MODE_EDIT_GROUP
,
MODE_PLAY
public void setGridVisible(boolean b)
b
- True to show the grid, false otherwise.public boolean isGridVisible()
public void setGridSize(int size)
size
- Grid size (pixel)public int getGridSize()
setGridSize(int)
public void setAlignToGrid(boolean b)
b
- True to align object to grid , false otherwise.public boolean isAlignToGrid()
setAlignToGrid(boolean)
,
setGridSize(int)
public int getMode()
public void selectObject(JDObject obj)
obj
- Object to be selected.public void unselectObject(JDObject obj)
obj
- Object to be deselected.public boolean isSelected(JDObject obj)
obj
- JDObjectselectObject(fr.esrf.tangoatk.widget.util.jdraw.JDObject)
,
unselectObject(fr.esrf.tangoatk.widget.util.jdraw.JDObject)
public void selectObjects(JDObject[] objs)
objs
- Array of JDObject to be selected.public int getObjectNumber()
public JDObject getObjectAt(int idx)
idx
- Object index.public java.util.Vector getObjects()
public java.util.Vector getSelectedObjects()
public void unselectAll()
public void selectAll()
public void selectNotVisible()
public void create(int what)
what
- Object to be createdcreate(int,String)
,
CREATE_RECTANGLE
,
CREATE_LINE
,
CREATE_ELLIPSE
,
CREATE_POLYLINE
,
CREATE_LABEL
,
CREATE_SPLINE
,
CREATE_CLIPBOARD
,
CREATE_RRECTANGLE
,
CREATE_IMAGE
,
CREATE_SWINGOBJECT
,
CREATE_AXIS
,
CREATE_BAR
,
CREATE_SLIDER
public void create(int what, java.lang.String param)
what
- Object to be createdparam
- Optional parameters (used for JDSwingObject className)create(int)
public int getSelectionLength()
public void showPropertyWindow()
public void showTransformWindow()
public void showBrowserWindow()
public void showGroupEditorWindow()
public void generateJavaClasses(java.lang.String dirName) throws java.io.IOException
java.io.IOException
JDGroup.generateJavaClass(java.io.FileWriter)
public void showGroupJavaWindow()
public void copySelection()
public void pasteClipboard(int x, int y, boolean fromOrigin)
x
- Up left corner x coordinatey
- Up left corner y coordinatepublic void scaleSelection(double rx, double ry)
rx
- Horizontal sace ratio.ry
- Vertical sace ratio.public void cutSelection()
public void deleteSelection()
public void showSaveDialog(java.lang.String defaultDir)
defaultDir
- default directorysaveFile(java.lang.String)
public void saveFile(java.lang.String fileName) throws java.io.IOException
fileName
- File namejava.io.IOException
- Exception containing error message when failed.public java.lang.StringBuffer getSaveString()
public void instantSave(java.lang.String defaultDir)
protected void loadFromStream(java.io.InputStreamReader inp) throws java.io.IOException
inp
- opened for the synoptic resourcejava.io.IOException
- Exception containing error message when failed.JDrawEditorListener.valueChanged()
public void setRootPaths(java.lang.String[] paths)
paths
- List of path used for searching imagepublic java.lang.String[] getRootPaths()
public void loadFile(java.lang.String fileName) throws java.io.IOException
fileName
- File namejava.io.IOException
- Exception containing error message when failed.JDrawEditorListener.valueChanged()
public void loadFile(java.lang.String fileName, boolean clearUndoBuffer) throws java.io.IOException
fileName
- File nameclearUndoBuffer
- true to clear the undo bufferjava.io.IOException
- Exception containing error message when failed.JDrawEditorListener.valueChanged()
public void showOpenDialog(java.lang.String defaultDir)
defaultDir
- default directoryJDrawEditorListener.valueChanged()
,
loadFile(java.lang.String)
public void frontSelection()
public void backSelection()
public void groupSelection()
public void ungroupSelection()
public void zoomIn()
public void zoomOut()
public int getZoomFactorPercent()
public int getZoomFactor()
getZoomFactorPercent()
public void setZoomFactor(int z)
z
- ZoomFactor ( -1=33% , 0=50% , 1=100% , 2=200% )setAutoZoomFactor(double)
public void setAutoZoom(boolean b)
b
- True to enable auto zoom, false otherwise.setAutoZoomFactor(double)
public void setAutoZoomFactor(double ratio)
ratio
- Zoom factorpublic boolean isAutoZoom()
setAutoZoom(boolean)
public void translateSelection(int x, int y)
public boolean canUndo()
public boolean canRedo()
public java.lang.String getLastActionName()
public java.lang.String getNextActionName()
public void undo()
public void redo()
public void clearUndo()
public void aligntopSelection()
public void alignleftSelection()
public void alignbottomSelection()
public void alignrightSelection()
public void addEditorListener(JDrawEditorListener l)
l
- Editor listener.JDrawEditorListener
public void removeEditorListener(JDrawEditorListener l)
l
- Editor listener.JDrawEditorListener
public void clearEditorListener()
JDrawEditorListener
public boolean getNeedToSaveState()
public java.lang.String getFileName()
public void addObject(JDObject o)
initPlayer()
public void clearObjects()
public void setTranslation(int x, int y)
public void computePreferredSize()
public void setPreferredSize(java.awt.Dimension d)
setPreferredSize
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public void initPlayer()
public java.util.Vector getObjectsOfClass(java.lang.Class theClass)
theClass
- JDObject subclasspublic java.util.Vector getObjectsByName(java.lang.String name, boolean recurseGroup)
name
- JDObject name (Case sensitive)recurseGroup
- true to perform a deep search whithin group, false otherwise.public void convertToPolyline()
public void raiseObject()
public void lowerObject()
public java.util.Vector getInteractiveObjects()
public void setStatusLabel(javax.swing.JLabel label)
label
- Labelpublic boolean canPaste()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mousePressedEditorB1(java.awt.event.MouseEvent e)
public void mousePressedEditorB3(java.awt.event.MouseEvent e)
public void mousePressedPlayerB1(java.awt.event.MouseEvent e)
public void mousePressedPlayerB3(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void paintObjects(java.awt.Graphics g)
g
- Graphicspublic void paintSelection(java.awt.Graphics g)
g
- Graphicspublic void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void repaint(java.awt.Rectangle r)
repaint
in class javax.swing.JComponent
r
- Rectangle to be repainted ('not zoomed' coordinates).public void resetNeedToSave()
public void addToMenu(javax.swing.JMenuItem newItem)