O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Look at an Example Class Diagram

The class diagram below is for the java.awt.Component class.

Container extends Component. Both Container and Component are abstract classes, meaning they have either declared or inherited abstract methods that they have not implemented. Component, on the other hand, implements the ImageObserver interface[2] and maintains an association with a ComponentPeer. Each Component has:

[2] We denote interfaces by adorning them with an “interface” label. There is currently no notation in the Booch method for depicting interfaces.

  • Four integer values, named x, y, width, and height

  • Three boolean values, named visible, enabled ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required