Skip to content

shawn-wh/uml-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unified Modeling Language (UML) Editor

A UML class diagram can be used to express the structure of a system by showing the relationship among objects. And a UML editor is a tool to make drawing a UML class diagram efficiently.

Table of Contents

Introduction

Demo Example A UML Editor is in the window which is composed of a Menu bar on the top, a list of Buttons on the left, and a Canvas on the rest of the window.

  • Buttons: six buttons from top to bottom is select, association line, generalization line, composition line, class object, and use case object
  • Menu bar: other features in the Edit menu included group objects, ungroup object and change the object’s name
  • Canvas: a place for drawing objects and lines
  • Other definition
    • basic object: class object or use case object
    • object: composite object or basic object
    • composite object: grouped objects
    • line: association line, generalization line, or composition line

Technologies

  • OpenJDK 15.0.2

Setup

# change directory to src 
$ cd src

# generate and store the compiled class files in directory output
$ javac gui/Main.java -d output

# change directory to output
$ cd output

# excecute
$ java gui/Main

Features

  • Create basic object mode
    • Create a UML basic object
      • click on a Basic object button
      • click on the canvas to create a basic object
  • Create line mode
    • Create a UML connection line
      • click on a Line button
      • press one basic object
      • drag continuously to another basic object and release
      • create a connection line from the first basic object to the second one
  • Select mode
    • Select a single object
      • click on Select button
      • click on a single object
    • Select a group of objects
      • click on Select button
      • press a point that contains no objects
      • drag continuously to another point and release
      • the selected area where contains specific objects
    • Unselect a single object or a group of objects
      • click on Select button
      • click on a place where contains no objects
    • Group objects into a composite object
      • click on Select button
      • select a group of objects
      • click on Group objects in the Edit menu
    • Ungroup a composite object back to objects
      • click on Select button
      • select a composite object
      • click on Ungroup objects in the Edit menu
    • Move object
      • click on Select button
      • press one object or a group of objects
      • drag continuously to another point and release on where the object you want object/objects to be
      • automatically remove all connection lines which connected with the object
    • Change object name
      • click on Select button
      • select a single basic object
      • click on the Change object name in the Edit menu
      • enter a new name for the basic object

Class Diagram

Class Diagram

About

Developed a UML class diagram editor by Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages