|
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 |
Interface implemented by objects that paint something.
Field Summary | |
static int |
STATE_ACTIVE_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's active state changes. |
static int |
STATE_ARMED_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's armed state changes. |
static int |
STATE_BACKGROUND_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's background color changes. |
static int |
STATE_ENABLED_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's enabled state changes. |
static int |
STATE_FOCUSED_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's keyboard focused state changes. |
static int |
STATE_FONT_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's font changes. |
static int |
STATE_FOREGROUND_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's foreground color changes. |
static int |
STATE_ISDEFAULT_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's isdefault state changes. |
static int |
STATE_MOUSE_OVER_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's mouse over state changes. |
static int |
STATE_READING_DIRECTION_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's reading direction changes. |
static int |
STATE_SELECTED_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's selected state changes. |
static int |
STATE_SET_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's set state changes. |
static int |
STATE_SIZE_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's size changes. |
static int |
STATE_XALIGNMENT_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's interior X alignment changes. |
static int |
STATE_YALIGNMENT_CHANGED
State modification constant indicating that the Painter wants to be repainted or invalidated when the PaintContext's interior Y alignment changes. |
Method Summary | |
boolean |
contains(PaintContext context,
int availableWidth,
int availableHeight,
int x,
int y)
Returns true if the specified x, y location is inside the Painter. |
int |
getInvalidateFlags(PaintContext context)
Returns the flasg indicating the conditions under which the Painter must be invalidated. |
java.awt.Dimension |
getMaximumSize(PaintContext context)
Returns the maximum size of the painter. |
java.awt.Dimension |
getMinimumSize(PaintContext context)
Returns the minimum size of the painter. |
Painter |
getPainterAt(PaintContext context,
int availableWidth,
int availableHeight,
int x,
int y,
Painter proxyPainter)
Returns the Painter inside this Painter at location x,y of the available size. |
java.awt.Dimension |
getPreferredSize(PaintContext context)
Returns the preferred size of the painter. |
int |
getRepaintFlags(PaintContext context)
Returns the flags indicating the conditions under which the Painter must be repainted. |
java.awt.Dimension |
getSize(PaintContext context,
int availableWidth,
int availableHeight)
Returns the size of the Painter for the specified amount of availableWidth and availableHeight. |
boolean |
isTransparent(PaintContext context)
Returns true if the Painter doesn't paint all of its pixels. |
void |
paint(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the Painter at the given location. |
Field Detail |
public static final int STATE_ENABLED_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_ARMED_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_ACTIVE_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_SET_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_MOUSE_OVER_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_FOCUSED_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_ISDEFAULT_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_SIZE_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_FONT_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_FOREGROUND_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_BACKGROUND_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_XALIGNMENT_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_YALIGNMENT_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_SELECTED_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public static final int STATE_READING_DIRECTION_CHANGED
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
,
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
Method Detail |
public java.awt.Dimension getSize(PaintContext context, int availableWidth, int availableHeight)
context
- Context for deterimining the size.availableWidth
- Amount of width available to the Painter.availableHeight
- Amount of height available to the Painter.
public java.awt.Dimension getPreferredSize(PaintContext context)
context
- Context for determining the preferred size.
public java.awt.Dimension getMinimumSize(PaintContext context)
context
- Context for determining the minimum size.
public java.awt.Dimension getMaximumSize(PaintContext context)
context
- Context for determining the maximum size.
public void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
context
- Context for painting.g
- Graphics object to draw into.x
- X position to draw at.y
- Y position to draw at.width
- Width to draw into.height
- Height to draw into.public boolean contains(PaintContext context, int availableWidth, int availableHeight, int x, int y)
context
- Context for determining containership.availableWidth
- Amount of width available to the Painter.availableHeight
- Amount of height available to the Painter.x
- X location to test for containership in this
Painter.y
- Y location to test for containership in this
Painter.
public Painter getPainterAt(PaintContext context, int availableWidth, int availableHeight, int x, int y, Painter proxyPainter)
context
- Context for determining containership.availableWidth
- Amount of width available to the Painter.availableHeight
- Amount of height available to the Painter.x
- X location to test for containership in this
Painter.y
- Y location to test for containership in this
Painter.proxyPainter
- Painter to return instead of child painters
public boolean isTransparent(PaintContext context)
context
- Context for determining transparency.
public int getRepaintFlags(PaintContext context)
context
- Context to use for determining the conditions under
which repainting is required.
getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
public int getInvalidateFlags(PaintContext context)
context
- Context to use for determining the conditions under
which invalidation is required.
getRepaintFlags(oracle.cabo.image.painter.PaintContext)
|
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 |