Beispiel #1
0
 private TextBlock createMessageNumber(
     FontConfiguration fontConfiguration,
     HorizontalAlignment horizontalAlignment,
     ISkinSimple spriteContainer,
     double maxMessageSize) {
   TextBlock tb1 =
       subList(0, 1)
           .getCreole(
               fontConfiguration,
               horizontalAlignment,
               spriteContainer,
               maxMessageSize,
               CreoleMode.FULL);
   tb1 = TextBlockUtils.withMargin(tb1, 0, 4, 0, 0);
   final TextBlock tb2 =
       subList(1, size())
           .getCreole(
               fontConfiguration,
               horizontalAlignment,
               spriteContainer,
               maxMessageSize,
               CreoleMode.FULL);
   return TextBlockUtils.mergeLR(tb1, tb2, VerticalAlignment.CENTER);
 }
Beispiel #2
0
	private Row getMainRow() {
		final List<Task> tasks = project.getTasks();
		final List<Row> rows = new ArrayList<Row>();
		for (Task t : tasks) {
			final String text = t.getCode();
			final TextBlock label = Display.create(text).create(fontConfig, HorizontalAlignment.LEFT,
					new SpriteContainerEmpty());
			rows.add(new RowSimple((Day) t.getStart(), (Day) t.getEnd(), HtmlColorUtils.BLACK, TextBlockUtils
					.withMargin(label, 3, 3)));
		}
		final Row row = RowUtils.merge(rows);
		return row;
	}