Preferences
In this section, you will learn a group of preferences is available on diagram popup menu.
Right click the class/package diagram, it will popup a menu, select Preferences.There are seven functions are available
- Stereotype display
- Package indications
- Package name format
- Moldeling Assistants
- Wire automation
- Rulers & Grid
- Element views
1. Stereotype display
Stereotype preferences allows you to choose:
- on packages
- on classes
- on interfaces
- on enumerations
- on dependencies
For example, if you select on dependencies, it will shows stereotype on class/pakcage diagram
2. Package indications
Four ways of Package indications are available :
- No indication (only the class name is displayed)
- Prefix(UML format)
- Prefix(JAVA format)
- Subtitle of class name(Classes from a different package are subtitled with their package name)
3. Package name format
This feature allows you to display the name of package in short name or full name in your class/package diagram
For example, select Full name,it will show package name like this
While, select Short name, it will show package name like this
4. Modeling Assistants
This preference allow you to choose which modeling assistants appear on the diagram when you edit diagram, two options are available:
- Show Popup Toolbar
- Show Connection handles
5. Wire automation
This preference allow you to connect elements automatically when create a diagram or insert elements, three options are available:
- Association
- Inheritance
- Dependency
6. Rulers & Grid
Options are proposed to configure the diagram grid and ruler.
Five options are available:
- Grid Enabled
- Grid Visible
- Ruler visibility
- Snap Enabled
- Advanced...
Select Advanced to choose several options at one time
7. Element views
Three options are available:
- Attributes
- Methods
- Inner classes
7.1 Attributes
This preference allows you to choose which attributes will be visible in your class/package diagram
Multiple possibilities are provided :
- Public (The public attributes will be visible)
- Protected (The protected attributes will be visible)
- Private (The private attributes will be visible)
- Package (The package attributes will be visible. An attribute without visibility modifier has the package visibility)
- Static (The static attributes will be visible if their visibilities are visible)
- Apply property concept (The attributes and their accessors will be displayed as properties)
- Show association members (The attributes which are association ends will be displayed)
7.2 Methods
This preference allows you to choose which methods will be visible in your class/package diagram
Multiple possibilities are provided :
- Public (The public methods will be visible)
- Protected (The protected methods will be visible)
- Private (The private methods will be visible)
- Package (The package methods will be visible. An methods without visibility modifier has the package visibility)
- Static (The static methods will be visible if their visibilities are visible)
- Display parameter type (Parameter type is visible)
- Display parameter name (Parameter name is visible)
- Display parameter kind (Parameter kinds are visible)
- Display return type (Method return type is visible)
7.3 Inner classes
This preference allows you to choose which inner classes will be visible in your class/package diagram
Multiple possibilities are provided :
- Public (The public inner classes will be visible)
- Protected (The protected inner classes will be visible)
- Private (The private inner classes will be visible)
- Package (The package inner classes will be visible. An attribute without visibility modifier has the package visibility)
- Static (The static inner classes will be visible if their visibilities are visible)