|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdks.src.wordart.CWordArt
public class CWordArt
This class implements the dksWordArt which can be saved to a XML format
date : 5 sept. 07
| Constructor Summary | |
|---|---|
CWordArt(java.lang.String text,
java.awt.Font font)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CShadow shadow)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CShadow shadow,
CWarp warp)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CShadow shadow)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CShadow shadow,
CWarp warp)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CWarp warp)
|
|
CWordArt(java.lang.String text,
java.awt.Font font,
CWarp warp)
|
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics g,
int x,
int y)
|
void |
draw(java.awt.Graphics g,
int x,
int y,
boolean antialiasing)
|
void |
draw(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Deprecated. replaced by the draw(Graphics g, int x, int y) : use the totalSize property to define the width and the height of the wordart |
void |
draw(java.awt.Graphics g,
int x,
int y,
int width,
int height,
boolean antialiasing)
Deprecated. replaced by the draw(Graphics g, int x, int y, boolean antialiasing) : use the totalSize property to define the width and the height of the wordart |
boolean |
equals(java.lang.Object obj)
|
java.awt.Color |
getBackgroundColor()
the background color of the wordart |
CBorder |
getBorder()
|
java.awt.geom.Rectangle2D |
getBounds(java.awt.Graphics g)
|
java.awt.Dimension |
getDimension()
the dimension of the wordart |
java.awt.Font |
getFont()
|
CShadow |
getShadow()
|
java.lang.String |
getText()
|
CTexture |
getTexture()
|
java.awt.Dimension |
getTotalSize()
|
CWarp |
getWarp()
|
int |
hashCode()
|
boolean |
isAutoSizeFont()
|
boolean |
isStretch()
the stretching of the wordart |
void |
prepare(java.awt.Graphics g)
|
void |
setAutoSizeFont(boolean autoSizeFont)
|
void |
setBackgroundColor(java.awt.Color backgroundColor)
the background color of the wordart |
void |
setBorder(CBorder border)
|
void |
setDimension(java.awt.Dimension dimension)
the dimension of the wordart |
void |
setFont(java.awt.Font font)
|
void |
setShadow(CShadow shadow)
|
void |
setStretch(boolean stretch)
the stretching of the wordart |
void |
setText(java.lang.String text)
|
void |
setTexture(CTexture texture)
|
void |
setTotalSize(java.awt.Dimension totalSize)
|
void |
setWarp(CWarp warp)
|
java.lang.String |
toString()
|
void |
XMLload(org.jdom.Element root)
|
void |
XMLload(java.io.File file)
|
void |
XMLsave(org.jdom.Element root)
|
void |
XMLsave(java.io.File file)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CShadow shadow,
CWarp warp)
text - the text of the wordartfont - the font of the texttexture - the texture to useshadow - the shadow to usewarp - the warp to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CShadow shadow,
CWarp warp)
text - the text of the wordartfont - the font of the textshadow - the shadow to usewarp - the warp to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CWarp warp)
text - the text of the wordartfont - the font of the texttexture - the texture to usewarp - the warp to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture,
CShadow shadow)
text - the text of the wordartfont - the font of the texttexture - the texture to useshadow - the shadow to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CWarp warp)
text - the text of the wordartfont - the font of the textwarp - the warp to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CTexture texture)
text - the text of the wordartfont - the font of the texttexture - the texture to use
public CWordArt(java.lang.String text,
java.awt.Font font,
CShadow shadow)
text - the text of the wordartfont - the font of the textshadow - the shadow to use
public CWordArt(java.lang.String text,
java.awt.Font font)
text - the text of the wordartfont - the font of the text| Method Detail |
|---|
public CShadow getShadow()
public void setShadow(CShadow shadow)
shadow - the shadow to usepublic java.lang.String getText()
public void setText(java.lang.String text)
text - the text to displaypublic CTexture getTexture()
public void setTexture(CTexture texture)
texture - the texture to usepublic CWarp getWarp()
public void setWarp(CWarp warp)
warp - the warp to usepublic java.awt.Font getFont()
public void setFont(java.awt.Font font)
font - the font of the textpublic CBorder getBorder()
public void setBorder(CBorder border)
border - the border of the textpublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor - the background color of the wordartpublic java.awt.Dimension getDimension()
public void setDimension(java.awt.Dimension dimension)
dimension - the dimension of the wordartpublic boolean isStretch()
public void setStretch(boolean stretch)
stretch - the stretching of the wordartpublic boolean isAutoSizeFont()
public void setAutoSizeFont(boolean autoSizeFont)
autoSizeFont - if true, the font will be modified when the dimension of the wordart change, and the font have the optimal sizepublic java.awt.Dimension getTotalSize()
public void setTotalSize(java.awt.Dimension totalSize)
totalSize - the totalSize of the wordart (the size of the final picture)
@Deprecated
public void draw(java.awt.Graphics g,
int x,
int y,
int width,
int height)
g - the graphics used to display the wordartx - the position in the X axis of the wordarty - the position in the Y axis of the wordartwidth - the width of the wordartheight - the height of the wordart
public void draw(java.awt.Graphics g,
int x,
int y)
g - the graphics used to display the wordartx - the position in the X axis of the wordarty - the position in the Y axis of the wordart
The size of the wordart is defined by the totalSize property
@Deprecated
public void draw(java.awt.Graphics g,
int x,
int y,
int width,
int height,
boolean antialiasing)
g - the graphics used to display the wordartx - the position in the X axis of the wordarty - the position in the Y axis of the wordartwidth - the width of the wordartheight - the height of the wordartantialiasing - the activity of the antialiasing
public void draw(java.awt.Graphics g,
int x,
int y,
boolean antialiasing)
g - the graphics used to display the wordartx - the position in the X axis of the wordarty - the position in the Y axis of the wordartantialiasing - the activity of the antialiasingpublic void prepare(java.awt.Graphics g)
public java.awt.geom.Rectangle2D getBounds(java.awt.Graphics g)
g - the graphics used to display the wordard
public void XMLload(java.io.File file)
throws java.io.IOException,
org.jdom.JDOMException
file - the file used to load the WordArt
java.io.IOException
org.jdom.JDOMException
public void XMLload(org.jdom.Element root)
throws java.io.IOException,
org.jdom.JDOMException
root - the DOM root element used to load the WordArt
java.io.IOException
org.jdom.JDOMException
public void XMLsave(java.io.File file)
throws java.io.IOException
file - the file used to save the WordArt
java.io.IOExceptionpublic void XMLsave(org.jdom.Element root)
root - the DOM root Element used to save the WordArt
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||