public final class BallView extends DefaultView<BallModel,StackPane,BallController>
| Modifier and Type | Field and Description |
|---|---|
private Circle |
circle
The circle shape of the ball.
|
private Label |
label
The label used to dispaly the ball name.
|
private ScaleTransition |
scaleTransition
The ZoomIN ZoomOUT animation.
|
private ParallelTransition |
showTransition
The Show animation.
|
| Constructor and Description |
|---|
BallView(BallModel model)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) ScaleTransition |
getScaleTransition() |
(package private) ParallelTransition |
getShowTransition() |
private double |
getX()
Return the x coordinate.
|
private double |
getY()
Return the y coordinate.
|
void |
hide()
Hide the ball by using a nice reverse transition..
|
protected void |
initView() |
void |
resetScale()
To complete.
|
void |
setStyle(org.jrebirth.af.api.facade.JRebirthEventType eventType)
Define the ball style.
|
void |
start()
Show the ball by using a nice transition.
|
reloadbuildController, buildRootNode, finalize, getController, getErrorNode, getModel, getRootNode, initInternalView, prepareprivate ScaleTransition scaleTransition
private ParallelTransition showTransition
private Circle circle
private Label label
public BallView(BallModel model) throws org.jrebirth.af.api.exception.CoreException
model - the controls view modelorg.jrebirth.af.api.exception.CoreException - if build failsprotected void initView()
initView in class DefaultView<BallModel,StackPane,BallController>ScaleTransition getScaleTransition()
public void setStyle(org.jrebirth.af.api.facade.JRebirthEventType eventType)
eventType - the type of event for this ballpublic void resetScale()
public void start()
start in interface org.jrebirth.af.api.ui.View<BallModel,StackPane,BallController>start in class DefaultView<BallModel,StackPane,BallController>public void hide()
hide in interface org.jrebirth.af.api.ui.View<BallModel,StackPane,BallController>hide in class DefaultView<BallModel,StackPane,BallController>ParallelTransition getShowTransition()
private double getX()
private double getY()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.