jdraw.drawing_options_ui
Class BrushPatternColorUI
java.lang.Object
|
+--mvp.View
|
+--jdraw.drawing_options_ui.BrushPatternColorUI
- All Implemented Interfaces:
- java.util.Observer
- public class BrushPatternColorUI
- extends mvp.View
Class BrushPatternColorUI is the companion view for the
BrushPatternColor model class. BrushPatternColorUI
constructs and composes the Brush, Pattern, FGColor, and
BGColor pulldown menus.
| Fields inherited from class mvp.View |
editable, model, screen, shown, widget, window |
| Methods inherited from class mvp.View |
compose, getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setModel, show, show, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
brushMenu
protected BrushMenu brushMenu
- Instance of the Brush Menu.
patternMenu
protected PatternMenu patternMenu
- Instance of the Pattern Menu.
bgColorMenu
protected BackgroundColorMenu bgColorMenu
- Instance of the Background Color Menu.
fgColorMenu
protected ForegroundColorMenu fgColorMenu
- Instance of the Foreground Color Menu.
BrushPatternColorUI
public BrushPatternColorUI(mvp.Screen screen,
BrushPatternColor bpc)
- Construct this with the given screen and companion
BrushPatternColor model. Create instances of the
four companion Menus: Brush, Pattern, Foreground Color,
and Background Color.
- Parameters:
screen - - The Screen object to be passed to the parent constructor.bpc - - The BrushPatternColor object to be passed to parent
constructor and subviews.
getBrushMenu
public BrushMenu getBrushMenu()
- Returns this.brushMenu.
- Returns:
- - The BrushMenu stored in this.brushMenu.
getPatternMenu
public PatternMenu getPatternMenu()
- Returns this.patternMenu.
- Returns:
- - The PatternMenu stored in this.patternMenu.
getForegroundColorMenu
public ForegroundColorMenu getForegroundColorMenu()
- Returns this.fgColorMenu.
- Returns:
- - The ForegroundColorMenu stored in this.fgColorMenu.
getBackgroundColorMenu
public BackgroundColorMenu getBackgroundColorMenu()
- Returns this.bgColorMenu.
- Returns:
- - The BackgroundColorMenu stored in this.bgColorMenu.