|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.formatitems.PaintItem
FormatItem for a PaintFormat
| Constructor Summary | |
PaintItem(int style,
int backColor,
int foreColor,
int gradientType,
int patternType,
java.lang.String textureKey,
int transparency,
boolean isTransparent,
boolean isVisible)
Constructor which expects initial values for each item data |
|
PaintItem(PaintFormat pf)
Constructor which requires an initial PaintFormat object for initialisation |
|
PaintItem(PaintItem pi)
A copy constructor which takes another paint item to initialize all needed parameters |
|
| Method Summary | |
int |
getColor()
Returns background color |
java.lang.String |
getDescription()
Returns the canonical description used to create a format. |
int |
getForeColor()
Returns foreground color |
Format |
getFormat()
Returns a new format. |
java.lang.Object[] |
getFormatData()
Returns all format parameters |
int |
getGradientType()
Returns the gradient type |
int |
getPatternType()
Returns the pattern type |
int |
getStyle()
Returns the paint style |
java.lang.String |
getTextureKey()
Returns the texture key |
int |
getTransparency()
Returns the level of transparency |
boolean |
isTransparent()
Returns the transparent flag |
boolean |
isVisible()
Checks the visibility of this paint item |
void |
setColor(int color)
Sets the background color |
void |
setForeColor(int foreColor)
Sets the foreground color |
void |
setGradientType(int gradientType)
Sets the gradient type |
void |
setPatternType(int patternType)
Sets the pattern type |
void |
setStyle(int style)
Sets the paint style |
void |
setTextureKey(java.lang.String textureKey)
Sets the texture key. |
void |
setTransparency(int transparency)
Sets the transparency level |
void |
setTransparent(boolean isTransparent)
Sets the transparent flag |
void |
setVisible(boolean isVisible)
Sets the visibility of this paint item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PaintItem(PaintFormat pf)
pf - PaintFormat objectpublic PaintItem(PaintItem pi)
pi - another PaintItem instance
public PaintItem(int style,
int backColor,
int foreColor,
int gradientType,
int patternType,
java.lang.String textureKey,
int transparency,
boolean isTransparent,
boolean isVisible)
style - the paint stylebackColor - the background colorforeColor - the foreground colorgradientType - the gradient typepatternType - the pattern typetextureKey - the texture keytransparency - the level of transparency in percentisTransparent - true to indicate that transparency should be used,
false otherwiseisVisible - true to indicate that this paint item is visible, false
otherwise| Method Detail |
public final java.lang.String getDescription()
FormatItem
getDescription in interface FormatItem
public final Format getFormat()
throws PaintFormatParseException
FormatItem
getFormat in interface FormatItemPaintFormatParseExceptionpublic final int getColor()
public final void setColor(int color)
color - in Tensegrity Color Formatpublic final int getForeColor()
public final void setForeColor(int foreColor)
foreColor - in Tensegrity Color Formatpublic final int getGradientType()
public final void setGradientType(int gradientType)
gradientType - the gradient typepublic final boolean isTransparent()
public final void setTransparent(boolean isTransparent)
isTransparent - set to true to indicate that transparency should
be used, false otherwisepublic final boolean isVisible()
public final void setVisible(boolean isVisible)
isVisible - set to true to indicate that this paint item shoulb
be visible, false otherwisepublic final int getPatternType()
public final void setPatternType(int patternType)
patternType - the pattern typepublic final int getStyle()
public final void setStyle(int style)
style - the paint stylepublic final int getTransparency()
public final void setTransparency(int transparency)
transparency - the transparency level in percent, 0 means no
transparency, 100 total transparencypublic final void setTextureKey(java.lang.String textureKey)
textureKey - should be uniquepublic final java.lang.String getTextureKey()
public final java.lang.Object[] getFormatData()
FormatItem
getFormatData in interface FormatItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||