|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface DrawingEditor
An editor which is used by tools to draw themselfes and to let them add, remove and query figures.
| Nested Class Summary | |
|---|---|
static class |
DrawingEditor.InsertMode
Deprecated. |
| Method Summary | |
|---|---|
void |
addFigure(Figure figure)
Deprecated. since BEAM 4.6, use insertFigure(Figure, InsertMode) instead |
Figure[] |
getAllFigures()
Deprecated. Gets all figures. |
Figure |
getFigureAt(int index)
Deprecated. Gets the figure at the specified index. |
Figure[] |
getFiguresWithAttribute(String name)
Deprecated. Gets all figures having an attribute with the given name. |
Figure[] |
getFiguresWithAttribute(String name,
Object value)
Deprecated. Gets all figures having an attribute with the given name and value. |
int |
getNumFigures()
Deprecated. Returns the number of figures. |
Figure[] |
getSelectedFigures()
Deprecated. Gets all selected figures. |
AbstractTool |
getSelectTool()
Deprecated. |
Tool |
getTool()
Deprecated. |
void |
handleSelection(Rectangle rectangle)
Deprecated. Called if a selection occurred. |
void |
insertFigure(Figure figure,
DrawingEditor.InsertMode insertMode)
Deprecated. Adds a new figure to the drawing using the specified insertion mode. |
void |
removeFigure(Figure figure)
Deprecated. Removes a figure from the drawing. |
void |
repaint()
Deprecated. Repaints the drawing. |
void |
repaintTool()
Deprecated. Repaints the current tool (if any). |
void |
setTool(Tool tool)
Deprecated. |
| Method Detail |
|---|
Tool getTool()
void setTool(Tool tool)
tool - The current tool for this drawing.AbstractTool getSelectTool()
void handleSelection(Rectangle rectangle)
rectangle - The selection rectangle in view coordinates.void repaintTool()
void repaint()
@Deprecated void addFigure(Figure figure)
insertFigure(Figure, InsertMode) instead
figure - The figure to add to the this drawing.
void insertFigure(Figure figure,
DrawingEditor.InsertMode insertMode)
insertion mode.
figure - The figure to add to this drawing.insertMode - Specifies how to add the figure to this drawing.void removeFigure(Figure figure)
figure - The figure to remove from this drawing.int getNumFigures()
Figure getFigureAt(int index)
index - The index of the figure to retrieve.
nullFigure[] getAllFigures()
nullFigure[] getSelectedFigures()
nullFigure[] getFiguresWithAttribute(String name)
name - the attribute name
null
Figure[] getFiguresWithAttribute(String name,
Object value)
name - the attribute name, must not be nullvalue - the attribute value, must not be null
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||