Esempio n. 1
0
  public EntityImageUseCase(ILeaf entity, ISkinParam skinParam) {
    super(entity, skinParam);
    final Stereotype stereotype = entity.getStereotype();

    final TextBlock tmp =
        new BodyEnhanced(
            entity.getDisplay(),
            FontParam.USECASE,
            skinParam,
            HorizontalAlignment.CENTER,
            stereotype,
            true,
            false);

    if (stereotype == null || stereotype.getLabel() == null) {
      this.desc = tmp;
    } else {
      final TextBlock stereo =
          TextBlockUtils.create(
              Display.getWithNewlines(stereotype.getLabel()),
              new FontConfiguration(
                  SkinParamUtils.getFont(getSkinParam(), FontParam.ACTOR_STEREOTYPE, stereotype),
                  SkinParamUtils.getFontColor(getSkinParam(), FontParam.ACTOR_STEREOTYPE, null),
                  getSkinParam().getHyperlinkColor()),
              HorizontalAlignment.CENTER,
              skinParam);
      this.desc = TextBlockUtils.mergeTB(stereo, tmp, HorizontalAlignment.CENTER);
    }
    this.url = entity.getUrl99();
  }
Esempio n. 2
0
 public EntityImageLollipopInterface(ILeaf entity, ISkinParam skinParam) {
   super(entity, skinParam);
   final Stereotype stereotype = entity.getStereotype();
   this.desc =
       entity
           .getDisplay()
           .create(
               new FontConfiguration(getSkinParam(), FontParam.CLASS, stereotype),
               HorizontalAlignment.CENTER,
               skinParam);
   this.url = entity.getUrl99();
 }
Esempio n. 3
0
  public EntityImageActivity(ILeaf entity, ISkinParam skinParam, Bibliotekon bibliotekon) {
    super(entity, skinParam);
    this.bibliotekon = bibliotekon;
    final Stereotype stereotype = entity.getStereotype();

    this.desc =
        entity
            .getDisplay()
            .create(
                new FontConfiguration(getSkinParam(), FontParam.ACTIVITY, stereotype),
                HorizontalAlignment.CENTER,
                skinParam);
    this.url = entity.getUrl99();
  }