|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dbarnes.sgme.Item
com.dbarnes.sgme.Widget
public class Widget
Represents a widget in a project. A widget is any application-specific entity which can exist on a map, in addition to the tile map. Widgets are placed on the map via associative MapWidget objects.
MapWidget| Constructor Summary | |
|---|---|
Widget(Project project)
Creates a new Widget object. |
|
| Method Summary | |
|---|---|
java.awt.Image |
getImage()
Returns the image which represents this Widget in the graphical user interface. |
java.io.File |
getImageFile()
Returns the File object representing the image for this widget. |
java.lang.String |
getImageFilePath()
Returns the path to the image file for this widget, or null if none has been set. |
protected Project |
getProject()
Returns the project to which this widget belongs. |
void |
setImage(java.awt.Image icon)
Sets the image which represents this Widget in the graphical user interface. |
void |
setImageFile(java.io.File imageFile)
Sets the File object representing the image for this widget, and loads the image from the specified file. |
protected void |
setProject(Project project)
Sets the project to which this widget belongs. |
| Methods inherited from class com.dbarnes.sgme.Item |
|---|
clearAttributes, getAttribute, getAttributeNames, getId, getName, setAttribute, setId, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Widget(Project project)
project - The Project to which this Widget belongs.| Method Detail |
|---|
public java.awt.Image getImage()
getImage in class Itempublic void setImage(java.awt.Image icon)
public java.io.File getImageFile()
public void setImageFile(java.io.File imageFile)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic java.lang.String getImageFilePath()
protected Project getProject()
protected void setProject(Project project)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||