Skip navigation links
A B C D E F G I K L M N O P R S T U V W 

A

AbstractFigure - Class in minidraw.standard
Abstract Figure: Base implementation of some Figure behaviour.
AbstractFigure() - Constructor for class minidraw.standard.AbstractFigure
Base construction of a figure
AbstractTool - Class in minidraw.standard
AbstractTool.
AbstractTool(DrawingEditor) - Constructor for class minidraw.standard.AbstractTool
Abstract base class for all tools.
activate() - Method in class minidraw.standard.NullTool
 
add(Figure) - Method in interface minidraw.framework.Drawing
Adds a figure and sets its container to refer to this drawing.
add(Figure) - Method in class minidraw.standard.CompositeFigure
 
addDrawingChangeListener(DrawingChangeListener) - Method in interface minidraw.framework.DrawingChangeListenerHandler
Adds a listener for this drawing.
addDrawingChangeListener(DrawingChangeListener) - Method in class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
Adds a listener for this drawing.
addDrawingChangeListener(DrawingChangeListener) - Method in class minidraw.standard.StandardDrawing
Adds a listener for this drawing.
addFigureChangeListener(FigureChangeListener) - Method in interface minidraw.framework.Figure
Adds a listener for this figure.
addFigureChangeListener(FigureChangeListener) - Method in class minidraw.standard.AbstractFigure
 
addToSelection(Figure) - Method in interface minidraw.framework.SelectionHandler
Adds a figure to the current selection.
addToSelection(Figure) - Method in class minidraw.standard.handlers.StandardSelectionHandler
Adds a figure to the current selection.
addToSelection(Figure) - Method in class minidraw.standard.StandardDrawing
Adds a figure to the current selection.
adjuster - Variable in class minidraw.boardgame.BoardDrawing
 
adjustFigurePosition(BoardFigure, LOCATION, int) - Method in class minidraw.boardgame.BoardDrawing
 

B

background - Variable in class minidraw.standard.StdViewWithBackground
 
basicDisplayBox(int, int) - Method in class minidraw.standard.StandardDrawing
should not be used by a drawing - the reason this method is defined is because of the opportunistic reuse opportunities of the CompositeFigure
basicMoveBy(int, int) - Method in class minidraw.standard.AbstractFigure
This is the hook method to be overridden when a figure moves.
basicMoveBy(int, int) - Method in class minidraw.standard.CompositeFigure
 
basicMoveBy(int, int) - Method in class minidraw.standard.ImageFigure
 
BoardActionTool - Class in minidraw.boardgame
A tool to handle user interaction on board game figures.
BoardActionTool(DrawingEditor) - Constructor for class minidraw.boardgame.BoardActionTool
Construct the tool.
BoardDrawing<LOCATION> - Class in minidraw.boardgame
An implementation of Drawing that is custom made to support storing figures that represent objects in board games and collaborate with factories and strategies to make board game graphics building and manipulation easy and make the graphics look appealing.
BoardDrawing(FigureFactory<LOCATION>, PositioningStrategy<LOCATION>, PropAppearanceStrategy) - Constructor for class minidraw.boardgame.BoardDrawing
Construct a Drawing specifically for handling figures associated with Board games.
BoardFigure - Class in minidraw.boardgame
A Figure specifically representing some object in a board game, like a checker, a die, a card, or some other actionable object like a button.
BoardFigure(String, Point, boolean, Command) - Constructor for class minidraw.boardgame.BoardFigure
 
BoardFigure(String, boolean, Command) - Constructor for class minidraw.boardgame.BoardFigure
 
BoardFigure() - Constructor for class minidraw.boardgame.BoardFigure
 
BoardFigure(Image, Point) - Constructor for class minidraw.boardgame.BoardFigure
 
BoardFigure(String, Point) - Constructor for class minidraw.boardgame.BoardFigure
 
BoardGameObserver<LOCATION> - Interface in minidraw.boardgame
This defines the Observer pattern's observer role that allows the BoardDrawing to observe a board game's game instance and react by redrawing figures.
buildPieceMap() - Method in class minidraw.boardgame.BoardDrawing
 
buildPropMap() - Method in class minidraw.boardgame.BoardDrawing
 

C

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.

D

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
 

E

editor - Variable in class minidraw.standard.AbstractTool
 
editor() - Method in class minidraw.standard.AbstractTool
 
