|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaintContext
This interface provides painters and fills with enough context to draw themselves.
Painter
Field Summary | |
---|---|
static java.lang.Object |
BUTTON_BOTTOM_BACKGROUND_IMAGE_KEY
Key used with getPaintData() to retrieve the buttonBottomBackground Image. |
static java.lang.Object |
BUTTON_END_IMAGE_KEY
Key used with getPaintData() to retrieve the buttonEnd Image. |
static java.lang.Object |
BUTTON_START_IMAGE_KEY
Key used with getPaintData() to retrieve the buttonStart Image. |
static java.lang.Object |
BUTTON_TOP_BACKGROUND_IMAGE_KEY
Key used with getPaintData() to retrieve the buttonTopBackground Image. |
static java.lang.Object |
ICON_KEY
Key used with getPaintData() to retrieve the main Icon Object, if any, from the PaintContext. |
static java.lang.Object |
IMAGE_KEY
Key used with getPaintData() to retrieve the main Image Object, if any, from the PaintContext. |
static java.lang.Object |
IMAGESET_KEY
Key used with getPaintData() to retrieve the main ImageSet Object, if any, from the PaintContext. |
static java.lang.Object |
LABEL_KEY
Key used with getPaintData() to retrieve the label String Object, if any, from the PaintContext. |
static java.lang.Object |
MNEMONIC_INDEX_KEY
Key used with getPaintData() to retrieve the mnemonic index, if any, from the PaintContext. |
static int |
STATE_ARMED
State constant for an object that is currently pressed. |
static int |
STATE_BACKGROUND_NOT_FILLED
State constant for the context not wanting the background filled =-=AEW It might be better to just report getPaintBackground() == null, but that forces code to understand this issue. |
static int |
STATE_DISABLED
State constant for a disabled object. |
static int |
STATE_FOCUSED
State constant for the context having the keyboard focus |
static int |
STATE_INACTIVE
State constant for an inactive object. |
static int |
STATE_ISDEFAULT
State constant for the context being the input default |
static int |
STATE_MOUSE_OVER
State constant for an object that has the mouse over it. |
static int |
STATE_SELECTED
State constant for the context having the selection |
static int |
STATE_SET
State constant for an object that is in the set state |
Method Summary | |
---|---|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Returns a font metrics object for the specified font. |
ImageContext |
getImageContext()
Returns the ImageContext for this render. |
java.awt.image.ImageObserver |
getImageObserver()
Returns an image observer object that can be used to monitor progress in loading images. |
float |
getInteriorAlignmentX()
Returns the horizontal interior alignment of the PaintContext. |
float |
getInteriorAlignmentY()
Returns the vertical interior alignment of the PaintContext. |
java.awt.Color |
getPaintBackground()
Returns the background color of the PaintContext. |
java.lang.Object |
getPaintData(java.lang.Object key)
Returns the data Object for the specified key. |
java.awt.Font |
getPaintFont()
Returns the font of the PaintContext. |
java.awt.Color |
getPaintForeground()
Returns the foreground color of the PaintContext. |
java.awt.Graphics |
getPaintGraphics()
|
java.util.Locale |
getPaintLocale()
Returns the Locale of the PaintContext. |
int |
getPaintState()
Returns a mask for the current state. |
int |
getReadingDirection()
Returns the reading direction of the PaintContext. |
java.awt.Color |
getSurroundingColor()
Returns the color surrounding the Object to be painted with the PaintContext. |
void |
setResponseProperty(java.lang.Object key,
java.lang.Object value)
Sets a property on the response dictionary |
Field Detail |
---|
static final java.lang.Object IMAGE_KEY
getPaintData(java.lang.Object)
static final java.lang.Object IMAGESET_KEY
getPaintData(java.lang.Object)
static final java.lang.Object ICON_KEY
Although this key is currently defined as a String, clients should not depend on this.
getPaintData(java.lang.Object)
static final java.lang.Object LABEL_KEY
Although this key is currently defined as a String, clients should not depend on this.
getPaintData(java.lang.Object)
static final java.lang.Object MNEMONIC_INDEX_KEY
Although this key is currently defined as a String, clients should not depend on this.
getPaintData(java.lang.Object)
static final java.lang.Object BUTTON_START_IMAGE_KEY
getPaintData(java.lang.Object)
static final java.lang.Object BUTTON_END_IMAGE_KEY
getPaintData(java.lang.Object)
static final java.lang.Object BUTTON_TOP_BACKGROUND_IMAGE_KEY
getPaintData(java.lang.Object)
static final java.lang.Object BUTTON_BOTTOM_BACKGROUND_IMAGE_KEY
getPaintData(java.lang.Object)
static final int STATE_DISABLED
getPaintState()
,
Constant Field Valuesstatic final int STATE_ARMED
getPaintState()
,
Constant Field Valuesstatic final int STATE_INACTIVE
getPaintState()
,
Constant Field Valuesstatic final int STATE_SET
getPaintState()
,
Constant Field Valuesstatic final int STATE_MOUSE_OVER
getPaintState()
,
Constant Field Valuesstatic final int STATE_SELECTED
getPaintState()
,
Constant Field Valuesstatic final int STATE_FOCUSED
getPaintState()
,
Constant Field Valuesstatic final int STATE_ISDEFAULT
getPaintState()
,
Constant Field Valuesstatic final int STATE_BACKGROUND_NOT_FILLED
getPaintState()
,
Constant Field ValuesMethod Detail |
---|
void setResponseProperty(java.lang.Object key, java.lang.Object value)
java.awt.Graphics getPaintGraphics()
int getPaintState()
ImageContext getImageContext()
java.awt.Color getPaintForeground()
java.awt.Color getPaintBackground()
java.awt.Color getSurroundingColor()
java.awt.Font getPaintFont()
java.awt.FontMetrics getFontMetrics(java.awt.Font font)
font
- Font object to return FontMetrics of.
java.awt.image.ImageObserver getImageObserver()
java.util.Locale getPaintLocale()
java.lang.Object getPaintData(java.lang.Object key)
null
to indicate that their default data
Object be returned by this method.
key
- The key specifying which data Object the PaintContext should
return.
key
or null
if no Object for that key is supported.float getInteriorAlignmentX()
float getInteriorAlignmentY()
int getReadingDirection()
LocaleUtils
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |