|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Observable
|
+--mvp.Model
|
+--jdraw.drawing_options.BrushPatternColor
Class BrushPatternColor is the Model class for the drawing tool options: Brush, Pattern, FGColor, BGColor. ...
| Field Summary | |
protected BrushEditDialog |
brushEditDialog
A BrushEditDialog instance for user-created brushes. |
protected JDraw |
jdraw
A local reference to the top-level JDraw object. |
protected PaintEditDialog |
paintEditDialog
A PaintEditDialog instance for user-created paint patterns. |
| Fields inherited from class mvp.Model |
view |
| Constructor Summary | |
BrushPatternColor(mvp.View view,
JDraw jdraw)
Construct this with the given View object. |
|
| Method Summary | |
void |
redrawActiveCanvasWindow()
Calls the redrawPage method of the currently active CanvasWindow. |
void |
saveActiveWindowState()
Saves the state of the Active Canvas. |
void |
selectBackgroundColor(java.awt.Color color)
Set the background color given the parameter Color. |
void |
selectBrush(int brush)
Select the brush, given the passed in int value. |
void |
selectFillPattern(int fillPattern)
Select the fill pattern, given the parameter int value. |
void |
selectForegroundColor(java.awt.Color color)
Set the foreground color given the parameter Color. |
void |
setBrush(java.awt.BasicStroke bs,
int arrows)
Method setBrush sets the Brush and Arrows property within the system and for all selected graphics. |
void |
setFillPattern(java.util.Vector paint)
Method setFillPattern sets the Paint property within the system and for all selected graphics. |
| Methods inherited from class mvp.Model |
getView, setView |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected JDraw jdraw
protected BrushEditDialog brushEditDialog
protected PaintEditDialog paintEditDialog
| Constructor Detail |
public BrushPatternColor(mvp.View view,
JDraw jdraw)
view - - The View object to be passed to the parent constructor.| Method Detail |
public void selectBrush(int brush)
brush - - The int value to be used to determine the new BasicStroke.
public void setBrush(java.awt.BasicStroke bs,
int arrows)
bs - - The BasicStroke object to be used in setting Brush.arrows - - The int value to be used in setting arrows.public void selectFillPattern(int fillPattern)
fillPattern - - The int value to be used when calling methods.public void setFillPattern(java.util.Vector paint)
paint - - The Vector containing the necessary Paint information.public void selectForegroundColor(java.awt.Color color)
color - - The Color to be used as foreground color.public void selectBackgroundColor(java.awt.Color color)
color - - The Color to be used as background color.public void redrawActiveCanvasWindow()
public void saveActiveWindowState()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||