- cachedNullTool - Variable in class minidraw.standard.SelectionTool
-
helper null tool to avoid creating and destroying objects all the time
- calculateFigureCoordinatesForProps(String) - Method in interface minidraw.boardgame.PositioningStrategy
-
Calculate proper coordinates for a prop (non-movable BoardFigure) based upon
its key (unique string identifier).
- calculateFigureCoordinatesIndexedForLocation(LOCATION, int) - Method in interface minidraw.boardgame.PositioningStrategy
-
Calculate proper graphical (x,y) coordinates of a figure that has been
moved to a given location on the board.
- calculateImageNameForPropWithKey(String) - Method in interface minidraw.boardgame.PropAppearanceStrategy
-
- changed() - Method in interface minidraw.framework.Figure
-
Informs that a figure has changed its display box.
- changed() - Method in class minidraw.standard.AbstractFigure
-
- changeImage(String) - Method in class minidraw.boardgame.BoardFigure
-
Change the image to use.
- checkDamage() - Method in interface minidraw.framework.DrawingView
-
Check if any damage has been made to this view and repaint if this is the
case.
- checkDamage() - Method in class minidraw.standard.StandardDrawingView
-
- clearSelection() - Method in interface minidraw.framework.SelectionHandler
-
Clears the current selection.
- clearSelection() - Method in class minidraw.standard.handlers.StandardSelectionHandler
-
Clears the current selection.
- clearSelection() - Method in class minidraw.standard.StandardDrawing
-
Clears the current selection.
- Command - Interface in minidraw.boardgame
-
A Command pattern to encapsulate method calls on a board game based upon
clicking or moving graphical figures on the graphical display.
- CompositeFigure - Class in minidraw.standard
-
A base class for a Figure that is composed of several figures.
- CompositeFigure() - Constructor for class minidraw.standard.CompositeFigure
-
- constrainPoint(Point) - Method in class minidraw.standard.StandardDrawingView
-
Constrains a point to the current grid.
- createAreaTracker() - Method in class minidraw.standard.SelectionTool
-
Factory method to create an Area Tracker.
- createContents(DrawingView, JTextField) - Method in class minidraw.standard.MiniDrawApplication
-
given a drawing view, return the JPanel that encapsulate it.
- createDragTracker(Figure) - Method in class minidraw.standard.SelectionTool
-
Factory method to create a Drag tracker.
- createDrawing(DrawingEditor) - Method in interface minidraw.framework.Factory
-
Create the drawing (Model role of the MVC pattern).
- createDrawingView(DrawingEditor) - Method in interface minidraw.framework.Factory
-
Create the drawing view (View role of the MVC pattern).
- createStatusField(DrawingEditor) - Method in interface minidraw.framework.Factory
-
Create the text field used for messages.
- deactivate() - Method in class minidraw.standard.NullTool
-
- displayBox() - Method in interface minidraw.framework.Figure
-
Return the display box of this figure.
- displayBox() - Method in class minidraw.standard.GroupFigure
-
- displayBox() - Method in class minidraw.standard.ImageFigure
-
- displayBox() - Method in class minidraw.standard.StandardDrawing
-
- draggedFigure - Variable in class minidraw.standard.SelectionTool
-
the figure that is being dragged.
- DragTracker - Class in minidraw.standard.handlers
-
A DragTracker tool moves the set of figures defined by the drawing's
selection container (= the figures presently selected).
- DragTracker(DrawingEditor, Figure) - Constructor for class minidraw.standard.handlers.DragTracker
-
- draw(Graphics) - Method in interface minidraw.framework.Figure
-
Draws the figure.
- draw(Graphics) - Method in class minidraw.standard.CompositeFigure
-
- draw(Graphics) - Method in class minidraw.standard.ImageFigure
-
- drawAll(Graphics) - Method in interface minidraw.framework.DrawingView
-
Draws the contents of the drawing view.
- drawAll(Graphics) - Method in class minidraw.standard.StandardDrawingView
-
- drawBackground(Graphics) - Method in interface minidraw.framework.DrawingView
-
Draws a background behind the Drawing's contents.
- drawBackground(Graphics) - Method in class minidraw.standard.StandardDrawingView
-
- drawBackground(Graphics) - Method in class minidraw.standard.StdViewWithBackground
-
- drawDrawing(Graphics) - Method in interface minidraw.framework.DrawingView
-
Draws the contents of the associated Drawing.
- drawDrawing(Graphics) - Method in class minidraw.standard.StandardDrawingView
-
- Drawing - Interface in minidraw.framework
-
Drawing is the model role of the MVC pattern, a container of Figure instances
in MiniDraw.
- drawing() - Method in interface minidraw.framework.DrawingEditor
-
get the drawing this editor is associated with
- drawing() - Method in class minidraw.standard.MiniDrawApplication
-
- DrawingChangeEvent - Class in minidraw.framework
-
The change event originating from a drawing.
- DrawingChangeEvent(Drawing, Rectangle) - Constructor for class minidraw.framework.DrawingChangeEvent
-
Constructs a drawing change event.
- DrawingChangeListener - Interface in minidraw.framework
-
DrawingChangeListener defines the observer role of an object listening to
DrawingChangeEvents from a Drawing.
- DrawingChangeListenerHandler - Interface in minidraw.framework
-
The DrawingChangeListenerHandler defines a role for an object that maintains
the set of DrawingChangeListener's used by a Drawing.
- DrawingEditor - Interface in minidraw.framework
-
The DrawingEditor is the interface of the "main" class of any minidraw
application.
- drawingInvalidated(DrawingChangeEvent) - Method in interface minidraw.framework.DrawingChangeListener
-
Called when a drawing has areas that needs to be redrawn.
- drawingInvalidated(DrawingChangeEvent) - Method in class minidraw.standard.StandardDrawingView
-
- drawingRequestUpdate(DrawingChangeEvent) - Method in interface minidraw.framework.DrawingChangeListener
-
Called when the drawing wants to be refreshed
- drawingRequestUpdate(DrawingChangeEvent) - Method in class minidraw.standard.StandardDrawingView
-
- DrawingView - Interface in minidraw.framework
-
The graphical output role of MiniDraw, representing the View role of the MVC
pattern.
- drawOverlay(Graphics) - Method in interface minidraw.framework.DrawingView
-
Draws the overlay.
- drawOverlay(Graphics) - Method in class minidraw.standard.StandardDrawingView
-
- drawSelectionHighlight(Graphics) - Method in interface minidraw.framework.DrawingView
-
Draws highlight selection graphics .
- drawSelectionHighlight(Graphics) - Method in class minidraw.standard.StandardDrawingView
-
- factory - Variable in class minidraw.boardgame.BoardDrawing
-
- Factory - Interface in minidraw.framework
-
Abstract factory for creating implementations of the central roles used in
MiniDraw.
- factory - Variable in class minidraw.standard.MiniDrawApplication
-
abstract factory to make services
- fAnchorX - Variable in class minidraw.standard.AbstractTool
-
- fAnchorY - Variable in class minidraw.standard.AbstractTool
-
- fChild - Variable in class minidraw.standard.SelectionTool
-
Sub tool to delegate to.
- fDisplayBox - Variable in class minidraw.standard.ImageFigure
-
- fDrawing - Variable in class minidraw.standard.MiniDrawApplication
-
the drawing that this application uses
- fFigures - Variable in class minidraw.standard.CompositeFigure
-
- Figure - Interface in minidraw.framework
-
This interface defines the role of a Figure in a MiniDraw drawing.
- figureChanged(FigureChangeEvent) - Method in interface minidraw.framework.FigureChangeListener
-
Sent when a figure changed
- figureChanged(FigureChangeEvent) - Method in class minidraw.standard.CompositeFigure
-
- figureChanged(FigureChangeEvent) - Method in class minidraw.standard.StandardDrawing
-
- FigureChangeEvent - Class in minidraw.framework
-
FigureChange event passed to FigureChangeListeners.
- FigureChangeEvent(Figure, Rectangle) - Constructor for class minidraw.framework.FigureChangeEvent
-
Constructs an event for the given source Figure.
- FigureChangeEvent(Figure) - Constructor for class minidraw.framework.FigureChangeEvent
-
Constructs an event for the given source Figure with an empty rectangle.
- FigureChangeListener - Interface in minidraw.framework
-
The Observer role, a listener interested in Figure changes.
- FigureFactory<LOCATION> - Interface in minidraw.boardgame
-
Abstract Factory for the figures to be used by the BoardDrawing.
- figureInvalidated(FigureChangeEvent) - Method in interface minidraw.framework.FigureChangeListener
-
Sent when an area is invalid
- figureInvalidated(FigureChangeEvent) - Method in class minidraw.standard.CompositeFigure
-
- figureInvalidated(FigureChangeEvent) - Method in class minidraw.standard.StandardDrawing
-
Invalidates a rectangle and merges it with the existing damaged area.
- figureMap - Variable in class minidraw.boardgame.BoardDrawing
-
"Map of list" collection, mapping each location to the set of images
positioned on it.
- figureRemoved(FigureChangeEvent) - Method in interface minidraw.framework.FigureChangeListener
-
Sent when a figure was removed
- figureRemoved(FigureChangeEvent) - Method in class minidraw.standard.CompositeFigure
-
- figureRequestRemove(FigureChangeEvent) - Method in interface minidraw.framework.FigureChangeListener
-
Sent when requesting to remove a figure.
- figureRequestRemove(FigureChangeEvent) - Method in class minidraw.standard.CompositeFigure
-
- figureRequestUpdate(FigureChangeEvent) - Method in interface minidraw.framework.FigureChangeListener
-
Sent when an update should happen.
- figureRequestUpdate(FigureChangeEvent) - Method in class minidraw.standard.CompositeFigure
-
- fImage - Variable in class minidraw.standard.ImageFigure
-
- fImageManager - Variable in class minidraw.standard.MiniDrawApplication
-
the image manager of an application
- findFigure(int, int) - Method in interface minidraw.framework.Drawing
-
Find and return the figure covering position (x,y).
- findFigure(int, int) - Method in class minidraw.standard.CompositeFigure
-
- fireDrawingInvalidated(Drawing, Rectangle) - Method in class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
-
Fire a 'drawingInvalidated' event
- fireDrawingRequestUpdate(Drawing) - Method in class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
-
Fire a 'drawingUpdate' event
- fLastClick - Variable in class minidraw.standard.StandardDrawingView
-
- fListeners - Variable in class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
-
list over all associated listeners
- fTool - Variable in class minidraw.standard.MiniDrawApplication
-
the tool being used by this editor
- fView - Variable in class minidraw.standard.MiniDrawApplication
-
the view that this application displays
- minidraw.boardgame - package minidraw.boardgame
-
This package contains an experimental extension to MiniDraw,
BoardGame, whose hotspots are especially geared towards
supporting board games.
- minidraw.framework - package minidraw.framework
-
This package contains the central interfaces and abstractions of the
MiniDraw framework.
- minidraw.standard - package minidraw.standard
-
This package contains standard implementation as well as abstract base
class implementations of a number of MiniDraw roles.
- minidraw.standard.handlers - package minidraw.standard.handlers
-
This package contains handlers: subordinate objects with specific
implementations to be used by elements in the standard package.
- MiniDrawApplication - Class in minidraw.standard
-
MiniDraw Application is a standard implementation of the DrawingEditor role.
- MiniDrawApplication(String, Factory) - Constructor for class minidraw.standard.MiniDrawApplication
-
Construct a minidraw editor that also acts as the JFrame application
window.
- mouseClicked(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
- mouseDown(MouseEvent, int, int) - Method in class minidraw.boardgame.BoardActionTool
-
- mouseDown(MouseEvent, int, int) - Method in interface minidraw.framework.Tool
-
Handles mouse down events in the drawing view.
- mouseDown(MouseEvent, int, int) - Method in class minidraw.standard.AbstractTool
-
- mouseDown(MouseEvent, int, int) - Method in class minidraw.standard.handlers.DragTracker
-
- mouseDown(MouseEvent, int, int) - Method in class minidraw.standard.handlers.SelectAreaTracker
-
- mouseDown(MouseEvent, int, int) - Method in class minidraw.standard.NullTool
-
- mouseDown(MouseEvent, int, int) - Method in class minidraw.standard.SelectionTool
-
Handles mouse down events and starts the corresponding tracker.
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.boardgame.BoardActionTool
-
- mouseDrag(MouseEvent, int, int) - Method in interface minidraw.framework.Tool
-
Handles mouse drag events in the drawing view (while mouse button is down).
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.standard.AbstractTool
-
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.standard.handlers.DragTracker
-
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.standard.handlers.SelectAreaTracker
-
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.standard.NullTool
-
- mouseDrag(MouseEvent, int, int) - Method in class minidraw.standard.SelectionTool
-
- mouseDragged(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
Handles mouse drag events.
- mouseEntered(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
- mouseExited(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
- mouseMove(MouseEvent, int, int) - Method in interface minidraw.framework.Tool
-
Handles mouse moves (while the mouse button is up).
- mouseMove(MouseEvent, int, int) - Method in class minidraw.standard.AbstractTool
-
- mouseMove(MouseEvent, int, int) - Method in class minidraw.standard.NullTool
-
- mouseMove(MouseEvent, int, int) - Method in class minidraw.standard.SelectionTool
-
- mouseMoved(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
Handles mouse move events.
- mousePressed(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
Handles mouse down events.
- mouseReleased(MouseEvent) - Method in class minidraw.standard.StandardDrawingView
-
Handles mouse up events.
- mouseUp(MouseEvent, int, int) - Method in class minidraw.boardgame.BoardActionTool
-
- mouseUp(MouseEvent, int, int) - Method in interface minidraw.framework.Tool
-
Handles mouse up in the drawing view.
- mouseUp(MouseEvent, int, int) - Method in class minidraw.standard.AbstractTool
-
- mouseUp(MouseEvent, int, int) - Method in class minidraw.standard.handlers.SelectAreaTracker
-
- mouseUp(MouseEvent, int, int) - Method in class minidraw.standard.NullTool
-
- mouseUp(MouseEvent, int, int) - Method in class minidraw.standard.SelectionTool
-
- moveBy(int, int) - Method in interface minidraw.framework.Figure
-
Move the figure by a delta (dx, dy) offset from its present position.
- moveBy(int, int) - Method in class minidraw.standard.AbstractFigure
-
- SelectAreaTracker - Class in minidraw.standard.handlers
-
SelectAreaTracker is a tool to select a set of figures using a rubberband.
- SelectAreaTracker(DrawingEditor) - Constructor for class minidraw.standard.handlers.SelectAreaTracker
-
- SelectAreaTracker(DrawingEditor, RubberBandSelectionStrategy) - Constructor for class minidraw.standard.handlers.SelectAreaTracker
-
define the selection area tracker.
- selectGroup(Drawing, Rectangle, boolean) - Method in interface minidraw.framework.RubberBandSelectionStrategy
-
Add figures in 'model' to the model's internal selection.
- selectGroup(Drawing, Rectangle, boolean) - Method in class minidraw.standard.handlers.StandardRubberBandSelectionStrategy
-
- selection() - Method in interface minidraw.framework.SelectionHandler
-
Get an iterator over all selected figures
- selection() - Method in class minidraw.standard.handlers.StandardSelectionHandler
-
Get an iterator over all selected figures
- selection() - Method in class minidraw.standard.StandardDrawing
-
Get a list of all selected figures
- SelectionHandler - Interface in minidraw.framework
-
The selection handler role defines the interface for the responsibility of
managing a drawing's multiple figure selection mechanism.
- selectionHandler - Variable in class minidraw.standard.StandardDrawing
-
list of all figures currently selected
- selectionList - Variable in class minidraw.standard.handlers.StandardSelectionHandler
-
list of all figures currently selected
- selectionStrategy - Variable in class minidraw.standard.SelectionTool
-
the rubber band selection strategy to use.
- SelectionTool - Class in minidraw.standard
-
Selection tool: Uses a internal state pattern to define what type of tool to
use in the current situation.
- SelectionTool(DrawingEditor) - Constructor for class minidraw.standard.SelectionTool
-
create the selection tool
- SelectionTool(DrawingEditor, RubberBandSelectionStrategy) - Constructor for class minidraw.standard.SelectionTool
-
define a selection tool where the SelectAreaTracker takes a special
RubberBandSelection strategy.
- set(Image, Point) - Method in class minidraw.standard.ImageFigure
-
Change the image and position of this image figure
- set(String, Point) - Method in class minidraw.standard.ImageFigure
-
Change the image (based on the string used in the image manager) and
position of this image figure.
- setFrameCloseOperation() - Method in class minidraw.standard.MiniDrawApplication
-
define how the MiniDraw application responds to the user clicking the
window close button.
- setFromCoordinates(int, int) - Method in interface minidraw.boardgame.Command
-
set the coordinates of the mouse down event; where the image is moved FROM.
- setFromCoordinates(int, int) - Method in class minidraw.boardgame.NullCommand
-
- setToCoordinates(int, int) - Method in interface minidraw.boardgame.Command
-
set the coordinates of the mouse up event; where the image is moved TO.
- setToCoordinates(int, int) - Method in class minidraw.boardgame.NullCommand
-
- setTool(Tool) - Method in interface minidraw.framework.DrawingEditor
-
set a new tool to use in this editor.
- setTool(Tool) - Method in class minidraw.standard.MiniDrawApplication
-
set a tool for this editor.
- showStatus(String) - Method in interface minidraw.framework.DrawingEditor
-
show a status message to the user
- showStatus(String) - Method in class minidraw.standard.MiniDrawApplication
-
- singleton - Static variable in class minidraw.standard.ImageManager
-
- StandardDrawing - Class in minidraw.standard
-
Standard implementation of the drawing role.
- StandardDrawing() - Constructor for class minidraw.standard.StandardDrawing
-
- StandardDrawingChangeListenerHandler - Class in minidraw.standard.handlers
-
The Subject role of the observer pattern for DrawingChangeListeners.
- StandardDrawingChangeListenerHandler() - Constructor for class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
-
- StandardDrawingView - Class in minidraw.standard
-
Standard implementation of the DrawingView role in MiniDraw, just giving an
empty view of the specificed size.
- StandardDrawingView(DrawingEditor) - Constructor for class minidraw.standard.StandardDrawingView
-
Create a drawing view associated with the given editor
- StandardDrawingView(DrawingEditor, Dimension) - Constructor for class minidraw.standard.StandardDrawingView
-
Create a drawing view of a given size.
- StandardRubberBandSelectionStrategy - Class in minidraw.standard.handlers
-
The standard RubberBandSelection strategy that simply selects all figures
within the rubber band rectangle.
- StandardRubberBandSelectionStrategy() - Constructor for class minidraw.standard.handlers.StandardRubberBandSelectionStrategy
-
- StandardSelectionHandler - Class in minidraw.standard.handlers
-
The standard selection handler contains default implementation of managing a
drawing's multiple figure selection mechanism.
- StandardSelectionHandler() - Constructor for class minidraw.standard.handlers.StandardSelectionHandler
-
- statusField - Variable in class minidraw.standard.MiniDrawApplication
-
the status field
- StdViewWithBackground - Class in minidraw.standard
-
A drawing view that paints the background with a fixed image
- StdViewWithBackground(DrawingEditor, String) - Constructor for class minidraw.standard.StdViewWithBackground
-
Create a DrawingView that features a graphical image as background for
figures.
- StdViewWithBackground(DrawingEditor, Image) - Constructor for class minidraw.standard.StdViewWithBackground
-
Create a DrawingView that features a graphical image as background for
figures.