Ejemplo n.º 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);
 }
Ejemplo n.º 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;
    }
  }
Ejemplo n.º 4
0
 protected final HtmlColor getFontColor(FontParam fontParam, Stereotype stereo) {
   final String s = stereo == null ? null : stereo.getLabel();
   return skinParam.getFontHtmlColor(fontParam, s);
 }
Ejemplo n.º 5
0
 protected final UFont getFont(FontParam fontParam, Stereotype stereo) {
   final String s = stereo == null ? null : stereo.getLabel();
   return skinParam.getFont(fontParam, s);
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 10
0
 public boolean useGuillemet() {
   return skinParam.useGuillemet();
 }
Ejemplo n.º 11
0
 public double getPadding() {
   return skinParam.getPadding();
 }
Ejemplo n.º 12
0
 public String getValue(String key) {
   return skinParam.getValue(key);
 }
Ejemplo n.º 13
0
 public Sprite getSprite(String name) {
   return skinParam.getSprite(name);
 }
Ejemplo n.º 14
0
 public boolean shadowing() {
   return skinParam.shadowing();
 }