示例#1
0
 private TextBlock createTextBloc() {
   final UFont font = skinParam.getFont(FontParam.PACKAGE, null);
   final HtmlColor textColor = skinParam.getFontHtmlColor(FontParam.PACKAGE, null);
   final TextBlock bloc =
       TextBlockUtils.create(
           name, new FontConfiguration(font, textColor), HorizontalAlignement.LEFT);
   return bloc;
 }
 protected final TextBlock getTextBlock(Display display) {
   if (Display.isNull(display)) {
     return null;
   }
   final ISkinParam skinParam = getSkinParam();
   final UFont font = skinParam.getFont(FontParam.ACTIVITY_ARROW, null, false);
   final HtmlColor color = rose.getFontColor(skinParam, FontParam.ACTIVITY_ARROW);
   final FontConfiguration fontConfiguration =
       new FontConfiguration(
           font, color, skinParam.getHyperlinkColor(), skinParam.useUnderlineForHyperlink());
   return display.create(
       fontConfiguration, HorizontalAlignment.LEFT, this, CreoleMode.SIMPLE_LINE);
 }
示例#3
0
  public EntityImageBlock(
      IEntity entity, Rose rose, ISkinParam param, Collection<Link> links, FontParam titleParam) {
    this.entity = entity;
    this.param = param;
    this.rose = rose;
    this.links = links;

    if (StringUtils.isNotEmpty(entity.getDisplay2())) {
      this.name =
          TextBlockUtils.create(
              entity.getDisplay2(),
              new FontConfiguration(param.getFont(titleParam, null), HtmlColor.BLACK),
              HorizontalAlignement.CENTER,
              param);
    } else {
      this.name = null;
    }
  }
示例#4
0
 protected final HtmlColor getFontColor(FontParam fontParam, Stereotype stereo) {
   final String s = stereo == null ? null : stereo.getLabel();
   return skinParam.getFontHtmlColor(fontParam, s);
 }
示例#5
0
 protected final UFont getFont(FontParam fontParam, Stereotype stereo) {
   final String s = stereo == null ? null : stereo.getLabel();
   return skinParam.getFont(fontParam, s);
 }
示例#6
0
 protected final UFont getFontOld(FontParam fontParam) {
   return skinParam.getFont(fontParam, null);
 }
 private final HtmlColor getFontColor(FontParam fontParam, Stereotype stereo) {
   final ISkinParam skinParam = diagram.getSkinParam();
   return skinParam.getFontHtmlColor(fontParam, stereo);
 }
 private final UFont getFont(FontParam fontParam) {
   final ISkinParam skinParam = diagram.getSkinParam();
   return skinParam.getFont(fontParam, null, false);
 }
 public String getMonospacedFamily() {
   return skinParam.getMonospacedFamily();
 }
 public boolean useGuillemet() {
   return skinParam.useGuillemet();
 }
 public double getPadding() {
   return skinParam.getPadding();
 }
 public String getValue(String key) {
   return skinParam.getValue(key);
 }
 public Sprite getSprite(String name) {
   return skinParam.getSprite(name);
 }
 public boolean shadowing() {
   return skinParam.shadowing();
 }