editor() - Method in class minidraw.standard.StandardDrawingView
Return the associated editor
execute() - Method in interface minidraw.boardgame.Command
execute encapsulates the method call on the board game.
execute() - Method in class minidraw.boardgame.NullCommand
 

F

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

G

generatePieceMultiMap() - Method in interface minidraw.boardgame.FigureFactory
create a multimap of all the BoardFigures that represent pieces in the board game.
generatePropMap() - Method in interface minidraw.boardgame.FigureFactory
create a map of all the BoardFigures that represent props (immovable figures) on the board game.
getDrawing() - Method in class minidraw.framework.DrawingChangeEvent
Return the drawing that was changed
getFigure() - Method in class minidraw.framework.FigureChangeEvent
Gets the changed figure.
getGraphics() - Method in interface minidraw.framework.DrawingView
Get the graphics context of this view
getImage(String) - Method in class minidraw.standard.ImageManager
 
getInvalidatedRectangle() - Method in class minidraw.framework.DrawingChangeEvent
Gets the changed rectangle
getInvalidatedRectangle() - Method in class minidraw.framework.FigureChangeEvent
Gets the changed rectangle.
getMinimumSize() - Method in class minidraw.standard.StandardDrawingView
 
getMinimumSize() - Method in class minidraw.standard.StdViewWithBackground
 
getPreferredSize() - Method in class minidraw.standard.StandardDrawingView
 
getPreferredSize() - Method in class minidraw.standard.StdViewWithBackground
 
getSingleton() - Static method in class minidraw.standard.ImageManager
 
GroupFigure - Class in minidraw.standard
A Group figure is a fully operational figure containing other figures.
GroupFigure() - Constructor for class minidraw.standard.GroupFigure
 

I

ImageFigure - Class in minidraw.standard
ImageFigure is a figure showing a graphical image.
ImageFigure() - Constructor for class minidraw.standard.ImageFigure
Create a null image figure where the image and position is given later by the set method
ImageFigure(Image, Point) - Constructor for class minidraw.standard.ImageFigure
Create an image figure from a given image
ImageFigure(String, Point) - Constructor for class minidraw.standard.ImageFigure
 
ImageManager - Class in minidraw.standard
ImageManager is a singleton class that acts as a centralized database of all images to be used in a MiniDraw application.
ImageManager(Component) - Constructor for class minidraw.standard.ImageManager
 
invalidate() - Method in interface minidraw.framework.Figure
Invalidates the figure.
invalidate() - Method in class minidraw.standard.AbstractFigure
 
isMobile() - Method in class minidraw.boardgame.BoardFigure
return true if this figure can be moved by the BoardActionTool.
iterator() - Method in interface minidraw.framework.Drawing
Return an iterator over drawing's contents.
iterator() - Method in class minidraw.standard.CompositeFigure
NOTE: Iteration is not thread safe.

K

keyDown(KeyEvent, int) - Method in interface minidraw.framework.Tool
Handles key down events in the drawing view (KEY_PRESSED events).
keyDown(KeyEvent, int) - Method in class minidraw.standard.AbstractTool
 
keyDown(KeyEvent, int) - Method in class minidraw.standard.handlers.DragTracker
 
keyDown(KeyEvent, int) - Method in class minidraw.standard.NullTool
 
keyPressed(KeyEvent) - Method in class minidraw.standard.StandardDrawingView
 
keyReleased(KeyEvent) - Method in class minidraw.standard.StandardDrawingView
 
keyTyped(KeyEvent) - Method in class minidraw.standard.StandardDrawingView
 

L

listenerHandler - Variable in class minidraw.standard.StandardDrawing
use a StandardDrawingChangeListenerHandler to handle all observer pattern subject role behaviour
listenerList - Variable in class minidraw.standard.AbstractFigure
the listeners of this figure
lock() - Method in interface minidraw.framework.Drawing
Acquires a lock on the list of figures in this drawing.
lock() - Method in class minidraw.standard.StandardDrawing
 

M

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
 

N

NullCommand - Class in minidraw.boardgame
A null object implementation of Command.
NullCommand() - Constructor for class minidraw.boardgame.NullCommand
 
NullTool - Class in minidraw.standard
Null tool.
NullTool() - Constructor for class minidraw.standard.NullTool
 

O

open() - Method in interface minidraw.framework.DrawingEditor
open the editor.
open() - Method in class minidraw.standard.MiniDrawApplication
 

P

