Пример #1
1
 public TextLayout add(Css css) {
   TextLayout newL = clone();
   for (P p : css.getProperties()) {
     newL.getProperties().add(p);
   }
   return newL;
 }
Пример #2
0
  @SuppressWarnings({"CloneDoesntDeclareCloneNotSupportedException", "CloneDoesntCallSuperClone"})
  public TextLayout clone() {
    TextLayout l = new TextLayout(topMargin, rightMargin, bottomMargin, leftMargin);
    l.setHeight(height);
    l.setWidth(width);
    l.setAlignH(alignH);
    l.setAlignV(alignV);

    for (P p : properties) {
      l.getProperties().add(p);
    }
    return l;
  }
Пример #3
0
 public TextLayout add(Name name, String value) {
   TextLayout newL = clone();
   newL.getProperties().add(new P(name, value));
   return newL;
 }
Пример #4
0
 public TextLayout add(P p) {
   TextLayout newL = clone();
   newL.getProperties().add(p);
   return newL;
 }