예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #4
0
 /** @return Returns the shadow width. */
 public int getDefaultShadowWidth() {
   if (defaultShadowWidth == null) {
     if (parent != null) {
       return parent.getDefaultShadowWidth();
     } else {
       return 0;
     }
   }
   return defaultShadowWidth;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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();
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }