public class DrawInfo extends Magick
| Constructor and Description |
|---|
DrawInfo(ImageInfo imageInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
If the garbabe collector removes us, we had better release
the memory we occupy.
|
PixelPacket |
getBorderColor()
Get the border_color attribute in the DrawInfo handle.
|
int |
getDecorate()
Get the decorate attribute in the DrawInfo handle.
|
PixelPacket |
getFill()
Get the fill attribute in the DrawInfo handle.
|
java.lang.String |
getFont()
Get the font field in the DrawInfo.
|
java.lang.String |
getGeometry()
Get the geometry field in the DrawInfo.
|
int |
getGravity()
Get the gravity attribute in the DrawInfo handle.
|
double |
getInterlineSpacing()
Get the interline_spacing attribute in the DrawInfo handle.
|
double |
getInterwordSpacing()
Get the interword_spacing attribute in the DrawInfo handle.
|
double |
getKerning()
Get the kerning attribute in the DrawInfo handle.
|
int |
getOpacity()
Get the opacity attribute in the DrawInfo handle.
|
double |
getPointsize()
Get the pointsize attribute in the DrawInfo handle.
|
java.lang.String |
getPrimitive()
Get the primitive field in the DrawInfo.
|
PixelPacket |
getStroke()
Get the stroke attribute in the DrawInfo handle.
|
boolean |
getStrokeAntialias()
Return the stroke_antialias attribute in the DrawInfo handle.
|
double |
getStrokeWidth()
Get the stroke_width attribute in the DrawInfo handle.
|
java.lang.String |
getText()
Get the text field in the DrawInfo.
|
boolean |
getTextAntialias()
Return the text_antialias attribute in the DrawInfo handle.
|
MagickImage |
getTile()
Get the tile image from the DrawInfo.
|
PixelPacket |
getUnderColor()
Get the undercolor attribute in the DrawInfo handle.
|
void |
setBorderColor(PixelPacket borderColor)
Set the border_color attribute in the DrawInfo handle.
|
void |
setDecorate(int decoration)
Set the decorate attribute in the DrawInfo handle.
|
void |
setFill(PixelPacket fill)
Set the fill attribute in the DrawInfo handle.
|
void |
setFont(java.lang.String font)
Set the font field in the DrawInfo.
|
void |
setGeometry(java.lang.String geometry)
Set the geometry field in the DrawInfo.
|
void |
setGravity(int gravity)
Set the gravity attribute in the DrawInfo handle.
|
void |
setInterlineSpacing(double interlineSpacing)
Set the interline_spacing attribute in the DrawInfo handle.
|
void |
setInterwordSpacing(double interwordSpacing)
Set the interword_spacing attribute in the DrawInfo handle.
|
void |
setKerning(double kerning)
Set the kerning attribute in the DrawInfo handle.
|
void |
setOpacity(int opacity)
Set the opacity attribute in the DrawInfo handle.
|
void |
setPointsize(double pointsize)
Set the pointsize attribute in the DrawInfo handle.
|
void |
setPrimitive(java.lang.String primitive)
Set the primitive field in the DrawInfo.
|
void |
setStroke(PixelPacket stroke)
Set the stroke attribute in the DrawInfo handle.
|
void |
setStrokeAntialias(boolean strokeAntialias)
Set the stroke_antialias attribute in the DrawInfo handle.
|
void |
setStrokeWidth(double strokeWidth)
Set the stroke_width attribute in the DrawInfo handle.
|
void |
setText(java.lang.String text)
Set the text field in the DrawInfo.
|
void |
setTextAntialias(boolean textAntialias)
Set the text_antialias attribute in the DrawInfo handle.
|
void |
setTile(MagickImage image)
Set the tile image in the DrawInfo.
|
void |
setUnderColor(PixelPacket underColor)
Set the undercolor attribute in the DrawInfo handle.
|
parseImageGeometry, queryFontspublic DrawInfo(ImageInfo imageInfo) throws MagickException
imageInfo - default values for DrawInfo this taken from thisMagickException - if any error occursprotected void finalize()
finalize in class java.lang.Objectpublic void setPrimitive(java.lang.String primitive)
throws MagickException
primitive - value of the primitive fieldMagickException - if any error occurspublic java.lang.String getPrimitive()
throws MagickException
MagickException - if any error occurspublic java.lang.String getText()
throws MagickException
MagickException - if any error occurspublic void setText(java.lang.String text)
throws MagickException
text - value of the text fieldMagickException - if any error occurspublic java.lang.String getGeometry()
throws MagickException
MagickException - if any error occurspublic void setGeometry(java.lang.String geometry)
throws MagickException
geometry - value of the geometry fieldMagickException - if any error occurspublic void setFont(java.lang.String font)
throws MagickException
font - value of the font fieldMagickException - if any error occurspublic java.lang.String getFont()
throws MagickException
MagickException - if any error occurspublic void setStrokeAntialias(boolean strokeAntialias)
throws MagickException
strokeAntialias - whether antialiasing is enableMagickException - if any error occurspublic boolean getStrokeAntialias()
throws MagickException
MagickException - if any error occurspublic void setTextAntialias(boolean textAntialias)
throws MagickException
textAntialias - whether antialiasing is enableMagickException - if any error occurspublic boolean getTextAntialias()
throws MagickException
MagickException - if any error occurspublic void setGravity(int gravity)
throws MagickException
gravity - the new GravityType valueMagickException - if any error occursGravityTypepublic int getGravity()
throws MagickException
MagickException - if any error occursGravityTypepublic void setOpacity(int opacity)
throws MagickException
opacity - the new opacity valueMagickException - if any error occurspublic int getOpacity()
throws MagickException
MagickException - if any error occurspublic void setDecorate(int decoration)
throws MagickException
decoration - the new DecorationType valueMagickException - if any error occursDecorationTypepublic int getDecorate()
throws MagickException
MagickException - if any error occursDecorationTypepublic void setKerning(double kerning)
throws MagickException
kerning - value of the kerning attributeMagickException - if any error occurspublic double getKerning()
throws MagickException
MagickException - if any error occurspublic void setInterwordSpacing(double interwordSpacing)
throws MagickException
interwordSpacing - value of the interword_spacing attributeMagickException - if any error occurspublic double getInterwordSpacing()
throws MagickException
MagickException - if any error occurspublic void setInterlineSpacing(double interlineSpacing)
throws MagickException
interlineSpacing - value of the interline_spacing attributeMagickException - if any error occurspublic double getInterlineSpacing()
throws MagickException
MagickException - if any error occurspublic void setStrokeWidth(double strokeWidth)
throws MagickException
strokeWidth - value of the stroke_width attributeMagickException - if any error occurspublic double getStrokeWidth()
throws MagickException
MagickException - if any error occurspublic void setPointsize(double pointsize)
throws MagickException
pointsize - value of the pointsize attributeMagickException - if any error occurspublic double getPointsize()
throws MagickException
MagickException - if any error occurspublic void setFill(PixelPacket fill) throws MagickException
fill - new value of the fill attributeMagickException - if any error occurspublic PixelPacket getFill() throws MagickException
MagickException - if any error occurspublic void setStroke(PixelPacket stroke) throws MagickException
stroke - new value of the fill attributeMagickException - if any error occurspublic PixelPacket getStroke() throws MagickException
MagickException - if any error occurspublic void setUnderColor(PixelPacket underColor) throws MagickException
underColor - new value of the fill attributeMagickException - if any error occurspublic PixelPacket getUnderColor() throws MagickException
MagickException - if any error occurspublic void setBorderColor(PixelPacket borderColor) throws MagickException
borderColor - new value of the fill attributeMagickException - if any error occurspublic PixelPacket getBorderColor() throws MagickException
MagickException - if any error occurspublic void setTile(MagickImage image) throws MagickException
image - the tile image to setMagickException - if any error occurspublic MagickImage getTile() throws MagickException
MagickException - if any error occurs