public class Drawing
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Chart |
addChart()
Creates and adds a new chart to the drawing.
|
Chart |
addChart(int column,
int row)
Creates and adds a new chart to the drawing.
|
Picture |
addPicture()
Creates and adds a new picture to the drawing.
|
Picture |
addPicture(java.lang.String imagePath)
Creates and adds a new picture with the specified image to the drawing.
|
Picture |
addPicture(java.lang.String imagePath,
int column,
int row)
Creates and adds a new picture with the specified image to the drawing.
|
void |
bringForward(InteractiveObject obj)
Moves the specified object one step up in the z-order.
|
void |
bringToFront(InteractiveObject obj)
Brings the specified object to the top of the z-order.
|
void |
clear()
Removes all objects from the drawing.
|
java.lang.Iterable<Chart> |
getCharts()
Gets an iterable with all charts in the drawing.
|
java.lang.Iterable<Picture> |
getPictures()
Gets an iterable with all pictures in the drawing.
|
void |
remove(InteractiveObject obj)
Removes the specified object from the drawing.
|
void |
sendBackward(InteractiveObject obj)
Moves the specified object one step down in the z-order.
|
void |
sendToBack(InteractiveObject obj)
Sends the specified object to the bottom of the z-order.
|
public Picture addPicture()
Picture object representing the newly created picture.public Picture addPicture(java.lang.String imagePath)
imagePath - The full name of the file containing the image.Picture object representing the newly created picture.public Picture addPicture(java.lang.String imagePath, int column, int row)
imagePath - The full name of the file containing the image.column - The column where the picture will be positioned initially.row - The row where the picture will be positioned initially.Picture object representing the newly created picture.public Chart addChart()
Chart object representing the newly created chart.public Chart addChart(int column, int row)
column - The column where the chart will be positioned initially.row - The row where the chart will be positioned initially.Chart object representing the newly created chart.public void remove(InteractiveObject obj)
obj - The object to remove.public void clear()
public void bringToFront(InteractiveObject obj)
obj - The object to reorder.public void sendToBack(InteractiveObject obj)
obj - The object to reorder.public void bringForward(InteractiveObject obj)
obj - The object to reorder.public void sendBackward(InteractiveObject obj)
obj - The object to reorder.public java.lang.Iterable<Picture> getPictures()
Iterable object that can be used to iterate the pictures in the drawing.public java.lang.Iterable<Chart> getCharts()
Iterable object that can be used to iterate the charts in the drawing.