Contenu connexe
Similaire à Design Patterns By Sisimon Soman (20)
Plus de Sisimon Soman (12)
Design Patterns By Sisimon Soman
- 11. Composite Pattern Example 2 Graphic Draw() Add(Graphic) Remove(Graphic) Table Draw() Add(Graphic) Remove(Graphic) Line Draw() 0..* Rect Draw()
- 22. Bridge(2) MacWindowImp DeviceDrawText() DeviceDrawRect() WindowsImp DeviceDrawText()=0; DeviceDrawRect()=0; XWindowsImp DeviceDrawText() DeviceDrawRect() Window DrawText() DrawRect() DialogBox DrawBorder() FrameWnd … .. Window::DrawRect() m_pWndImpl->DevDrawRect() MACWin->Line() MacWin->Line() MacWin->Line() MacWin->Line() XWin->Rect()