java.util.EventListener
, JaxoCanvasComponent
, JaxoLocalized
, java.beans.PropertyChangeListener
, javax.swing.Scrollable
AbstractJaxoCanvas
, JaxoCanvas
public interface JaxoDrawingArea extends JaxoCanvasComponent, java.beans.PropertyChangeListener, javax.swing.Scrollable, JaxoLocalized
Modifier and Type | Field | Description |
---|---|---|
static java.awt.Color |
DEFAULT_HELP_COLOR |
Default visualAid color.
|
static java.awt.Stroke |
DEFAULT_HELP_STROKE |
Default visualAid Stroke.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears the drawing area.
|
void |
continueEdit(java.awt.Point p,
java.awt.Point last) |
Continue an edit actione that has been initiated before.
|
void |
continueSelect(java.awt.Point p) |
Carry on a select action that was started previously.
|
void |
copyMarkedObjects() |
Puts the current clipboard to the system clipboard.
|
void |
cutMarkedObjects() |
Copies the current clipboard to the system clipboard
and removes the corresponding objects from the drawing area.
|
void |
editNearestObject(java.awt.Point p) |
Determine the closest object to the given point and bring up an edit panel for it.
|
void |
finalizeEdit() |
Finalize a user input action.
|
void |
finalizeSelect(java.awt.Point p) |
End a select action.
|
JaxoGraph |
getClipboard() |
Gets the current clipboard.
|
JaxoZoom |
getZoom() |
Return a zoom on this drawing area.
|
void |
groupMarkedObjects() |
Groups the currently marked objects.
|
void |
initiateEdit(java.awt.Point p) |
Start an edit action at a given point.
|
void |
initiateSelect(java.awt.Point p) |
Start a select action.
|
void |
markImageInvalid(java.awt.Rectangle boundingBox) |
Mark the specified region as invalid.
|
void |
moveGraph(int dx,
int dy) |
Displace the whole graph by a given offset.
|
void |
moveSelection(boolean backGround) |
Moves the currently selected objects into either fore- or background.
|
void |
pasteFromClipboard() |
Paste the graph currently on the clipboard into this drawing area.
|
void |
refresh() |
Refresh the canvas.
|
void |
setCanvasGraph(JaxoGraph value) |
Sets the graph to be painted.
|
void |
setGrid(JaxoPaintableGrid value) |
Sets the grid to be painted on this drawing area.
|
void |
ungroupMarkedObjects() |
Ungroup all marked objects.
|
boolean |
unMarkGraph() |
Sets all objects in the current graph as not marked.
|
void |
updatePointsAid(java.awt.Point p) |
Updates the visual aid that is painted for objects in click-move mode.
|
addMouseListener, addMouseMotionListener, addPropertyChangeListener, asComponent, getCanvasBackground, getCanvasBounds, getCanvasOrigin, getCanvasSize, getGraphics, getMaximumCanvasSize, getMinimumCanvasSize, print, removeMouseListener, removeMouseMotionListener, repaint, setCanvasBackground, setMaximumCanvasSize, setMinimumCanvasSize
updateLanguage
static final java.awt.Color DEFAULT_HELP_COLOR
static final java.awt.Stroke DEFAULT_HELP_STROKE
void clear()
void continueEdit(java.awt.Point p, java.awt.Point last)
p
- the point on this drawing area associated with the edit action.last
- the last recorded action point, or null if none.void continueSelect(java.awt.Point p)
p
- the current point of the select action.void copyMarkedObjects()
void cutMarkedObjects()
void editNearestObject(java.awt.Point p)
p
- the test pointvoid finalizeEdit()
void finalizeSelect(java.awt.Point p)
p
- the point where the select action was finished.JaxoGraph getClipboard()
JaxoZoom getZoom()
void groupMarkedObjects()
void initiateEdit(java.awt.Point p)
p
- the point associated with the edit action.void initiateSelect(java.awt.Point p)
p
- the point where the select action was started.void markImageInvalid(java.awt.Rectangle boundingBox)
boundingBox
- The region to update.
May be null in which case the whole image is marked for update.void moveSelection(boolean backGround)
backGround
- True for moving into background, false for foreground.void moveGraph(int dx, int dy)
dx
- the offset in x direction.dy
- the offset in y direction.void pasteFromClipboard()
void refresh()
void setCanvasGraph(JaxoGraph value)
value
- The graph to be set.void setGrid(JaxoPaintableGrid value)
value
- The new grid. May be null.void ungroupMarkedObjects()
boolean unMarkGraph()
void updatePointsAid(java.awt.Point p)
p
- the current location of the cursor.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.