|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.animation.transitions.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 | |
---|---|
boolean |
equals(java.lang.Object obj)
|
javax.swing.JComponent |
getComponent()
|
int |
getHeight()
|
java.awt.Image |
getSnapshot()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
int |
hashCode()
|
static void |
paintHierarchySingleBuffered(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 |
paintSingleBuffered(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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, 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 paintSingleBuffered(javax.swing.JComponent component, java.awt.Graphics g)
component
- the JComponent (and its children) to be paintedg
- the Graphics into which component will be paintedpublic static void paintHierarchySingleBuffered(javax.swing.JComponent component, java.awt.Graphics g)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |