Magic Boxes in Dart programming language


0
1 share

Click the box tool to create a box (a concept in your domain), by clicking on an empty space in the board. You have to select the box to enter its name in the box field of the tool bar.

To move a non selected box, click the box and keep the mouse down while moving it. The connected lines will follow. A selected box cannot be moved.

Click the box to select it. Click again to deselect it. If there are several selected boxes (and/or lines), you may deselect them all by clicking on an empty space in the board. For the last selected box, its title (name) may be changed by entering text in the Box field of the tool bar.

For the last selected box, click in the Box field to obtain and change its name. The box may be declared as entry into the model. A new item may be added to the selected box by entering its name in the Item box, then clicking on the Add button. The item is an attribute of the box (concept). In addition, it may be declared as guid (globally unique identifier–not significant to a user), identifier (significant to a user) or required (mandatory value). The choice is presented in the pop-up list. An item may have an initial (default) value. An existing item may be selected by entering its name and clicking on the Get button. The selected item may be changed (Set button), including its sequence position within the box (Up or Down buttons), or even removed (Remove button). The size of selected boxes may be changed by menu items in the View menu.

If you want to create several boxes, double-click the box tool to stay on. To return to the select mode double-click the select tool.

Click the line tool to create a line between the last two clicked boxes, by clicking on an empty space in the board. The first box is a parent and the second box is a child. By default, the parent box has 0..N cardinalities. The min is 0 and the max is N. By default, the child box has 1..1 cardinalities. An example is Department–0..N—-1..1–Employee. A department has from 0 to N employees and an employee works for exactly one department.

The line is a relationship between two boxes (concepts). It has two directions: from parent to child (neighbor) and from child to parent (neighbor). The selected line may be transformed (and obtained in the tool bar) to inheritance line (child inherits from parent), to reflexive line (one-parent box, not two boxes) or to twin line (two lines between the same two boxes must be first created). The choice is presented in the pop-up list. By default, a new line is internal. The child box of the internal line usually is not an entry point into the model. The selected line may also be obtained by clicking on the Get button in the tool bar. The line cardinalities may be changed. For the 1..1 cardinalities, the identifier (id) may be checked on. The line changes may be set by clicking on the Set button.

Click the line, or very close to it, to select it. Click again to deselect it. A reflexive line is selected by clicking on a horizontal portion of the line. If two lines are created between the same two boxes, the last line may be selected by clicking on both lines. The selected line should be displayed in the tool bar by clicking on the Get button. Then, the twin choice will separate the two lines into twins. If there are several selected lines (and/or boxes), you may deselect them all by clicking on an empty space in the board.

If you want to create several lines, double-click the line tool to stay on. To return to the select mode double-click the select tool.

Transform a model, but only non-hidden boxes and lines, to JSONĀ  by clicking on the To JSON button above the JSON panel. Copy the JSON text from the JSON panel into a local text file to save the model. Later, paste the JSON text into the JSON panel and click on the From JSON button to obtain the model.

Transform a model to a PNG image by clicking on the To PNG button in front of the PNG panel. Copy the PNG image to a local text file.


Like it? Share with your friends!

0
1 share
Lauren

0 Comments

Your email address will not be published. Required fields are marked *

Solve : *
30 × 4 =


Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube, Vimeo or Vine Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format