mirror of https://github.com/dspinellis/UMLGraph
complying with SettingDefinitions contract
This commit is contained in:
parent
0be56514c2
commit
7f785b94f8
|
|
@ -26,30 +26,30 @@ public class ClassDiagramOptions implements SettingDefinitions {
|
|||
/**
|
||||
* Produce fully-qualified class names.
|
||||
*/
|
||||
public static boolean classDiagramQualifiedNames;
|
||||
public static Boolean classDiagramQualifiedNames = false;
|
||||
|
||||
/**
|
||||
* When using qualified class names, put the package name in the line after the class name, in order to reduce the width of class nodes.
|
||||
*/
|
||||
public static boolean classDiagramPostfixQualifiedNames;
|
||||
public static Boolean classDiagramPostfixQualifiedNames = false;
|
||||
|
||||
/**
|
||||
* Try to automatically infer dependencies between classes by inspecting operation and attribute types. See the class diagram inference chapter for more details. Disabled by default.
|
||||
*/
|
||||
public static boolean classDiagramInferDependency;
|
||||
public static Boolean classDiagramInferDependency = false;
|
||||
|
||||
/**
|
||||
* Try to automatically infer association relationships between classes by inspecting attribute types. See the class diagram inference chapter for further details. Disabled by default.
|
||||
*/
|
||||
public static boolean classDiagramInferUsage;
|
||||
public static Boolean classDiagramInferUsage = false;
|
||||
|
||||
/**
|
||||
* The type of relationship inferred when -inferrel is activated. Defaults to "navassoc" (see the class modelling chapter for a list of relationship types).
|
||||
*/
|
||||
public static String classDiagramInferAssociationType;
|
||||
public static String classDiagramInferAssociationType = "navassoc";
|
||||
|
||||
/**
|
||||
* Specifies the lowest visibility level of elements used to infer dependencies among classes. Possible values are private, package, protected, public, in this order. The default value is private. Use higher levels to limit the number of inferred dependencies.
|
||||
*/
|
||||
public static String classDiagramInferDependencyVisibility;
|
||||
public static String classDiagramInferDependencyVisibility = "private";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,46 +27,46 @@ public class ClassOptions implements SettingDefinitions {
|
|||
/**
|
||||
* Specify the font name to use inside abstract class nodes (String).
|
||||
*/
|
||||
public static String classAbstractFontName;
|
||||
public static String classAbstractFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Specify the font name to use for the class names (String).
|
||||
*/
|
||||
public static String classNameFontName;
|
||||
public static String classNameFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Specify the font name use for the class name of abstract classes
|
||||
* (String).
|
||||
*/
|
||||
public static String classAbstractNameFontName;
|
||||
public static String classAbstractNameFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
/**
|
||||
* Specify the font size to use for the class names (int).
|
||||
*/
|
||||
public static int classNameFontSize;
|
||||
public static Integer classNameFontSize = DiagramOptions.DEFAULT_FONT_SIZE;
|
||||
|
||||
/**
|
||||
* Show class attributes (boolean).
|
||||
*/
|
||||
public static boolean classShowAttributes;
|
||||
public static Boolean classShowAttributes = false;
|
||||
/**
|
||||
* Show class operations (Java methods)
|
||||
*/
|
||||
public static boolean classShowOperations;
|
||||
public static Boolean classShowOperations = false;
|
||||
|
||||
/**
|
||||
* Adorn class elements according to their visibility (private, public, protected, package) (boolean).
|
||||
*/
|
||||
public static boolean classShowVisibility;
|
||||
public static Boolean classShowVisibility = false;
|
||||
|
||||
/**
|
||||
* Add type information to attributes and operations (boolean)
|
||||
*/
|
||||
public static boolean classFeatureTypes;
|
||||
public static Boolean classFeatureTypes = false;
|
||||
|
||||
/**
|
||||
* For enumerations, also show the values they can take. (boolean)
|
||||
*/
|
||||
public static boolean classShowEnumValues;
|
||||
public static Boolean classShowEnumValues = false;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,12 @@ import org.umlgraph.settings.SettingDefinitions;
|
|||
*/
|
||||
public class DiagramOptions implements SettingDefinitions {
|
||||
|
||||
/** The default font size. */
|
||||
public static final int DEFAULT_FONT_SIZE = 10;
|
||||
|
||||
/** The default font name. */
|
||||
public static final String DEFAULT_FONT_NAME = "Times";
|
||||
|
||||
/**
|
||||
* Layout the graph in the horizontal direction (boolean).
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ public class EdgeOptions implements SettingDefinitions {
|
|||
/**
|
||||
* Specify the font name to use for edge labels (String).
|
||||
*/
|
||||
public static String edgeFontName;
|
||||
public static String edgeFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
/**
|
||||
* Specify the font size to use for edge labels (int).
|
||||
*/
|
||||
public static int edgeFontSize;
|
||||
public static Integer edgeFontSize = DiagramOptions.DEFAULT_FONT_SIZE;
|
||||
/**
|
||||
* Specify the font color to use for edge labels (String).
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -32,21 +32,21 @@ public class NodeOptions implements SettingDefinitions {
|
|||
/**
|
||||
* Specify the font name to use inside nodes (String).
|
||||
*/
|
||||
public static String nodeFontName;
|
||||
public static String nodeFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Specify the font size to use inside nodes (int).
|
||||
*/
|
||||
public static int nodeFontSize;
|
||||
public static Integer nodeFontSize = DiagramOptions.DEFAULT_FONT_SIZE;
|
||||
|
||||
/**
|
||||
* Specify the font name to use for the tags (String).
|
||||
*/
|
||||
public static String nodeTagFontName;
|
||||
public static String nodeTagFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
/**
|
||||
* Specify the font size to use for the tags (int).
|
||||
*/
|
||||
public static int nodeTagFontSize;
|
||||
public static Integer nodeTagFontSize = DiagramOptions.DEFAULT_FONT_SIZE;
|
||||
|
||||
/**
|
||||
* Specify the font color to use inside nodes (String).
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ public class PackageOptions implements SettingDefinitions {
|
|||
* Specify the font name to use for the package names (used only when the
|
||||
* package name is postfixed, see -postfixpackage).
|
||||
*/
|
||||
public static String packageNameFontName;
|
||||
public static String packageNameFontName = DiagramOptions.DEFAULT_FONT_NAME;
|
||||
|
||||
/**
|
||||
* Specify the font size to use for the package names (used only when it
|
||||
* package name is postfixed, see -postfixpackage).
|
||||
*/
|
||||
public static int packageNameFontSize;
|
||||
public static Integer packageNameFontSize = DiagramOptions.DEFAULT_FONT_SIZE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue