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.


Field Summary
protected  BackgroundColorMenu bgColorMenu
          Instance of the Background Color Menu.
protected  BrushMenu brushMenu
          Instance of the Brush Menu.
protected  ForegroundColorMenu fgColorMenu
          Instance of the Foreground Color Menu.
protected  PatternMenu patternMenu
          Instance of the Pattern Menu.
 
Fields inherited from class mvp.View
editable, model, screen, shown, widget, window
 
Constructor Summary
BrushPatternColorUI(mvp.Screen screen, BrushPatternColor bpc)
          Construct this with the given screen and companion BrushPatternColor model.
 
Method Summary
 BackgroundColorMenu getBackgroundColorMenu()
          Returns this.bgColorMenu.
 BrushMenu getBrushMenu()
          Returns this.brushMenu.
 ForegroundColorMenu getForegroundColorMenu()
          Returns this.fgColorMenu.
 PatternMenu getPatternMenu()
          Returns this.patternMenu.
 
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
 

Field Detail

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.
Constructor Detail

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.
Method Detail

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.