|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pscode.xui.image.bean.ImageCaption
public class ImageCaption
JavaBean used to store caption description. Designed for use with the J2SE XMLEncoder/Decoder.
| Field Summary | |
|---|---|
Color |
backgroundColor
The background color to display behind this caption. |
Color |
captionColor
The color of the text of this caption. |
String |
captionText
The text or caption to display. |
Point |
connectTo
Insert arrow pointing to this location on the imageSize. |
String |
fontFamily
Font family to use for rendering this caption. |
int |
fontSize
|
Point |
location
Upper left corner of title. |
int |
width
The width of the text. |
| Constructor Summary | |
|---|---|
ImageCaption()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object object)
Compares in order the - location x/y - connectTo x/y - text and returns the comparison of the first that is not equal. |
Color |
getBackgroundColor()
|
Rectangle |
getBoundsOfCaption(Dimension imageSize)
Provides a rectangle encapsulating the title for the given image size. |
Color |
getCaptionColor()
|
String |
getCaptionText()
|
Point |
getConnectTo()
|
String |
getFontFamily()
|
int |
getFontSize()
|
String |
getHtmlString()
|
Point |
getLocation()
|
int |
getWidth()
|
void |
setBackgroundColor(Color backgroundColor)
|
void |
setCaptionColor(Color captionColor)
|
void |
setCaptionText(String captionText)
|
void |
setConnectTo(Point connectTo)
|
void |
setFontFamily(String fontFamily)
|
void |
setFontSize(int fontSize)
|
void |
setLocation(Point location)
|
void |
setWidth(int width)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String captionText
public String fontFamily
public Color captionColor
public Color backgroundColor
public int width
public Point location
public Point connectTo
public int fontSize
| Constructor Detail |
|---|
public ImageCaption()
| Method Detail |
|---|
public int getFontSize()
public void setFontSize(int fontSize)
public void setCaptionText(String captionText)
public String getCaptionText()
public void setWidth(int width)
public int getWidth()
public void setFontFamily(String fontFamily)
public String getFontFamily()
public void setCaptionColor(Color captionColor)
public Color getCaptionColor()
public void setBackgroundColor(Color backgroundColor)
public Color getBackgroundColor()
public void setLocation(Point location)
public Point getLocation()
public void setConnectTo(Point connectTo)
public Point getConnectTo()
public Rectangle getBoundsOfCaption(Dimension imageSize)
public String getHtmlString()
public String toString()
toString in class Objectpublic int compareTo(Object object)
compareTo in interface Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||