Example #1
0
 public TextBlock()
 {
   base.\u002Ector();
   TextBlock textBlock = this;
   this.lines = (List) new ArrayList();
   this.lineAlignment = HorizontalAlignment.__\u003C\u003ECENTER;
 }
 public ColumnArrangement(HorizontalAlignment hAlign, VerticalAlignment vAlign, double hGap, double vGap)
 {
   base.\u002Ector();
   ColumnArrangement columnArrangement = this;
   this.horizontalAlignment = hAlign;
   this.verticalAlignment = vAlign;
   this.horizontalGap = hGap;
   this.verticalGap = vGap;
 }
Example #3
0
 public ImageTitle(Image image, int height, int width, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(position, horizontalAlignment, verticalAlignment, padding)
 {
   ImageTitle imageTitle = this;
   if (image == null)
   {
     string str = "Null 'image' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else
   {
     this.image = image;
     this.setHeight((double) height);
     this.setWidth((double) width);
   }
 }
Example #4
0
 public DateTitle(int style, Locale locale, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(DateFormat.getDateInstance(style, locale).format(new Date()), font, paint, position, horizontalAlignment, verticalAlignment, padding)
 {
 }
Example #5
0
 public TextTitle(string text, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
   : base(position, horizontalAlignment, verticalAlignment, padding)
 {
   TextTitle textTitle = this;
   this.expandToFitSpace = false;
   this.maximumLinesToDisplay = int.MaxValue;
   if (text == null)
   {
     string str = "Null 'text' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else if (font == null)
   {
     string str = "Null 'font' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException(str);
   }
   else
   {
     this.text = text;
     this.font = font;
     this.paint = paint;
     this.textAlignment = horizontalAlignment;
     this.backgroundPaint = (Paint) null;
     this.content = (TextBlock) null;
     this.toolTipText = (string) null;
     this.urlText = (string) null;
   }
 }
Example #6
0
 public ImageTitle(Image image, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
   : this(image, image.getHeight((ImageObserver) null), image.getWidth((ImageObserver) null), position, horizontalAlignment, verticalAlignment, Title.__\u003C\u003EDEFAULT_PADDING)
 {
 }
Example #7
0
 protected internal Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
 {
   Title title = this;
   if (position == null)
   {
     string str = "Null 'position' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (horizontalAlignment == null)
   {
     string str = "Null 'horizontalAlignment' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (verticalAlignment == null)
   {
     string str = "Null 'verticalAlignment' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (padding == null)
   {
     string str = "Null 'spacer' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.visible = true;
     this.position = position;
     this.horizontalAlignment = horizontalAlignment;
     this.verticalAlignment = verticalAlignment;
     this.setPadding(padding);
     this.listenerList = new EventListenerList();
     this.notify = true;
   }
 }
Example #8
0
 protected internal Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
   : this(position, horizontalAlignment, verticalAlignment, Title.__\u003C\u003EDEFAULT_PADDING)
 {
 }