backend
Class PointLabelHelper

java.lang.Object
  extended by backend.PointLabelHelper

public class PointLabelHelper
extends java.lang.Object

PointLabelHelper was designed to return unique names for points that will be placed on the sphere It is a singleton because we only want one point namer per instance of the programming running this way we know their won't be any overlap.


Method Summary
 java.lang.String getNextLabel()
          getNextLabel will return the next label to label a point with it automatically sets itself up to give the next point
static PointLabelHelper instance()
          instance returns an initalized instance of PointLabelHelper
 void resetCounter()
          resetCounter will reset the number counter to the appropriate states
 void setMaxLabel(java.lang.String newLbl)
          This function should be used to make the PointLabelHelper start labeling at a new point It was primarily designed so that when a file is read in we can set the new place to start labeling
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static PointLabelHelper instance()
instance returns an initalized instance of PointLabelHelper

Returns:
The initalized instance of the PointLabelHelper

getNextLabel

public java.lang.String getNextLabel()
getNextLabel will return the next label to label a point with it automatically sets itself up to give the next point

Returns:
The next label for a point

resetCounter

public void resetCounter()
resetCounter will reset the number counter to the appropriate states


setMaxLabel

public void setMaxLabel(java.lang.String newLbl)
This function should be used to make the PointLabelHelper start labeling at a new point It was primarily designed so that when a file is read in we can set the new place to start labeling

Parameters:
newLbl - is the new place to label at