|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the common drawing API.
| Fields inherited from class com.f1j.drawing.AutoShapeTypes |
eShapeLine,
eShapeOval,
eShapeRectangle,
eShapeTextBox |
| Fields inherited from class com.f1j.drawing.ShapeTypes |
eAutoShape,
eFormControl,
eGroup,
ePicture |
| Method Summary | |
Shape |
addPicture(byte[] data,
ShapeAnchor shapeAnchor)
Adds a new picture to the drawing. |
Shape |
addPicture(java.io.InputStream input,
ShapeAnchor shapeAnchor)
Adds a new picture to the drawing. |
Shape |
addShape(EAutoShape eShape,
ShapeAnchor shapeAnchor)
Adds a new AutoShape to the drawing. |
void |
cancelDrawingMode()
Cancels any user drawing mode. |
boolean |
canEditCopy()
Returns whether an edit copy operation can be performed. |
boolean |
canEditCut()
Returns whether an edit cut operation can be performed. |
boolean |
canEditPaste()
Returns whether an edit paste operation can be performed. |
void |
clearSelection()
Clears the selection. |
void |
drawShape(EAutoShape eShape)
Initiates a drawing mode for the user to manually draw an AutoShape. |
void |
editCopy()
Copies the selected shapes or text from a text box. |
void |
editCut()
Cuts the selected shapes or text from a text box. |
void |
editPaste()
Pastes data from the clipboard. |
EAutoShape |
getDrawingModeShape()
If the current user drawing mode is eAutoShape, returns
the shape type. |
EShape |
getDrawingModeType()
Returns the type of the current user drawing mode. |
ShapeRange |
getSelectedShapes()
Returns the current selection. |
Shape |
groupShapes(ShapeRange shapes)
Groups shapes together into a grouped shape. |
boolean |
isAllowNewShapes()
Returns true if it is currently possible to add new shapes
to the drawing. |
boolean |
isDrawingMode()
Returns true if currently in a user drawing mode. |
boolean |
isSelectionMode()
Returns true if the drawing is in shape selection mode. |
Shape |
regroupShapes(ShapeRange shapeRange)
Regroups shapes together that had been previously ungrouped. |
void |
setSelection(Shape shape)
Sets the selection to a particular shape. |
void |
setSelection(ShapeRange shapes)
Sets the selection to a particular shape range. |
void |
setSelectionMode(boolean bSelectionMode)
Activates or deactivates shape selection mode. |
void |
ungroupShapes(ShapeRange shapeRange)
Ungroups shapes. |
| Methods inherited from interface com.f1j.drawing.Drawing |
findShape,
findShapes,
getAllShapes,
getShape,
getShapeCount |
| Method Detail |
public Shape addShape(EAutoShape eShape,
ShapeAnchor shapeAnchor)
throws AccessDeniedException,
F1Exception
eShape - An enumerated value defined in the
AutoShapeTypes interface.shapeAnchor - An interface to a client-defined object specifying
the position and size of the shape.
public Shape addPicture(byte[] data,
ShapeAnchor shapeAnchor)
throws AccessDeniedException,
F1Exception
data - Image datashapeAnchor - An interface to a client-defined object specifying
the position and size of the shape.
public Shape addPicture(java.io.InputStream input,
ShapeAnchor shapeAnchor)
throws AccessDeniedException,
F1Exception
input - Input stream containing image datashapeAnchor - An interface to a client-defined object specifying
the position and size of the shape.public void cancelDrawingMode()
drawShape(com.f1j.drawing.EAutoShape),
isDrawingMode()public boolean canEditCut()
public boolean canEditCopy()
public boolean canEditPaste()
public void clearSelection()
public void drawShape(EAutoShape eShape)
throws AccessDeniedException,
F1Exception
eShape - An enumerated value defined in the
AutoShapeTypes interface.cancelDrawingMode(),
isDrawingMode(),
getDrawingModeType(),
getDrawingModeShape()
public void editCut()
throws AccessDeniedException,
F1Exception
public void editCopy()
throws F1Exception
public void editPaste()
throws AccessDeniedException,
F1Exception
public Shape groupShapes(ShapeRange shapes)
throws AccessDeniedException,
F1Exception
shapes - The shapes to group.public boolean isAllowNewShapes()
true if it is currently possible to add new shapes
to the drawing.true if new shapes can be added to the drawing;
otherwise false.public boolean isDrawingMode()
true if currently in a user drawing mode.true if currently in a user drawing mode;
otherwise false.drawShape(com.f1j.drawing.EAutoShape),
getDrawingModeType(),
cancelDrawingMode()
public EAutoShape getDrawingModeShape()
throws F1Exception
eAutoShape, returns
the shape type.drawShape(com.f1j.drawing.EAutoShape),
isDrawingMode(),
getDrawingModeType(),
cancelDrawingMode()
public EShape getDrawingModeType()
throws F1Exception
drawShape(com.f1j.drawing.EAutoShape),
isDrawingMode(),
cancelDrawingMode()public ShapeRange getSelectedShapes()
public boolean isSelectionMode()
true if the drawing is in shape selection mode.
In shape selection mode, the selection of shapes takes precedence over
any mouse operations in the client application.true if in shape selection mode; otherwise
false.setSelectionMode(boolean)
public Shape regroupShapes(ShapeRange shapeRange)
throws AccessDeniedException,
F1Exception
shapeRange - The shapes to regroup.
public void setSelection(Shape shape)
throws AccessDeniedException,
F1Exception
shape - The shape to select.
public void setSelection(ShapeRange shapes)
throws AccessDeniedException,
F1Exception
shapes - The shapes to select.public void setSelectionMode(boolean bSelectionMode)
bSelectionMode - true to activate shape selection
mode; false to deactivate.isSelectionMode()
public void ungroupShapes(ShapeRange shapeRange)
throws AccessDeniedException,
F1Exception
shapeRange - The shapes to ungroup.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||