コード例 #1
0
 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;
 }
コード例 #2
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);
   }
 }
コード例 #3
0
ファイル: DateTitle.cs プロジェクト: NALSS/SmartDashboard.NET
 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)
 {
 }
コード例 #4
0
ファイル: TextTitle.cs プロジェクト: NALSS/SmartDashboard.NET
 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;
   }
 }
コード例 #5
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)
 {
 }
コード例 #6
0
ファイル: Title.cs プロジェクト: NALSS/SmartDashboard.NET
 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;
   }
 }
コード例 #7
0
ファイル: Title.cs プロジェクト: NALSS/SmartDashboard.NET
 protected internal Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
   : this(position, horizontalAlignment, verticalAlignment, Title.__\u003C\u003EDEFAULT_PADDING)
 {
 }