|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Covers the basic behavior of a preview component. It defines methods to set format instances respectively to get their current values.
While you can retrieve each single value from a format (for example:
getFontColor(), getFontFamily(), getPaintColorfore(),
getStrokeWeight()) you have to set formats giving their complete set
of parameters (for example:
setFontFormat(int, int, String, int, boolean, boolean, boolean, StrokeFormat, StrokeFormat).
StrokeFormat,
PaintFormat,
FontFormat| Method Summary | |
int |
getFontColor()
Method getFontColor returns the color of the currently previewed font. |
java.lang.String |
getFontFamily()
Method getFontFamily returns the name of the currently previewed font. |
boolean |
getFontItalic()
Method getFontItalic returns the flag that indicates that the previewed font is italic. |
int |
getFontSize()
Method getFontSize returns the size of the currently previewed font. |
boolean |
getFontStrikethrough()
Method getFontStrikethrough returns the flag that indicates that the previewed font is strikethrough. |
boolean |
getFontUnderline()
Method getFontUnderline returns the flag that indicates that the previewed font is underlined. |
int |
getFontWeight()
Method getFontWeight returns the weight of the currently previewed font. |
int |
getPaintColorback()
Method getPaintColorback returns the current background color of the previewed paint. |
int |
getPaintColorfore()
Method getPaintColorfore returns the current foreground color of the previewed paint. |
int |
getPaintGradientType()
Method getPaintGradientType returns the gradient type as int. |
int |
getPaintPatternType()
Method getPaintPatternType returns pattern type as int. |
int |
getPaintStyle()
Method getPaintStyle returns the current style of the previewed paint. |
java.lang.String |
getPaintTextureKey()
Returns the texture raster key that is used to get the raster from the pool. |
int |
getPaintTransparency()
Method getPaintTransparency returns the level of transparency as an int between zero and 100. |
boolean |
getPaintTransparent()
Method getPaintTransparent returns the flag that indicates whether to use transparency. |
int |
getStrokeColor()
Method getStrokeColor returns the current color of the previewed stroke. |
int |
getStrokeStyle()
Method getStrokeStyle returns the current style of the previewed stroke. |
int |
getStrokeWeight()
Method getStrokeWeight returns the current weight of the previewed stroke. |
void |
setFontFormat(int fontSize,
int fontWeight,
java.lang.String fontFamily,
int fontColor,
boolean fontItalic,
boolean fontUnderline,
boolean fontStrikethrough,
StrokeFormat underlineStroke,
StrokeFormat strikethroughStroke)
Method setFontFormat sets all font relevant values. |
void |
setPaintFormat(int paintStyle,
int paintColorback,
int paintColorfore,
int paintGradienttype,
int paintPatterntype,
java.lang.String paintRasterKey,
int paintTransparency,
boolean paintTransparent)
Method setPaintFormat sets all PaintFormat relevant values. |
void |
setStrokeFormat(int strokeStyle,
int strokeWeight,
int strokeColor,
double[] strokePattern)
Method setStrokeFormat sets all stroke related values. |
| Method Detail |
public int getStrokeStyle()
StrokeFormatpublic int getStrokeWeight()
StrokeFormatpublic int getStrokeColor()
StrokeFormat
public void setStrokeFormat(int strokeStyle,
int strokeWeight,
int strokeColor,
double[] strokePattern)
strokeStyle - the style as int.strokeWeight - the weight as int.strokeColor - the color as int.strokePattern - the pattern as double arrayStrokeFormatpublic int getPaintStyle()
PaintFormatpublic int getPaintColorback()
PaintFormatpublic int getPaintColorfore()
PaintFormatpublic int getPaintGradientType()
PaintFormatpublic int getPaintPatternType()
PaintFormatpublic int getPaintTransparency()
PaintFormatpublic java.lang.String getPaintTextureKey()
PaintFormatpublic boolean getPaintTransparent()
PaintFormat
public void setPaintFormat(int paintStyle,
int paintColorback,
int paintColorfore,
int paintGradienttype,
int paintPatterntype,
java.lang.String paintRasterKey,
int paintTransparency,
boolean paintTransparent)
paintStyle - the style.paintColorback - the background color as rgb int.paintColorfore - the foregound color as rgb int.paintGradienttype - the gradient type.paintPatterntype - the pattern type.paintRasterKey - the texture raster key.paintTransparency - the level of transparency.paintTransparent - the transparent flag.PaintFormatpublic int getFontSize()
FontFormatpublic int getFontWeight()
FontFormatpublic java.lang.String getFontFamily()
FontFormatpublic int getFontColor()
FontFormatpublic boolean getFontItalic()
FontFormatpublic boolean getFontUnderline()
FontFormatpublic boolean getFontStrikethrough()
FontFormat
public void setFontFormat(int fontSize,
int fontWeight,
java.lang.String fontFamily,
int fontColor,
boolean fontItalic,
boolean fontUnderline,
boolean fontStrikethrough,
StrokeFormat underlineStroke,
StrokeFormat strikethroughStroke)
fontSize - the size as int.fontWeight - the weight as int.fontFamily - the name of the font family as String.fontColor - the color as rgb int.fontItalic - the flag that indicates italic.fontUnderline - the flag that indicates underline.fontStrikethrough - the flag that indicates strikethrough.FontFormat
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||