|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.CardLayout
griffon.plugins.transitions.TransitionLayout
public class TransitionLayout extends CardLayout
| Nested Class Summary | |
|---|---|
private enum |
TransitionLayout.Direction
|
private static class |
TransitionLayout.NullTransition
|
private static class |
TransitionLayout.TransitionAnimator
|
private static class |
TransitionLayout.TransitionInfo
|
private static class |
TransitionLayout.TransitionPanel
|
| Field Summary | |
|---|---|
private static long |
DEFAULT_DURATION
|
private static com.bric.image.transition.Transition2D |
DEFAULT_TRANSITION
|
static String |
DURATION
|
static String |
NAME
|
static String |
TRANSITION
|
private static long |
UNSPECIFIED_DURATION
|
private Runnable |
_afterCallback
|
private Runnable |
_beforeCallback
|
private Map |
_components
|
private long |
_defaultDuration
|
private com.bric.image.transition.Transition2D |
_defaultTransition
|
private boolean |
_mirrorTransition
|
private boolean |
_skipTransitions
|
private TransitionLayout.TransitionAnimator |
_transitionAnimator
|
| Constructor Summary | |
TransitionLayout()
@author Andres Almiray |
|
| Method Summary | |
|---|---|
void
|
addLayoutComponent(Component component, Object constraints)
Adds the specified component to this card layout's internal table of names. |
int
|
cardIndexOf(String name)
|
String
|
cardNameAt(int index)
|
void
|
first(Container parent)
|
Runnable
|
getAfterCallback()
|
Runnable
|
getBeforeCallback()
|
int
|
getCardCount()
|
int
|
getCurrentCardIndex(Container parent)
|
String
|
getCurrentCardName(Container parent)
|
long
|
getDefaultDuration()
|
com.bric.image.transition.Transition2D
|
getDefaultTransition()
|
private static RenderingHints
|
getRenderingHints()
|
private static BufferedImage
|
grabImage(Component component)
|
boolean
|
isAnimating()
|
boolean
|
isMirrorTransition()
|
boolean
|
isSkipTransitions()
|
void
|
last(Container parent)
|
void
|
next(Container parent)
|
void
|
previous(Container parent)
|
void
|
removeLayoutComponent(Component component)
|
void
|
setAfterCallback(Runnable callback)
|
void
|
setBeforeCallback(Runnable callback)
|
void
|
setDefaultDuration(long defaultDuration)
|
void
|
setDefaultTransition(com.bric.image.transition.Transition2D defaultTransition)
|
void
|
setMirrorTransition(boolean mirrorTransition)
|
void
|
setSkipTransitions(boolean skipTransitions)
|
void
|
show(Container parent, String name)
|
private TransitionLayout.TransitionInfo
|
transitionInfoAt(int index)
|
private void
|
triggerTransition(Container parent, int fromIndex, int toIndex, TransitionLayout.Direction direction)
|
TransitionLayout
|
valueOf(String name)
Returns the enum constant of this type with the specified name. |
TransitionLayout[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class CardLayout | |
|---|---|
| toString, next, previous, last, first, removeLayoutComponent, addLayoutComponent, addLayoutComponent, layoutContainer, invalidateLayout, preferredLayoutSize, minimumLayoutSize, maximumLayoutSize, getLayoutAlignmentX, getLayoutAlignmentY, show, getHgap, setHgap, getVgap, setVgap, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private static final long DEFAULT_DURATION
private static final com.bric.image.transition.Transition2D DEFAULT_TRANSITION
public static final String DURATION
public static final String NAME
public static final String TRANSITION
private static final long UNSPECIFIED_DURATION
private Runnable _afterCallback
private Runnable _beforeCallback
private final Map _components
private long _defaultDuration
private com.bric.image.transition.Transition2D _defaultTransition
private boolean _mirrorTransition
private boolean _skipTransitions
private TransitionLayout.TransitionAnimator _transitionAnimator
| Constructor Detail |
|---|
public TransitionLayout()
| Method Detail |
|---|
public void addLayoutComponent(Component component, Object constraints)
The object specified by constraints may be a string or a Map. This layout stores the string as a key-value pair that can be used for random access to a particular card. By calling the show method, an application can display the component with the specified name.
If the constraints object is a Map it must contain the following keys:
public int cardIndexOf(String name)
public String cardNameAt(int index)
public void first(Container parent)
public Runnable getAfterCallback()
public Runnable getBeforeCallback()
public int getCardCount()
public int getCurrentCardIndex(Container parent)
public String getCurrentCardName(Container parent)
public long getDefaultDuration()
public com.bric.image.transition.Transition2D getDefaultTransition()
private static RenderingHints getRenderingHints()
private static BufferedImage grabImage(Component component)
public boolean isAnimating()
public boolean isMirrorTransition()
public boolean isSkipTransitions()
public void last(Container parent)
public void next(Container parent)
public void previous(Container parent)
public void removeLayoutComponent(Component component)
public void setAfterCallback(Runnable callback)
public void setBeforeCallback(Runnable callback)
public void setDefaultDuration(long defaultDuration)
public void setDefaultTransition(com.bric.image.transition.Transition2D defaultTransition)
public void setMirrorTransition(boolean mirrorTransition)
public void setSkipTransitions(boolean skipTransitions)
public void show(Container parent, String name)
private TransitionLayout.TransitionInfo transitionInfoAt(int index)
private void triggerTransition(Container parent, int fromIndex, int toIndex, TransitionLayout.Direction direction)
TransitionLayout valueOf(String name)
TransitionLayout[] values()
Groovy Documentation