#NEWLINE# def addTick( self , tickPosition , tickWidget = None , widthUpperBound = None , heightUpperBound = None ) : #NEWLINE# #INDENT# '*\n        *  Adds a widget-defined tick label at the specified\n        *  position, whose width and height are within\n        *  the specified upper-bounds.\n        *\n        * @param tickPosition the position, in model units, along\n        *   this axis at which the tick is displayed.\n        *   For example, if the axis range goes from 0 to 1,\n        *   a tick at position 0.5 would appear in the middle of\n        *   the axis.\n        *\n        *  @param tickWidget the label for this tick, as defined\n        *  by any GWT Widget.\n        *\n        *  @param widthUpperBound an upper bound on the width of\n        *  the widget, in pixels. If this and the next\n        *  parameter are omitted, GChart will use\n        *  <tt>DEFAULT_WIDGET_WIDTH_UPPERBOUND</tt>.\n        *\n        *  @param heightUpperBound an upper bound on the height of\n        *  the widget, in pixels. If this and the previous\n        *  parameter are omitted, GChart will use <tt>\n        *  DEFAULT_WIDGET_HEIGHT_UPPERBOUND</tt>\n        *\n        *  @see #addTick(double,Widget) addTick(double,Widget)\n        *  @see #addTick(double,String,int,int) addTick(double,String,int,int)\n        *  @see Curve.Point#setAnnotationWidget setAnnotationWidget\n        *  @see #DEFAULT_WIDGET_WIDTH_UPPERBOUND DEFAULT_WIDGET_WIDTH_UPPERBOUND\n        *  @see #DEFAULT_WIDGET_HEIGHT_UPPERBOUND DEFAULT_WIDGET_HEIGHT_UPPERBOUND\n        *' #NEWLINE# if ( tickWidget is None ) : #NEWLINE# #INDENT# tiickWidget = self . formatAsTickLabel ( tickPosition ) #NEWLINE# #UNINDENT# if isinstance ( tickWidget , basestring ) : #NEWLINE# #INDENT# if ( ( widthUpperBound is None ) and ( heightUpperBound is None ) ) : #NEWLINE# #INDENT# widthUpperBound = NAI #NEWLINE# heightUpperBound = NAI #NEWLINE# #UNINDENT# self . _addTickLabel ( tickPosition , tickWidget , widthUpperBound , heightUpperBound ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( ( widthUpperBound is None ) and ( heightUpperBound is None ) ) : #NEWLINE# #INDENT# widthUpperBound = DEFAULT_WIDGET_WIDTH_UPPERBOUND #NEWLINE# heightUpperBound = DEFAULT_WIDGET_HEIGHT_UPPERBOUND #NEWLINE# #UNINDENT# self . chartDecorationsChanged = True #NEWLINE# if ( NAI != self . tickCount ) : #NEWLINE# #INDENT# cTicks = self . getSystemCurve ( self . ticksId ) #NEWLINE# cTicks . clearPoints ( ) #NEWLINE# self . tickCount = NAI #NEWLINE# #UNINDENT# self . addTickAsPoint ( tickPosition , None , tickWidget , widthUpperBound , heightUpperBound )