|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.actuate.util.Debug
|
+--com.f1j.util.Debug
|
+--com.f1j.util.ObjConst
|
+--com.f1j.util.Obj
|
+--com.f1j.ss.GRObject
This class provides methods for defining and manipulating graphical objects in the worksheet.
| Field Summary | |
static short |
eArc
Deprecated. Specifies an arc object. |
static short |
eArrowFilled
Deprecated. Specifies filled arrow style. |
static short |
eArrowHollow
Deprecated. Specifies hollow arrow style. |
static short |
eArrowLarge
Deprecated. Specifies large arrow size. |
static short |
eArrowMedium
Deprecated. Specifies medium arrow size. |
static short |
eArrowNone
Deprecated. Specifies no arrow style. |
static short |
eArrowSmall
Deprecated. Specifies small arrow size. |
static short |
eButton
Deprecated. Specifies a button object. |
static short |
eCellNone
Deprecated. Specifies that the cell value is not changed when selection is made from the drop-down or list box. |
static short |
eCellText
Deprecated. Specifies that the cell value is set to the text of the selection in the drop-down or list box. |
static short |
eCellValue
Deprecated. Specifies that cell value is set to index of selection made from the drop-down list box. |
static short |
eChart
Deprecated. Specifies a chart object. |
static short |
eCheckBox
Deprecated. Specifies a check box object. |
static short |
eDropDown
Deprecated. Specifies a drop down list box object. |
static short |
eGroup
Deprecated. Specifies a group object. |
static short |
eLine
Deprecated. Specifies a line object. |
static short |
eListBox
Deprecated. Specifies a list box object. |
static short |
eOval
Deprecated. Specifies an oval object. |
static short |
ePicture
Deprecated. Specifies a picture object. |
static short |
ePolygon
Deprecated. Specifies a polygon object. |
static short |
eRadioButton
Deprecated. Specifies a radio button object. |
static short |
eRectangle
Deprecated. Specifies a rectangle object. |
static short |
eText
Deprecated. Specifies a text box object. |
| Method Summary | |
void |
addItem(java.lang.String item)
Deprecated. |
void |
addObject(GRObject obj)
Deprecated. |
boolean |
allowsMultipleSelections()
Deprecated. |
void |
copy(GRObject source)
Deprecated. |
void |
deleteItem(int item)
Deprecated. |
short |
getArrowLength()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getEndArrowheadLength(). |
short |
getArrowStyle()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getEndArrowheadStyle(). |
short |
getArrowWidth()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getEndArrowheadWidth(). |
java.lang.String |
getCell()
Deprecated. |
int |
getCellCol()
Deprecated. |
int |
getCellRow()
Deprecated. |
short |
getCellType()
Deprecated. |
int |
getFontBold()
Deprecated. Replaced by com.f1j.paint.FontFormat.isBold(). |
int |
getFontBold(int iStartPos,
int iEndPos)
Deprecated. |
int |
getFontColor()
Deprecated. Replaced by com.f1j.paint.FontFormat.getColor(). |
int |
getFontColor(int iStartPos,
int iEndPos)
Deprecated. |
int |
getFontItalic()
Deprecated. Replaced by com.f1j.paint.FontFormat.isItalic(). |
int |
getFontItalic(int iStartPos,
int iEndPos)
Deprecated. |
java.lang.String |
getFontName()
Deprecated. Replaced by com.f1j.paint.FontFormat.getName(). |
java.lang.String |
getFontName(int iStartPos,
int iEndPos)
Deprecated. |
int |
getFontSize()
Deprecated. Replaced by com.f1j.paint.FontFormat.getSizeTwips(). |
int |
getFontSize(int iStartPos,
int iEndPos)
Deprecated. |
int |
getFontUnderline()
Deprecated. Replaced by com.f1j.paint.FontFormat.getUnderline(). |
int |
getFontUnderline(int iStartPos,
int iEndPos)
Deprecated. |
static GRObject |
getGRObject(Shape sp)
Deprecated. |
int |
getHorizontalAlignment()
Deprecated. Replaced by com.f1j.paint.AlignFormat.getHorizontalAlignment(). |
int |
getID()
Deprecated. Replaced by com.f1j.drawing.Shape.getID(). |
byte[] |
getImage()
Deprecated. |
java.lang.String |
getImageFileName()
Deprecated. |
java.lang.String |
getImageURL()
Deprecated. |
java.lang.String |
getItem(int item)
Deprecated. |
int |
getItemCount()
Deprecated. |
java.lang.String |
getItems()
Deprecated. |
int |
getLineColor()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getForeColor(). |
short |
getLineStyle()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getDashStyle(). |
int |
getLineWeight()
Deprecated. Replaced by com.f1j.drawing.LineFormat.getWeight(). |
java.lang.String |
getName()
Deprecated. Replaced by com.f1j.drawing.Shape.getName(). |
GRObject |
getNextObject()
Deprecated. |
short |
getPattern()
Deprecated. Replaced by com.f1j.drawing.FillFormat.getPattern(). |
int |
getPatternBG()
Deprecated. Replaced by com.f1j.drawing.FillFormat.getBackColor(). |
int |
getPatternFG()
Deprecated. Replaced by com.f1j.drawing.FillFormat.getForeColor(). |
java.lang.String |
getPatternURL()
Deprecated. |
GRObjectPos |
getPos()
Deprecated. Replaced by com.f1j.drawing.Shape.getShapeAnchor(). |
int |
getSelectionCount()
Deprecated. |
int[] |
getSelections()
Deprecated. |
void |
getSelections(int[] iSels)
Deprecated. |
Shape |
getShape()
Deprecated. Returns the com.f1j.drawing.Shape associated with this GRObject. |
java.lang.String |
getText()
Deprecated. Replaced by com.f1j.drawing.Shape.getText(). |
short |
getType()
Deprecated. Replaced by com.f1j.drawing.Shape.getType() and com.f1j.drawing.Shape.getAutoShapeType(). |
int |
getValue()
Deprecated. |
int |
getVerticalAlignment()
Deprecated. Replaced by com.f1j.paint.AlignFormat.getVerticalAlignment(). |
void |
insertItem(int item,
java.lang.String itemStr)
Deprecated. |
boolean |
isAutoSize()
Deprecated. |
boolean |
isLineAuto()
Deprecated. |
boolean |
isSelectable()
Deprecated. Replaced by com.f1j.drawing.Shape.isAllowSelection(). |
static boolean |
isValidObjectType(short type)
Deprecated. |
boolean |
isVisible()
Deprecated. |
void |
removeAllObjects()
Deprecated. |
void |
setArrowLength(short length)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setEndArrowheadLength(com.f1j.drawing.LineFormat.EArrowheadLength). |
void |
setArrowStyle(short style)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setEndArrowheadStyle(com.f1j.drawing.LineFormat.EArrowheadStyle). |
void |
setArrowWidth(short width)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setEndArrowheadWidth(com.f1j.drawing.LineFormat.EArrowheadWidth). |
void |
setAutoSize(boolean b)
Deprecated. |
void |
setCell(short type,
int row,
int col)
Deprecated. |
void |
setCell(short type,
java.lang.String strCell)
Deprecated. |
void |
setCell(java.lang.String strCell)
Deprecated. |
void |
setCellCol(int col)
Deprecated. |
void |
setCellRow(int row)
Deprecated. |
void |
setCellType(short type)
Deprecated. |
void |
setFontBold(boolean bBold)
Deprecated. Replaced by com.f1j.paint.FontFormat.setBold(boolean). |
void |
setFontBold(boolean bBold,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setFontColor(int iRGB)
Deprecated. Replaced by com.f1j.paint.FontFormat.setColor(int). |
void |
setFontColor(int iRGB,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setFontItalic(boolean bItalic)
Deprecated. Replaced by com.f1j.paint.FontFormat.setItalic(boolean). |
void |
setFontItalic(boolean bItalic,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setFontName(java.lang.String strFontName)
Deprecated. Replaced by com.f1j.paint.FontFormat.setName(String). |
void |
setFontName(java.lang.String strFontName,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setFontSize(int iSize)
Deprecated. Replaced by com.f1j.paint.FontFormat.setSizeTwips(int). |
void |
setFontSize(int iSize,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setFontUnderline(boolean bUnderline)
Deprecated. Replaced by com.f1j.paint.FontFormat.setUnderline(com.f1j.paint.FontFormat.EUnderline). |
void |
setFontUnderline(boolean bUnderline,
int iStartPos,
int iEndPos)
Deprecated. |
void |
setHorizontalAlignment(int iAlign)
Deprecated. Replaced by com.f1j.paint.AlignFormat.setHorizontalAlignment(com.f1j.paint.AlignFormat.EHorizontal). |
void |
setImage(byte[] imageData)
Deprecated. |
void |
setImageFileName(java.lang.String strName)
Deprecated. |
void |
setImageURL(java.lang.String strURL)
Deprecated. |
void |
setItem(int item,
java.lang.String itemStr)
Deprecated. |
void |
setItems(java.lang.String items)
Deprecated. |
void |
setLineAuto(boolean bAuto)
Deprecated. |
void |
setLineColor(int iRGB)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setForeColor(int). |
void |
setLineStyle(short style)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setDashStyle(com.f1j.drawing.LineFormat.EDashStyle). |
void |
setLineWeight(int weight)
Deprecated. Replaced by com.f1j.drawing.LineFormat.setWeight(double). |
void |
setMultipleSelections(boolean b)
Deprecated. |
void |
setName(java.lang.String name)
Deprecated. Replaced by com.f1j.drawing.Shape.setName(String). |
void |
setPattern(short pattern)
Deprecated. Replaced by com.f1j.drawing.FillFormat.setPattern(com.f1j.paint.FillFormat.EPattern). |
void |
setPatternBG(int iRGB)
Deprecated. Replaced by com.f1j.drawing.FillFormat.setBackColor(int). |
void |
setPatternFG(int iRGB)
Deprecated. Replaced by com.f1j.drawing.FillFormat.setForeColor(int). |
void |
setPatternURL(java.lang.String strURL)
Deprecated. |
void |
setPoints(java.awt.Point[] points,
boolean closed)
Deprecated. |
void |
setPos(double x1,
double y1,
double x2,
double y2)
Deprecated. Replaced by com.f1j.ss.ShapeAnchor.setPosition(double, double, double, double). |
void |
setSelections(int[] iSels)
Deprecated. |
void |
setText(java.lang.String text)
Deprecated. Replaced by com.f1j.drawing.Shape.setText(String). |
void |
setValue(int value)
Deprecated. |
void |
setVerticalAlignment(int iAlign)
Deprecated. Replaced by com.f1j.paint.AlignFormat.setVerticalAlignment(com.f1j.paint.AlignFormat.EVertical). |
void |
setVisible(boolean visible)
Deprecated. |
| Field Detail |
public static final short eCellNone
public static final short eCellValue
public static final short eCellText
public static final short eLine
public static final short eRectangle
public static final short eOval
public static final short eArc
public static final short eChart
public static final short eText
public static final short eButton
public static final short ePicture
public static final short ePolygon
public static final short eDropDown
public static final short eCheckBox
public static final short eListBox
public static final short eGroup
public static final short eRadioButton
public static final short eArrowNone
public static final short eArrowHollow
public static final short eArrowFilled
public static final short eArrowSmall
public static final short eArrowMedium
public static final short eArrowLarge
| Method Detail |
public void addObject(GRObject obj)
throws F1Exception
The new object is added to the end of the list of groups in the object.
obj - reference to an object to be added to the groupremoveAllObjects()
public void copy(GRObject source)
throws F1Exception
source - the source GRObject.
Note that this method acquires a lock on both the source and
destination GRObject. This method should be used with caution
if the source and destination GRObjects are not in the same group.
public void removeAllObjects()
throws F1Exception
All objects in the group will be added to the sheet and the group object will be deleted.
addObject(GRObject obj)
public void setMultipleSelections(boolean b)
throws F1Exception
b - a boolean true for multiple selections,
false for single selection.allowsMultipleSelections(),
setSelections(int[] iSels),
getSelectionCount(),
getSelections()
public boolean allowsMultipleSelections()
throws F1Exception
true for multiple selection,
false for single selection.setMultipleSelections(boolean b)
public void setSelections(int[] iSels)
throws F1Exception
iSels - an int[] of indices. 0-based.setMultipleSelections(boolean b),
getSelectionCount(),
getSelections()
public int getSelectionCount()
throws F1Exception
int indicating # of items.setMultipleSelections(boolean b),
setSelections(int[] iSels),
getSelections()
public int[] getSelections()
throws F1Exception
int[] of indices. 0-based.setMultipleSelections(boolean b),
setSelections(int[] iSels),
getSelectionCount()
public void getSelections(int[] iSels)
throws F1Exception
iSels - an int[] of indices. 0-based.int[] param is invalidsetMultipleSelections(boolean b),
setSelections(int[] iSels),
getSelectionCount(),
getSelections()
public void addItem(java.lang.String item)
throws F1Exception
The new item is added to the end of the list of items in the object.
item - reference to a string to be added to the drop down or
list box objectinsertItem(int, String),
deleteItem(int)
public void deleteItem(int item)
throws F1Exception
item - Number of the item to delete.
Items in a list are numbered sequentially starting with 0.
addItem(String),
getValue()
public short getArrowLength()
throws F1Exception

setArrowLength(short)
public short getArrowStyle()
throws F1Exception
eArrowNone eArrowHollow eArrowFilled

setArrowStyle(short)
public short getArrowWidth()
throws F1Exception
eArrowSmall eArrowMedium eArrowLarge

setArrowWidth(short)
public java.lang.String getCell()
throws F1Exception
setCell(String)
public int getCellCol()
throws F1Exception
setCellCol(int)
public int getCellRow()
throws F1Exception
setCellRow(int)
public short getCellType()
throws F1Exception
setCellType(short)
public int getFontBold()
throws F1Exception
TextArea.getFontBold(int, int),
setFontBold(boolean),
setFontBold(boolean, int, int)
public int getFontBold(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).getFontBold(),
setFontBold(boolean),
setFontBold(boolean, int, int)
public int getFontColor()
throws F1Exception
TextArea.getFontColor(int, int),
setFontColor(int),
setFontColor(int, int, int)
public int getFontColor(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).getFontColor(),
setFontColor(int),
setFontColor(int, int, int)
public int getFontItalic()
throws F1Exception
TextArea.getFontItalic(int, int),
setFontItalic(boolean),
setFontItalic(boolean, int, int)
public int getFontItalic(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).getFontItalic(),
setFontItalic(boolean),
setFontItalic(boolean, int, int)
public java.lang.String getFontName()
throws F1Exception
TextArea.getFontName(int, int),
setFontName(String),
setFontName(String, int, int)
public java.lang.String getFontName(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).getFontName(int, int),
setFontName(String),
setFontName(String, int, int)
public int getFontSize()
throws F1Exception
TextArea.getFontSize(int, int),
setFontSize(int),
setFontSize(int, int, int)
public int getFontSize(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).getFontSize(),
setFontSize(int),
setFontSize(int, int, int)
public int getFontUnderline()
throws F1Exception
TextArea.getFontUnderline(int, int),
setFontUnderline(boolean),
setFontUnderline(boolean, int, int)
public int getFontUnderline(int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iStartPos - starting position in the text (0 based)iEndPos - ending position in the text (0 based)getFontUnderline(int, int),
setFontUnderline(boolean),
setFontUnderline(boolean, int, int)public static GRObject getGRObject(Shape sp)
sp - com.f1j.drawing.ShapeGRObject object.getShape()
public int getHorizontalAlignment()
throws F1Exception
TextArea.1 - left 2 - center 3 - right 4 - justify
setHorizontalAlignment(int)public int getID()
public byte[] getImage()
throws F1Exception
setImage(byte[])
public java.lang.String getImageFileName()
throws F1Exception
setImageFileName(String)
public java.lang.String getImageURL()
throws F1Exception
setImageURL(String)
public java.lang.String getItem(int item)
throws F1Exception
item - identifies the item in the list. Items are numbered
sequentially starting with 0.setItem(int,String)
public int getItemCount()
throws F1Exception
public java.lang.String getItems()
throws F1Exception
setItems(String)
public int getLineColor()
throws F1Exception
setLineColor(int)
public short getLineStyle()
throws F1Exception

setLineStyle(short)
public int getLineWeight()
throws F1Exception
setLineWeight(int)
public boolean isAutoSize()
throws F1Exception
true if autosizing is turn on, otherwise
false.setAutoSize(boolean b)
public boolean isLineAuto()
throws F1Exception
true if line is automatic otherwise false.setLineAuto(boolean)public boolean isSelectable()
true if object is selectable, otherwise false.public java.lang.String getName()
setName(String)public GRObject getNextObject()
GRObject the next object in the list.
public short getPattern()
throws F1Exception
setPattern(short)
public int getPatternBG()
throws F1Exception
setPatternBG(int)
public int getPatternFG()
throws F1Exception
setPatternFG(int)
public java.lang.String getPatternURL()
throws F1Exception
setPatternURL(String)public GRObjectPos getPos()
GRObjPos object.setPos(double, double, double, double)public Shape getShape()
com.f1j.drawing.Shape object.getGRObject(com.f1j.drawing.Shape sp)
public java.lang.String getText()
throws F1Exception
setText(String)public short getType()
eLine eRectangle eOval eArc eButton ePicture ePolygon eDropDown eCheckBox eListBox eGroup eRadioButton eText
public int getValue()
throws F1Exception
setValue(int)
public int getVerticalAlignment()
throws F1Exception
TextArea.1 - top 2 - center 3 - bottom 4 - Justify
setVerticalAlignment(int)
public void insertItem(int item,
java.lang.String itemStr)
throws F1Exception
item - Number of the item before which the new item is inserted.
Items are numbered sequentially starting with 0.
itemStr - Reference to the item to be inserted.addItem(String)public static boolean isValidObjectType(short type)
type - the type to check.true if type is a valid object type.public boolean isVisible()
true if an object is visible.true if object is visible, false otherwise.setVisible(boolean)
public void setArrowLength(short length)
throws F1Exception
length - the length of the arrow
getArrowLength()
public void setArrowStyle(short style)
throws F1Exception
style - number identifying one of the following arrow styles:eArrowNone eArrowHollow eArrowFilled

getArrowStyle()
public void setArrowWidth(short width)
throws F1Exception
width - one of the following arrow widths:eArrowSmall eArrowMedium eArrowLarge

getArrowWidth()
public void setAutoSize(boolean b)
throws F1Exception
b - true if automatic sizing is turned on otherwise
false.isAutoSize()
public void setCell(short type,
int row,
int col)
throws F1Exception
type - Sets the object cell flag. This flag controls what is
placed in the cell identified by row and column when a selection is made
from the check box, drop down or list box. Following are the valid flags:
eCell |
- cell value is not changed when selection is made from drop down or list box. |
eCellValue |
- cell value is set to index of selection in drop down or list box. |
eCellText |
- cell value is set to text of selection in dropdown |
row - Number of the row in which the object value is placed.col - Number of the column in which the object value is placed.
public void setCell(java.lang.String strCell)
throws F1Exception
setCellRange specifies the range of the linked cell.strCell - the range of the cell (can use defined names)getCell()
public void setCell(short type,
java.lang.String strCell)
throws F1Exception
type - Sets the object cell flag. This flag controls what is
placed in the cell identified by row and column when a selection is made
from the check box, drop down or list box. Following are the valid flags:
eCell |
- cell value is not changed when selection is made from drop down or list box. |
eCellValue |
- cell value is set to index of selection in drop down or list box. |
eCellText |
- cell value is set to text of selection in dropdown |
strCell - the range of the cell (can use defined names)getCell()
public void setCellCol(int col)
throws F1Exception
setCellCol specifies the column coordinate of the linked cell.col - the number of the cell column.getCellCol()
public void setCellRow(int row)
throws F1Exception
setCellRow specifies the row coordinate of the linked cell.row - the number of the cell rowgetCellRow()
public void setCellType(short type)
throws F1Exception
type - the cell behavior.
eNone Cell value is not changed when selection is made.
eCellValue Cell value is set to index of selection.
eCellText Cell value is set to text of selection.getCellType()
public void setFontBold(boolean bBold)
throws F1Exception
bBold - true if bold, otherwise false.setFontBold(boolean, int, int),
getFontBold(),
getFontBold(int, int)
public void setFontBold(boolean bBold,
int iStartPos,
int iEndPos)
throws F1Exception
bBold - true if bold, otherwise false.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).setFontBold(boolean),
getFontBold(),
getFontBold(int, int)
public void setFontColor(int iRGB)
throws F1Exception
TextArea.iRGB - font color.setFontColor(int, int, int),
getFontColor(),
getFontColor(int, int)
public void setFontColor(int iRGB,
int iStartPos,
int iEndPos)
throws F1Exception
TextArea.iRGB - font color.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).setFontColor(int, int, int),
getFontColor(),
getFontColor(int, int)
public void setFontItalic(boolean bItalic)
throws F1Exception
bItalic - true if italic otherwise false.setFontItalic(boolean, int, int),
getFontItalic(),
getFontItalic(int, int)
public void setFontItalic(boolean bItalic,
int iStartPos,
int iEndPos)
throws F1Exception
bItalic - true if italic otherwise false.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).setFontItalic(boolean),
getFontItalic(),
getFontItalic(int, int)
public void setFontName(java.lang.String strFontName)
throws F1Exception
strFontName - name of font.setFontName(String, int, int),
getFontName(),
getFontName(int, int)
public void setFontName(java.lang.String strFontName,
int iStartPos,
int iEndPos)
throws F1Exception
strFontName - name of font.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).setFontName(String),
getFontName(),
getFontName(int, int)
public void setFontSize(int iSize)
throws F1Exception
iSize - size of font.setFontSize(int, int, int),
getFontSize(),
getFontSize(int, int)
public void setFontSize(int iSize,
int iStartPos,
int iEndPos)
throws F1Exception
iSize - size of font.iStartPos - starting position in the text (0 based).iEndPos - ending position in the text (0 based).setFontSize(int),
getFontSize(),
getFontSize(int, int)
public void setFontUnderline(boolean bUnderline)
throws F1Exception
bUnderline - true if bold, otherwise false.