|
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 | ||||||||
java.lang.Object
|
+--oracle.cabo.image.painter.AbstractPainter
|
+--oracle.cabo.image.painter.PainterStacker
Painter that stacks two Painters, one on top of the other.
| Fields inherited from interface oracle.cabo.image.painter.Painter |
STATE_ACTIVE_CHANGED, STATE_ARMED_CHANGED, STATE_BACKGROUND_CHANGED, STATE_ENABLED_CHANGED, STATE_FOCUSED_CHANGED, STATE_FONT_CHANGED, STATE_FOREGROUND_CHANGED, STATE_ISDEFAULT_CHANGED, STATE_MOUSE_OVER_CHANGED, STATE_READING_DIRECTION_CHANGED, STATE_SELECTED_CHANGED, STATE_SET_CHANGED, STATE_SIZE_CHANGED, STATE_XALIGNMENT_CHANGED, STATE_YALIGNMENT_CHANGED |
| Constructor Summary | |
PainterStacker(Painter bottomPainter,
Painter topPainter)
Creates a PainterStacker with the two Painters. |
|
| Method Summary | |
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 two stacked Painters. |
java.awt.Dimension |
getMinimumSize(PaintContext context)
Returns the minimum size of the two stacked Painters. |
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 two stacked Painters. |
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 whether the fill is transparent. |
void |
paint(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the stacked Painters at the given location. |
| Methods inherited from class oracle.cabo.image.painter.AbstractPainter |
contains, getData, getDataKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PainterStacker(Painter bottomPainter,
Painter topPainter)
bottomPainter - Painter to place on bottomtopPainter - Painter to place on top| Method Detail |
public java.awt.Dimension getSize(PaintContext context,
int availableWidth,
int availableHeight)
getSize in class AbstractPaintercontext - 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)
getPreferredSize in class AbstractPaintercontext - 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)
getMaximumSize in class AbstractPaintercontext - 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 Painter getPainterAt(PaintContext context,
int availableWidth,
int availableHeight,
int x,
int y,
Painter proxyPainter)
getPainterAt in class AbstractPaintercontext - 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)
isTransparent in class AbstractPainteroracle.cabo.image.painter.AbstractPaintercontext - Context for determining transparency.
public int getRepaintFlags(PaintContext context)
getRepaintFlags in class AbstractPaintercontext - Context to use for determining the conditions under
which reapinting is required.
public int getInvalidateFlags(PaintContext context)
getInvalidateFlags in class AbstractPaintercontext - Context to use for determining the conditions under
which invalidation is required.
|
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 | ||||||||