Skip to content

RedactorMVC v1.2.0

Choose a tag to compare

@DeniedAccessLife DeniedAccessLife released this 21 Nov 16:57
· 4 commits to main since this release
7d2bb94

Changelog:

  • Added State class to manage application state.
  • Removed previous Point class and Rectangle class.
  • Added support for selecting and moving existing shapes.
  • Shape creation is now handled by a ShapeFactory class.
  • Significantly improved code organization and readability.
  • Mouse listeners are now attached to the JPanel more effectively.
  • Created a FillBehavior enum to manage filled and unfilled shapes.
  • Introduced support for drawing lines, circles, ellipses, triangles, and rectangles.
  • Completely refactored the application to utilize a model-view-controller architecture.
  • The public API of the Controller and Model classes has been significantly altered.
  • Replaced the old Point class with a new Point class extending java.awt.geom.Point2D.
  • Shapes are now represented by MyShape classes, offering better encapsulation and extensibility.
  • Improved error handling throughout the codebase. Specifically, more robust handling of invalid user inputs.
  • Implemented a singleton pattern for the Controller class to ensure a single instance across the application.
  • Introduced the command pattern using ActionInterface to manage drawing and moving actions, improving code organization and maintainability.
  • Replaced the simpler UI with a menu-based interface providing options for selecting shapes, fill behaviors, colors, stroke widths and actions.