|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zilonis.tool.ext.aerith.effects.ComponentState
public class ComponentState
The structure stores the state of a given transition component that will be used during the transition, which includes the position, the size, and the image snapshot of the component.
| Constructor Summary | |
|---|---|
ComponentState(javax.swing.JComponent component)
Constructor, which takes the given component and derives the state information needed (location, size, and image snapshot) |
|
| Method Summary | |
|---|---|
javax.swing.JComponent |
getComponent()
|
int |
getHeight()
|
java.awt.Image |
getSnapshot()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
static void |
paintComponentHierarchySingleBuffered(javax.swing.JComponent component,
java.awt.Graphics g)
This variation paints the component including whatever is behind it; this handles the case where the component is not opaque. |
static void |
paintComponentSingleBuffered(javax.swing.JComponent component,
java.awt.Graphics g)
Paints the given JComponent in single-buffered mode, which is needed to avoid rendering artifacts when capturing a non-opaque Swing component hierarchy into an offscreen image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentState(javax.swing.JComponent component)
| Method Detail |
|---|
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public javax.swing.JComponent getComponent()
public java.awt.Image getSnapshot()
public static void paintComponentSingleBuffered(javax.swing.JComponent component,
java.awt.Graphics g)
component - the JComponent (and its children) to be paintedg - the Graphics into which component will be painted
public static void paintComponentHierarchySingleBuffered(javax.swing.JComponent component,
java.awt.Graphics g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||