Inheritance: java.text.Format
コード例 #1
0
 public DateTickUnit(DateTickUnitType unitType, int multiple, DateTickUnitType rollUnitType, int rollMultiple, DateFormat formatter)
   : base((double) DateTickUnit.getMillisecondCount(unitType, multiple))
 {
   DateTickUnit dateTickUnit = this;
   if (formatter == null)
   {
     string str = "Null 'formatter' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (multiple <= 0)
   {
     string str = "Requires 'multiple' > 0.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (rollMultiple <= 0)
   {
     string str = "Requires 'rollMultiple' > 0.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.unitType = unitType;
     this.count = multiple;
     this.rollUnitType = rollUnitType;
     this.rollCount = rollMultiple;
     this.formatter = formatter;
     this.unit = DateTickUnit.unitTypeToInt(unitType);
     this.rollUnit = DateTickUnit.unitTypeToInt(rollUnitType);
   }
 }
コード例 #2
0
 protected internal AbstractCategoryItemLabelGenerator(string labelFormat, DateFormat formatter)
 {
   base.\u002Ector();
   AbstractCategoryItemLabelGenerator itemLabelGenerator = this;
   if (labelFormat == null)
   {
     string str = "Null 'labelFormat' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (formatter == null)
   {
     string str = "Null 'formatter' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.labelFormat = labelFormat;
     this.numberFormat = (NumberFormat) null;
     this.percentFormat = NumberFormat.getPercentInstance();
     this.dateFormat = formatter;
     this.nullValueString = "-";
   }
 }
コード例 #3
0
ファイル: Day.cs プロジェクト: NALSS/SmartDashboard.NET
 static Day()
 {
   RegularTimePeriod.__\u003Cclinit\u003E();
   Day.__\u003C\u003EDATE_FORMAT = (DateFormat) new SimpleDateFormat("yyyy-MM-dd");
   Day.__\u003C\u003EDATE_FORMAT_SHORT = DateFormat.getDateInstance(3);
   Day.__\u003C\u003EDATE_FORMAT_MEDIUM = DateFormat.getDateInstance(2);
   Day.__\u003C\u003EDATE_FORMAT_LONG = DateFormat.getDateInstance(1);
 }
コード例 #4
0
 public TimeSeriesURLGenerator()
 {
   base.\u002Ector();
   TimeSeriesURLGenerator seriesUrlGenerator = this;
   this.dateFormat = DateFormat.getInstance();
   this.prefix = "index.html";
   this.seriesParameterName = "series";
   this.itemParameterName = "item";
 }
コード例 #5
0
 public TimeSeriesURLGenerator(DateFormat dateFormat, string prefix, string seriesParameterName, string itemParameterName)
 {
   base.\u002Ector();
   TimeSeriesURLGenerator seriesUrlGenerator = this;
   this.dateFormat = DateFormat.getInstance();
   this.prefix = "index.html";
   this.seriesParameterName = "series";
   this.itemParameterName = "item";
   if (dateFormat == null)
   {
     string str = "Null 'dateFormat' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (prefix == null)
   {
     string str = "Null 'prefix' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (seriesParameterName == null)
   {
     string str = "Null 'seriesParameterName' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (itemParameterName == null)
   {
     string str = "Null 'itemParameterName' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.dateFormat = (DateFormat) dateFormat.clone();
     this.prefix = prefix;
     this.seriesParameterName = seriesParameterName;
     this.itemParameterName = itemParameterName;
   }
 }
コード例 #6
0
 public HighLowItemLabelGenerator(DateFormat dateFormatter, NumberFormat numberFormatter)
 {
   base.\u002Ector();
   HighLowItemLabelGenerator itemLabelGenerator = this;
   if (dateFormatter == null)
   {
     string str = "Null 'dateFormatter' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (numberFormatter == null)
   {
     string str = "Null 'numberFormatter' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.dateFormatter = dateFormatter;
     this.numberFormatter = numberFormatter;
   }
 }
コード例 #7
0
 public StandardXYToolTipGenerator(string formatString, DateFormat xFormat, DateFormat yFormat)
   : base(formatString, xFormat, yFormat)
 {
 }
コード例 #8
0
 protected internal AbstractXYItemLabelGenerator(string formatString, DateFormat xFormat, DateFormat yFormat)
   : this(formatString, NumberFormat.getInstance(), NumberFormat.getInstance())
 {
   AbstractXYItemLabelGenerator itemLabelGenerator = this;
   this.xDateFormat = xFormat;
   this.yDateFormat = yFormat;
 }
コード例 #9
0
 public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat)
   : this(periodClass, dateFormat, PeriodAxisLabelInfo.__\u003C\u003EDEFAULT_INSETS, PeriodAxisLabelInfo.__\u003C\u003EDEFAULT_FONT, PeriodAxisLabelInfo.__\u003C\u003EDEFAULT_LABEL_PAINT, true, PeriodAxisLabelInfo.__\u003C\u003EDEFAULT_DIVIDER_STROKE, PeriodAxisLabelInfo.__\u003C\u003EDEFAULT_DIVIDER_PAINT)
 {
 }
コード例 #10
0
 public StandardXYItemLabelGenerator(string formatString, DateFormat xFormat, DateFormat yFormat)
   : base(formatString, xFormat, yFormat)
 {
 }
コード例 #11
0
 public DateTickUnit(DateTickUnitType unitType, int multiple, DateFormat formatter)
   : this(unitType, multiple, unitType, multiple, formatter)
 {
 }
コード例 #12
0
 public DateTickUnit(int unit, int count, DateFormat formatter)
   : this(unit, count, unit, count, formatter)
 {
 }
コード例 #13
0
 public StandardCategoryToolTipGenerator(string labelFormat, DateFormat formatter)
   : base(labelFormat, formatter)
 {
 }
コード例 #14
0
 public IntervalXYItemLabelGenerator(string formatString, DateFormat xFormat, DateFormat yFormat)
   : base(formatString, xFormat, yFormat)
 {
 }
コード例 #15
0
 public DateTickUnit(int unit, int count, int rollUnit, int rollCount, DateFormat formatter)
   : this(DateTickUnit.intToUnitType(unit), count, DateTickUnit.intToUnitType(rollUnit), rollCount, DateTickUnit.notNull(formatter))
 {
 }
コード例 #16
0
 public BoxAndWhiskerXYToolTipGenerator(string toolTipFormat, DateFormat dateFormat, NumberFormat numberFormat)
   : base(toolTipFormat, dateFormat, numberFormat)
 {
 }
コード例 #17
0
 public IntervalCategoryItemLabelGenerator(string labelFormat, DateFormat formatter)
   : base(labelFormat, formatter)
 {
 }
コード例 #18
0
 public MonthDateFormat(TimeZone zone, Locale locale, int chars, bool[] showYear, DateFormat yearFormatter)
 {
   base.\u002Ector();
   MonthDateFormat monthDateFormat = this;
   if (locale == null)
   {
     string str = "Null 'locale' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     string[] months = new DateFormatSymbols(locale).getMonths();
     this.months = new string[12];
     for (int index = 0; index < 12; ++index)
       this.months[index] = chars <= 0 ? months[index] : String.instancehelper_substring(months[index], 0, Math.min(chars, String.instancehelper_length(months[index])));
     this.calendar = (__Null) new GregorianCalendar(zone);
     this.showYear = showYear;
     this.yearFormatter = yearFormatter;
     this.numberFormat = (__Null) NumberFormat.getNumberInstance();
   }
 }
コード例 #19
0
 public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat, RectangleInsets padding, Font labelFont, Paint labelPaint, bool drawDividers, Stroke dividerStroke, Paint dividerPaint)
 {
   int num = drawDividers ? 1 : 0;
   base.\u002Ector();
   PeriodAxisLabelInfo periodAxisLabelInfo = this;
   if (periodClass == null)
   {
     string str = "Null 'periodClass' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dateFormat == null)
   {
     string str = "Null 'dateFormat' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (padding == null)
   {
     string str = "Null 'padding' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelFont == null)
   {
     string str = "Null 'labelFont' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelPaint == null)
   {
     string str = "Null 'labelPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dividerStroke == null)
   {
     string str = "Null 'dividerStroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (dividerPaint == null)
   {
     string str = "Null 'dividerPaint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.periodClass = periodClass;
     this.dateFormat = dateFormat;
     this.padding = padding;
     this.labelFont = labelFont;
     this.labelPaint = labelPaint;
     this.drawDividers = num != 0;
     this.dividerStroke = dividerStroke;
     this.dividerPaint = dividerPaint;
   }
 }