public static NewInstance ( float currentPosition, float tabInterval ) : |
||
currentPosition | float | |
tabInterval | float | |
return |
public static TabStop getTabStopNewInstance(float currentPosition, TabSettings tabSettings) { if (tabSettings != null) { return(tabSettings.GetTabStopNewInstance(currentPosition)); } return(TabStop.NewInstance(currentPosition, DEFAULT_TAB_INTERVAL)); }
virtual public TabStop GetTabStopNewInstance(float currentPosition) { TabStop tabStop = null; if (tabStops != null) { foreach (TabStop currentTabStop in tabStops) { if (currentTabStop.Position - currentPosition > 0.001) { tabStop = new TabStop(currentTabStop); break; } } } if (tabStop == null) { tabStop = TabStop.NewInstance(currentPosition, tabInterval); } return(tabStop); }