|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCanvas
org.formaria.swt.Image
public class Image
Draws an image
Copyright (c) Formaria Ltd., 2008
License: see license.txt $Revision: 2.18 $
| Field Summary | |
|---|---|
protected Project |
currentProject
The current project |
| Constructor Summary | |
|---|---|
Image(java.lang.Object parent)
Create a new image |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
boolean |
getAlignment()
|
java.lang.String |
getImageName()
Gets the name of the image being displayed. |
java.lang.String |
getToolTip()
Get the tooltip text |
boolean |
isFull()
|
boolean |
isScale()
|
protected void |
paint(GC gc)
Renders the component |
void |
setAlignment(boolean alignment)
|
void |
setBg(java.lang.String clrStr)
Set the background color |
void |
setFull(boolean full)
|
void |
setImage(java.awt.Image img)
Sets the image to display. |
void |
setImageName(java.lang.String name)
Sets the name of the image being displayed. |
void |
setScale(boolean scale)
|
void |
setToolTip(java.lang.String text)
Set the tooltip text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Project currentProject
| Constructor Detail |
|---|
public Image(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
public void setImage(java.awt.Image img)
setImage in interface ImageHolderimg - the imagepublic void setToolTip(java.lang.String text)
text - the new textpublic java.lang.String getToolTip()
public void setBg(java.lang.String clrStr)
clrStr - the new color string (hex)protected void paint(GC gc)
g - the graphics contextpublic void setImageName(java.lang.String name)
setImageName in interface ImageHoldername - the image namepublic java.lang.String getImageName()
getImageName in interface ImageHolderpublic boolean isScale()
public void setScale(boolean scale)
public boolean getAlignment()
public void setAlignment(boolean alignment)
public boolean isFull()
public void setFull(boolean full)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||