jxl.biff
Class BaseCellFeatures

java.lang.Object
  extended byjxl.biff.BaseCellFeatures
Direct Known Subclasses:
CellFeatures

public class BaseCellFeatures
extends java.lang.Object

Container for any additional cell features


Field Summary
static Logger logger
          The logger
 
Constructor Summary
protected BaseCellFeatures()
          Constructor
  BaseCellFeatures(BaseCellFeatures cf)
          Copy constructor
 
Method Summary
protected  java.lang.String getComment()
          Accessor for the cell comment
 Comment getCommentDrawing()
          Accessor for the comment drawing
 double getCommentHeight()
          Accessor for the comment height
 double getCommentWidth()
          Accessor for the comment width
 void removeComment()
          Removes the cell comment, if present
 void setComment(java.lang.String s)
          Sets the cell comment
 void setComment(java.lang.String s, double width, double height)
          Sets the cell comment
 void setCommentDrawing(Comment c)
          Sets the comment drawing object
 void setReadComment(java.lang.String s, double w, double h)
          Internal method to set the cell comment.
 void setWritableCell(CellValue wc)
          Called by the cell when the features are added
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static Logger logger
The logger

Constructor Detail

BaseCellFeatures

protected BaseCellFeatures()
Constructor


BaseCellFeatures

public BaseCellFeatures(BaseCellFeatures cf)
Copy constructor

Method Detail

getComment

protected java.lang.String getComment()
Accessor for the cell comment


getCommentWidth

public double getCommentWidth()
Accessor for the comment width


getCommentHeight

public double getCommentHeight()
Accessor for the comment height


setWritableCell

public final void setWritableCell(CellValue wc)
Called by the cell when the features are added

Parameters:
wc - the writable cell

setReadComment

public void setReadComment(java.lang.String s,
                           double w,
                           double h)
Internal method to set the cell comment. Used when reading


setComment

public void setComment(java.lang.String s)
Sets the cell comment

Parameters:
s - the comment

setComment

public void setComment(java.lang.String s,
                       double width,
                       double height)
Sets the cell comment

Parameters:
s - the comment
height - the height of the comment box in cells
width - the width of the comment box in cells

removeComment

public void removeComment()
Removes the cell comment, if present


setCommentDrawing

public final void setCommentDrawing(Comment c)
Sets the comment drawing object


getCommentDrawing

public final Comment getCommentDrawing()
Accessor for the comment drawing