Пример #1
0
  /**
   * Initialize the diagram settings with application default values from the Configuration
   * retrieved from disk.
   */
  public void initFromConfiguration() {
    setShowBoldNames(Configuration.getBoolean(DiagramAppearance.KEY_SHOW_BOLD_NAMES));

    setShowBidirectionalArrows(
        !Configuration.getBoolean(DiagramAppearance.KEY_HIDE_BIDIRECTIONAL_ARROWS, true));

    setDefaultShadowWidth(Configuration.getInteger(DiagramAppearance.KEY_DEFAULT_SHADOW_WIDTH, 1));

    setDefaultStereotypeView(
        Configuration.getInteger(
            ProfileConfiguration.KEY_DEFAULT_STEREOTYPE_VIEW,
            DiagramAppearance.STEREOTYPE_VIEW_TEXTUAL));

    setFontName(DiagramAppearance.getInstance().getConfiguredFontName());
    setFontSize(Configuration.getInteger(DiagramAppearance.KEY_FONT_SIZE));
  }