@Test public void testCreateInstance() { PeriodAxisLabelInfo info = new PeriodAxisLabelInfo(Day.class, new SimpleDateFormat("d")); Day d = (Day) info.createInstance(new Date(0L), TimeZone.getTimeZone("GMT"), Locale.UK); assertEquals(new Day(1, 1, 1970), d); }
public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale) { RegularTimePeriod result = null; try { Constructor<? extends RegularTimePeriod> c = this.periodClass.getDeclaredConstructor( new Class[] {Date.class, TimeZone.class, Locale.class}); result = c.newInstance(millisecond, zone, locale); } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoSuchMethodException e) { } catch (InstantiationException e) { } return result; }
PeriodAxisLabelInfo implements Serializable { public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale) { RegularTimePeriod result = null; try { Constructor<? extends RegularTimePeriod> c = this.periodClass.getDeclaredConstructor( new Class[] {Date.class, TimeZone.class, Locale.class}); result = c.newInstance(millisecond, zone, locale); } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoSuchMethodException e) { } catch (InstantiationException e) { } return result; } }
PeriodAxisLabelInfo implements Serializable { public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale) { RegularTimePeriod result = null; try { Constructor<? extends RegularTimePeriod> c = this.periodClass.getDeclaredConstructor( new Class[] {Date.class, TimeZone.class, Locale.class}); result = c.newInstance(millisecond, zone, locale); } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoSuchMethodException e) { } catch (InstantiationException e) { } return result; } PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat);  PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat, RectangleInsets padding, Font labelFont, 
            Paint labelPaint, boolean drawDividers, Stroke dividerStroke,
            Paint dividerPaint); }
PeriodAxisLabelInfo implements Serializable { public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale) { RegularTimePeriod result = null; try { Constructor<? extends RegularTimePeriod> c = this.periodClass.getDeclaredConstructor( new Class[] {Date.class, TimeZone.class, Locale.class}); result = c.newInstance(millisecond, zone, locale); } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoSuchMethodException e) { } catch (InstantiationException e) { } return result; } PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat);  PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat, RectangleInsets padding, Font labelFont, 
            Paint labelPaint, boolean drawDividers, Stroke dividerStroke,
            Paint dividerPaint); Class getPeriodClass(); DateFormat getDateFormat(); RectangleInsets getPadding(); Font getLabelFont(); Paint getLabelPaint(); boolean getDrawDividers(); Stroke getDividerStroke(); Paint getDividerPaint(); RegularTimePeriod createInstance(Date millisecond, TimeZone zone,
            Locale locale); @Override boolean equals(Object obj); @Override int hashCode(); }
PeriodAxisLabelInfo implements Serializable { public RegularTimePeriod createInstance(Date millisecond, TimeZone zone, Locale locale) { RegularTimePeriod result = null; try { Constructor<? extends RegularTimePeriod> c = this.periodClass.getDeclaredConstructor( new Class[] {Date.class, TimeZone.class, Locale.class}); result = c.newInstance(millisecond, zone, locale); } catch (InvocationTargetException e) { } catch (IllegalAccessException e) { } catch (NoSuchMethodException e) { } catch (InstantiationException e) { } return result; } PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat);  PeriodAxisLabelInfo(Class<? extends RegularTimePeriod> periodClass, 
            DateFormat dateFormat, RectangleInsets padding, Font labelFont, 
            Paint labelPaint, boolean drawDividers, Stroke dividerStroke,
            Paint dividerPaint); Class getPeriodClass(); DateFormat getDateFormat(); RectangleInsets getPadding(); Font getLabelFont(); Paint getLabelPaint(); boolean getDrawDividers(); Stroke getDividerStroke(); Paint getDividerPaint(); RegularTimePeriod createInstance(Date millisecond, TimeZone zone,
            Locale locale); @Override boolean equals(Object obj); @Override int hashCode(); static final RectangleInsets DEFAULT_INSETS; static final Font DEFAULT_FONT; static final Paint DEFAULT_LABEL_PAINT; static final Stroke DEFAULT_DIVIDER_STROKE; static final Paint DEFAULT_DIVIDER_PAINT; }