Overview
Package
Class
Index
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
M
P
R
S
T
U
A
activate()
- Method in interface jdraw.framework.
DrawTool
Activates the tool for the given view.
addFigure(Figure)
- Method in interface jdraw.framework.
DrawModel
Adds a new figure to the draw model.
addFigureListener(FigureListener)
- Method in interface jdraw.framework.
Figure
Adds the specified figure listener to receive figure events from this figure.
addMenu(JMenu)
- Method in interface jdraw.framework.
DrawEditor
Adds a menu in the edotor' user interface
addModelChangeListener(DrawModelListener)
- Method in interface jdraw.framework.
DrawModel
Adds the specified model listener to receive model events from this draw model.
addToSelection(Figure)
- Method in interface jdraw.framework.
DrawView
Adds a figure to the selected figures.
C
clearSelection()
- Method in interface jdraw.framework.
DrawView
Clears the selection.
clone()
- Method in interface jdraw.framework.
Figure
Returns a Clone of this figure
constrainPoint(Point)
- Method in interface jdraw.framework.
PointConstrainer
Returns constrained coordinates for p, e.g. rounded to a grid.
contains(int, int)
- Method in interface jdraw.framework.
Figure
Tests whether the mouse coordinates are contained in the figure.
contains(int, int)
- Method in interface jdraw.framework.
FigureHandle
Tests if a point is contained in the handle.
createTool(DrawEditor)
- Method in interface jdraw.framework.
DrawToolFactory
Returns a draw tool.
D
deactivate()
- Method in interface jdraw.framework.
DrawTool
Deactivates the tool.
dragInteraction(int, int, MouseEvent, DrawView)
- Method in interface jdraw.framework.
FigureHandle
Tracks a step of a started interaction.
Draw
- class jdraw.
Draw
.
The class Draw is the main class of the graphic editor.
draw(Graphics)
- Method in interface jdraw.framework.
Figure
draw is called when the figure has to be drawn.
draw(Graphics)
- Method in interface jdraw.framework.
FigureHandle
Draws this handle.
DrawEditor
- interface jdraw.framework.
DrawEditor
.
The interface DrawEditor defines the interface for accessing the object which contains the draw view.
DrawModel
- interface jdraw.framework.
DrawModel
.
The class DrawModel represents the model of a drawing, i.e.
DrawModelEvent
- class jdraw.framework.
DrawModelEvent
.
An event which indicates that a draw model has changed.
DrawModelEvent(DrawModel, Figure, int)
- Constructor for class jdraw.framework.
DrawModelEvent
Constructs a DrawModelEvent object with the specified model.
DrawModelListener
- interface jdraw.framework.
DrawModelListener
.
Listener interested in draw model changes.
DrawTool
- interface jdraw.framework.
DrawTool
.
A tool defines a mode of the drawing view, intendid to be set over a tool bar.
DrawToolFactory
- interface jdraw.framework.
DrawToolFactory
.
A DrawTool factory creates an instance of a draw tool and returns an icon which can be used in the tool palette of the graphics editor.
DrawView
- interface jdraw.framework.
DrawView
.
The class DrawView displays a graphic model.
F
Figure
- interface jdraw.framework.
Figure
.
Base interface for all figures implemented in the grafic editor.
FIGURE_ADDED
- Static variable in class jdraw.framework.
DrawModelEvent
This event indicates that a figure was added to the draw model.
FIGURE_CHANGED
- Static variable in class jdraw.framework.
DrawModelEvent
This event indicates that a figure was changed in the draw model.
FIGURE_REMOVED
- Static variable in class jdraw.framework.
DrawModelEvent
This event indicates that a figure was removed from the draw model.
figureChanged(FigureEvent)
- Method in interface jdraw.framework.
FigureListener
Sent when a figure has changed.
FigureEvent
- class jdraw.framework.
FigureEvent
.
An event which indicates that a figure event occurred in a figure.
FigureEvent(Figure)
- Constructor for class jdraw.framework.
FigureEvent
Constructs a FigureEvent object with the specified figure.
FigureHandle
- interface jdraw.framework.
FigureHandle
.
Handles are used to change a figure by direct manipulation.
FigureListener
- interface jdraw.framework.
FigureListener
.
Listener interested in figure changes.
G
getBounds()
- Method in interface jdraw.framework.
Figure
Returns the bounds of a figure.
getBounds()
- Method in interface jdraw.framework.
FigureHandle
Gets the bounding box of the handle.
getCenter()
- Method in interface jdraw.framework.
Figure
Returns the center of a figure.
getConstrainer()
- Method in interface jdraw.framework.
DrawView
Gets the current grid setting.
getCursor()
- Method in interface jdraw.framework.
FigureHandle
Returns a curser which should be displayed when the mouse is over the handle.
getEditor()
- Method in interface jdraw.framework.
DrawView
Returns the draw editor which contains this view.
getFigure()
- Method in class jdraw.framework.
DrawModelEvent
Returns the figure which initiated the event.
getFigure()
- Method in class jdraw.framework.
FigureEvent
Returns the figure which changed.
getFigures()
- Method in interface jdraw.framework.
DrawModel
Returns an iterator which can be used to iterate over all figures of a draw model.
getHandles()
- Method in interface jdraw.framework.
Figure
Returns a list of handles.
getIcon()
- Method in interface jdraw.framework.
DrawToolFactory
Returns an icon which can be used to provide access to the tool with a tool bar.
getModel()
- Method in class jdraw.framework.
DrawModelEvent
Returns the draw model which changed.
getModel()
- Method in interface jdraw.framework.
DrawView
Returns the graphic model of this view.
getOwner()
- Method in interface jdraw.framework.
FigureHandle
Gets the handle's owner.
getSelection()
- Method in interface jdraw.framework.
DrawView
Returns the selected figures.
getSize()
- Method in interface jdraw.framework.
DrawView
Returns the size of the drawing.
getStepX(boolean)
- Method in interface jdraw.framework.
PointConstrainer
Returns the horizontal step size when the selection is moved with the arrow keys.
getStepY(boolean)
- Method in interface jdraw.framework.
PointConstrainer
Returns the vertical step size when the selection is moved with the arrow keys.
getTool()
- Method in interface jdraw.framework.
DrawView
Returns the currently active tool.
getType()
- Method in class jdraw.framework.
DrawModelEvent
Returns the event type.
getView()
- Method in interface jdraw.framework.
DrawEditor
Returns the editor's drawing view.
I
isEmpty()
- Method in interface jdraw.framework.
Figure
Tests whether the figure is empty.
J
jdraw
- package jdraw
jdraw.framework
- package jdraw.framework
M
main(String[])
- Static method in class jdraw.
Draw
Starts the Graphic editor.
modelChanged(DrawModelEvent)
- Method in interface jdraw.framework.
DrawModelListener
Sent when a draw model has changed.
mouseDown(int, int, MouseEvent)
- Method in interface jdraw.framework.
DrawTool
Handles mouse down events in the drawing view.
mouseDrag(int, int, MouseEvent)
- Method in interface jdraw.framework.
DrawTool
Handles mouse drag events in the drawing view.
mouseUp(int, int, MouseEvent)
- Method in interface jdraw.framework.
DrawTool
Handles mouse up in the drawing view.
move(int, int)
- Method in interface jdraw.framework.
Figure
Moves the figure.
P
paint(Graphics)
- Method in interface jdraw.framework.
DrawView
Draws the graphic model.
PointConstrainer
- interface jdraw.framework.
PointConstrainer
.
A PointConstrainer is used to restrict the coordinates used when the mouse is clicked.
R
removeFigure(Figure)
- Method in interface jdraw.framework.
DrawModel
Removes a given figure from the draw model.
removeFigureListener(FigureListener)
- Method in interface jdraw.framework.
Figure
Removes the specified figure listener so that it no longer receives figure events from this figure.
removeFromSelection(Figure)
- Method in interface jdraw.framework.
DrawView
Removes a figure from the selected figures.
removeMenu(JMenu)
- Method in interface jdraw.framework.
DrawEditor
Removes a menu in the edotor' user interface
removeModelChangeListener(DrawModelListener)
- Method in interface jdraw.framework.
DrawModel
Removes the specified model listener so that it no longer receives model events from this draw model.
repaint()
- Method in interface jdraw.framework.
DrawView
Repaints this view.
S
setBounds(Point, Point)
- Method in interface jdraw.framework.
Figure
Changes the bounds of the figure.
setConstrainer(PointConstrainer)
- Method in interface jdraw.framework.
DrawView
Sets the current point constrainer.
setCursor(Cursor)
- Method in interface jdraw.framework.
DrawView
Sets the cursor of the DrawingView.
setDefaultTool()
- Method in interface jdraw.framework.
DrawView
Sets the default tool (selection and moving of figures).
setTool(DrawTool)
- Method in interface jdraw.framework.
DrawView
Sets the tool to be used.
showStatus(String)
- Method in interface jdraw.framework.
DrawEditor
Shows a status message in the editor's user interface
startInteraction(int, int, MouseEvent, DrawView)
- Method in interface jdraw.framework.
FigureHandle
Tracks the start of an interaction.
stopInteraction(int, int, MouseEvent, DrawView)
- Method in interface jdraw.framework.
FigureHandle
Tracks the end of a running interaction.
T
toolChanged()
- Method in interface jdraw.framework.
DrawEditor
Informs the draw editor that the tool has changed
A
B
C
D
E
F
G
I
J
M
P
R
S
T
U
Overview
Package
Class
Index
PREV NEXT
FRAMES
NO FRAMES
All Classes