sears.search.core
Class PillManager

java.lang.Object
  extended by sears.search.core.PillManager
All Implemented Interfaces:
GPShapeManager

public class PillManager
extends java.lang.Object
implements GPShapeManager

the PillManager class provides a way to restrict the access to the Pill class.
The associated word "Manager" in the class name is not a reference to the "Manager" design pattern.
This class is more like a "Factory" ...


Constructor Summary
PillManager()
          Constructs a new PillManager object
 
Method Summary
 void firePillDataMustBeUpdated(java.lang.String text, SubtitleCellComponent cell, int index, java.awt.Point location)
          Update pill
 void paintPill(java.awt.Graphics2D gr)
          Paints a pill in the graphics context given in parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PillManager

public PillManager()
Constructs a new PillManager object

Method Detail

firePillDataMustBeUpdated

public void firePillDataMustBeUpdated(java.lang.String text,
                                      SubtitleCellComponent cell,
                                      int index,
                                      java.awt.Point location)
Update pill

Parameters:
text - a non null and non empty string
cell - a cell that represents the row where the occurrence of textis
index - the index of the first char of the text occurrence
location - the pill location

paintPill

public void paintPill(java.awt.Graphics2D gr)
Paints a pill in the graphics context given in parameters

Parameters:
gr - the graphics context