paint(Graphics) - Method in class minidraw.standard.StandardDrawingView
 
performAction(int, int, int, int) - Method in class minidraw.boardgame.BoardFigure
do not invoke yourself, it is invoked by the BoardActionTool once a BoardFigure has been moved or clicked.
pieceMovedEvent(LOCATION, LOCATION) - Method in class minidraw.boardgame.BoardDrawing
 
pieceMovedEvent(LOCATION, LOCATION) - Method in interface minidraw.boardgame.BoardGameObserver
the update method for pieces moved from location 'from' to location 'to'.
PositioningStrategy<LOCATION> - Interface in minidraw.boardgame
This role defines a strategy (strategy pattern) encapsulating the algorithms to calculate the proper graphical position (x,y) for a figure that is located on a given location on a board game.
PropAppearanceStrategy - Interface in minidraw.boardgame
This role defines a strategy (strategy pattern) encapsulating the algorithms to determine the appearance of a prop used in a board game.
propChangeEvent(String) - Method in class minidraw.boardgame.BoardDrawing
 
propChangeEvent(String) - Method in interface minidraw.boardgame.BoardGameObserver
the update method for props changed.
propChanger - Variable in class minidraw.boardgame.BoardDrawing
 
propMap - Variable in class minidraw.boardgame.BoardDrawing
Map collection, mapping graphical (x,y) positions to the props of the game.

R

remove(Figure) - Method in interface minidraw.framework.Drawing
Removes a figure.
remove(Figure) - Method in class minidraw.standard.CompositeFigure
 
removeDrawingChangeListener(DrawingChangeListener) - Method in interface minidraw.framework.DrawingChangeListenerHandler
Removes a listener from this drawing.
removeDrawingChangeListener(DrawingChangeListener) - Method in class minidraw.standard.handlers.StandardDrawingChangeListenerHandler
Removes a listener from this drawing.
removeDrawingChangeListener(DrawingChangeListener) - Method in class minidraw.standard.StandardDrawing
Removes a listener from this drawing.
removeFigureChangeListener(FigureChangeListener) - Method in interface minidraw.framework.Figure
Removes a listener for this figure.
removeFigureChangeListener(FigureChangeListener) - Method in class minidraw.standard.AbstractFigure
 
removeFromSelection(Figure) - Method in interface minidraw.framework.SelectionHandler
Removes a figure from the selection.
removeFromSelection(Figure) - Method in class minidraw.standard.handlers.StandardSelectionHandler
Removes a figure from the selection.
removeFromSelection(Figure) - Method in class minidraw.standard.StandardDrawing
Removes a figure from the selection.
requestUpdate() - Method in interface minidraw.framework.Drawing
Request update: force a "repaint" event to all associated listeners on this drawing
requestUpdate() - Method in class minidraw.standard.StandardDrawing
 
RubberBandSelectionStrategy - Interface in minidraw.framework
A strategy for selecting figures when using the SelectAreaTracker.
rubberBandSelectionStrategy - Variable in class minidraw.standard.handlers.SelectAreaTracker
 

S

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.

T

toggleSelection(Figure) - Method in interface minidraw.framework.SelectionHandler
If a figure isn't selected it is added to the selection.
toggleSelection(Figure) - Method in class minidraw.standard.handlers.StandardSelectionHandler
If a figure isn't selected it is added to the selection.
toggleSelection(Figure) - Method in class minidraw.standard.StandardDrawing
If a figure isn't selected it is added to the selection.
tool() - Method in interface minidraw.framework.DrawingEditor
return the tool presently set
Tool - Interface in minidraw.framework
Tool is the Controller role in the MVC pattern for MiniDraw.
tool() - Method in class minidraw.standard.MiniDrawApplication
 

U

unlock() - Method in interface minidraw.framework.Drawing
Releases the drawing lock.
unlock() - Method in class minidraw.standard.StandardDrawing
 

V

VERSION - Static variable in interface minidraw.framework.DrawingEditor
Version of Minidraw.
view() - Method in interface minidraw.framework.DrawingEditor
get the view associated with this editor
view() - Method in class minidraw.standard.MiniDrawApplication
 

W

willChange() - Method in class minidraw.standard.AbstractFigure
Informes that a figure is about to change something that affects the contents of its display box.
A B C D E F G I K L M N O P R S T U V W 
Skip navigation links

From the book: Flexible, Reliable Software, CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark