|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides painters and fills with enough context to draw themselves.
Painter
Field Summary | |
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 |
public static final java.lang.Object IMAGE_KEY
getPaintData(java.lang.Object)
public static final java.lang.Object IMAGESET_KEY
getPaintData(java.lang.Object)
public 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)
public 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)
public 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)
public static final int STATE_DISABLED
getPaintState()
public static final int STATE_ARMED
getPaintState()
public static final int STATE_INACTIVE
getPaintState()
public static final int STATE_SET
getPaintState()
public static final int STATE_MOUSE_OVER
getPaintState()
public static final int STATE_SELECTED
getPaintState()
public static final int STATE_FOCUSED
getPaintState()
public static final int STATE_ISDEFAULT
getPaintState()
public static final int STATE_BACKGROUND_NOT_FILLED
getPaintState()
Method Detail |
public void setResponseProperty(java.lang.Object key, java.lang.Object value)
public java.awt.Graphics getPaintGraphics()
public int getPaintState()
public ImageContext getImageContext()
public java.awt.Color getPaintForeground()
public java.awt.Color getPaintBackground()
public java.awt.Color getSurroundingColor()
public java.awt.Font getPaintFont()
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
font
- Font object to return FontMetrics of.
public java.awt.image.ImageObserver getImageObserver()
public java.util.Locale getPaintLocale()
public 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.public float getInteriorAlignmentX()
public float getInteriorAlignmentY()
public int getReadingDirection()
LocaleUtils
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |