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

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.