|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jxcell.CommentShape
public class CommentShape
This class represents a comment object.
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Comment's author. |
short |
getCol()
Column of the commented cell. |
ShapePos |
getPosition()
get the shape position |
short |
getRow()
Row of the commented cell. |
java.lang.String |
getText()
Comment text. |
void |
setAuthor(java.lang.String author)
set author of the comment |
void |
setCol(short col)
set column of the commented cell. |
void |
seText(java.lang.String text)
set the text content of the comment |
void |
setFill(java.awt.Color color)
Sets the fill background's color for this shape. |
void |
setPosition(double x1,
double y1,
double x2,
double y2)
set the shape position |
void |
setRow(short row)
set row of the commented cell |
void |
setTextSelection(CellFormat cellFormat,
int start,
int end)
Sets text selection formatting |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public short getRow()
public void setRow(short row)
row
- row indexpublic short getCol()
public void setCol(short col)
col
- col indexpublic java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- comment authorpublic java.lang.String getText()
public void seText(java.lang.String text)
text
- comment content.public void setTextSelection(CellFormat cellFormat, int start, int end) throws java.lang.Exception
cellFormat
- cellformat object contain the font informationstart
- starting positon of selection.end
- ending positon of selection.
java.lang.Exception
- if the positions are invalidpublic void setPosition(double x1, double y1, double x2, double y2) throws java.lang.Exception
x1
- left positiony1
- top positionx2
- right positiony2
- bottom position
java.lang.Exception
- exceptionpublic ShapePos getPosition()
public void setFill(java.awt.Color color)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |