Ejemplo n.º 1
0
 /**
  * Diagram font name.
  *
  * <p>
  *
  * @return diagram font name.
  */
 public String getFontName() {
   if (fontName == null) {
     if (parent != null) {
       return parent.getFontName();
     } else {
       return "Dialog";
     }
   }
   return fontName;
 }
Ejemplo n.º 2
0
 /**
  * Diagram font size.
  *
  * <p>
  *
  * @return diagram font size.
  */
 public int getFontSize() {
   if (fontSize == null) {
     if (parent != null) {
       return parent.getFontSize();
     } else {
       return 10;
     }
   }
   return fontSize;
 }
Ejemplo n.º 3
0
 /** @return Returns the default stereotype view TODO: Enumeration here? */
 public StereotypeStyle getDefaultStereotypeView() {
   if (defaultStereotypeView == null) {
     if (parent != null) {
       return parent.getDefaultStereotypeView();
     } else {
       return StereotypeStyle.TEXTUAL;
     }
   }
   return defaultStereotypeView;
 }
Ejemplo n.º 4
0
 /** @return Returns the shadow width. */
 public int getDefaultShadowWidth() {
   if (defaultShadowWidth == null) {
     if (parent != null) {
       return parent.getDefaultShadowWidth();
     } else {
       return 0;
     }
   }
   return defaultShadowWidth;
 }
Ejemplo n.º 5
0
 /**
  * @return Returns <code>true</code> if we show the arrows when both association ends of an
  *     association are navigable.
  */
 public boolean isShowBidirectionalArrows() {
   if (showBidirectionalArrows == null) {
     if (parent != null) {
       return parent.isShowBidirectionalArrows();
     } else {
       return false;
     }
   }
   return showBidirectionalArrows;
 }
Ejemplo n.º 6
0
 /** @return Returns <code>true</code> if we show bold names. */
 public boolean isShowBoldNames() {
   if (showBoldNames == null) {
     if (parent != null) {
       return parent.isShowBoldNames();
     } else {
       return false;
     }
   }
   return showBoldNames;
 }
Ejemplo n.º 7
0
 /**
  * Construct a DiagramSettings object which inherits from the given parent settings (e.g. project
  * default diagram settings).
  *
  * @param parentSettings settings to inherit from if default values aren't overridden.
  */
 public DiagramSettings(DiagramSettings parentSettings) {
   super();
   parent = parentSettings;
   if (parentSettings == null) {
     notationSettings = new NotationSettings();
   } else {
     notationSettings = new NotationSettings(parent.getNotationSettings());
   }
   recomputeFonts();
 }
Ejemplo n.º 8
0
 /**
  * Returns the Bold-Italic diagram font which corresponds to selected parameters.
  *
  * @return bold-italic diagram font
  */
 public Font getFontBoldItalic() {
   if (fontBoldItalic == null) {
     return parent.getFontBoldItalic();
   }
   return fontBoldItalic;
 }
Ejemplo n.º 9
0
 /**
  * Returns the Bold diagram font which corresponds to selected parameters.
  *
  * @return bold diagram font
  */
 public Font getFontBold() {
   if (fontBold == null) {
     return parent.getFontBold();
   }
   return fontBold;
 }
Ejemplo n.º 10
0
 /**
  * Returns the Plain diagram font which corresponds to selected parameters.
  *
  * @return plain diagram font
  */
 public Font getFontPlain() {
   if (fontPlain == null) {
     return parent.getFontPlain();
   }
   return fontPlain;
 }