Search



Advanced

The Right Mouse Menus

Class

< Previous (Intro)

(Inheritance) Next >

Home / Using JVISION / The Right Mouse Menus / Class

When you right mouse click on a class, the following menu options appear:
 


This is the first level of menus that appear when you right mouse click on a class.  Menu items with a triangle next to it indicates submenus.

  • Custom Color:
    This option will let you change the color of the selected class in the Diagram Painter.
     
  • Switch to Code (Switch to Source):
    This option will switch the source file of the selected class from source file (.java) to class file (.class), or vice versa. In order to do this successfully, both .java and .class files for the class must have same name (usually class name) and must be in the same directory.  Otherwise, the class will become “invalid”, which changes the class with “?” mark and no sources will be available.   This option is not available for some classes.

     

Edit

  • Source...:
    This option will open the source code editor for the selected class.
     
  • Edit Stereotype:
    This option will let you add and/or modify stereotypes for the selected class. (see the Editing a Stereotype help pages for more detail)
     
  • Filter:
    This option will let you set the filter to specify which type of items to display or hide on the diagram.  This filter will be applied to the selected class.  (see the Filtering a Class help pages for more detail) 
     
  • Remove Filter:
    This option will remove the filter set for the selected class.  This option is enabled only if a filter is set.  (see the Filtering a Class help pages for more detail)
     
  • Properties:
    This option will let you set and view the properties of the class, such as file source and lists of attributes and services.  (see the Properties of a Class help pages for more detail)
     
  • Remove:
    This option will remove the selected class from the diagram.
     

View | Layers

Layers

  • Show/Hide Attributes:
    This option will let you choose if you want to show or hide attributes of the selected class.
     
  • Show/Hide Services:
    This option will let you choose if you want to show or hide services of the selected class.
     
  • Show/Hide Types:
    This option will let you choose if you want to show or hide attribute types of the selected class.
     

Add

  • Superclass:
    This option will let you add the selected class' superclass on the diagram.
     
  • Subclasses:
    This option will let you add subclasses of the selected class.  Even if this option is enabled, the class may not have any subclasses.
     
  • Interfaces:
    This option will let you add interfaces which the selected class implements.
     
  • Base Class:
    This option will let you add outer classes for the selected class.  This option is enabled only if the selected class is an inner class.
     
  • All Superclasses:
    This option will let you add superclasses of the selected class.  Not only will the superclasses of selected class be added, but also superclasses' of the superclasses will be added as well.
     
  • All Implementors:
    This option will let you add all implementors of the selected interface.
     
  • Related Classes:
    This option will let you add all related classes, including interfaces and superclasses/subclasses of the selected class. However, only one level above/below of interfaces and classes will be added.

     

Construct

  • Attribute:
    This option will let you construct a new attribute for the selected class.  (see the Constructing an Attribute help pages for more detail)
     
  • Association:
    This option will let you construct a new association for the selected class.  (see the Constructing an Association help pages for more detail)
     
  • Service:
    This option will let you construct new service for the selected class.  (see the Constructing a Service help pages for more detail)
     

Tools

  • Compile Source:
    This option will compile the source of the selected class, and create/recreate the ClassName.class file.  If there are any compile errors, the compile.log editor will appear automatically with a list of errors.
     
  • Run Applet:
    This option will run an applet for the selected class.  This option is enabled only if the class has the init() function.
     
  • Run Application:
    This option will run an application for the selected class.  This option is enabled only if the class has the main() function.