Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zest 2.0] Refactor Layouts example to Zest 2.0 API #571

Merged
merged 1 commit into from
Sep 28, 2024

Commits on Sep 27, 2024

  1. [Zest 2.0] Refactor Layouts example to Zest 2.0 API

    This adapts the SimpleNode, SimpleConnection and SimpleGraph classes of
    the example project to implement the NodeLayout, ConnectionLayout and
    LayoutContext interface, respectively, replacing the old Zest 1.0
    interfaces.
    
    Those classes are used by the SimpleSwingExample and SimpleSWTExample
    snippets to layout randomly generated graphs. Both examples have been
    updated to support the new layouts. Most noticeably, the nodes and
    connections are now exclusively stored in the layout context.
    
    Furthermore, those classes have been cleaned up, including:
    - Removal of empty stub methods in favor of using the adapter classes
    for listeners. Example: SelectionListener -> SelectionAdapter
    - Layout reacts to changes to the shell/frame size.
    - Typification of generic fields.
    - Internationalization of UI-specific strings.
    ptziegler committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    edd9fc9 View commit details
    Browse the repository at this point in the history