|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.Fireworks
public class Fireworks
Fireworks is a class that increments and decrements a FireworkIcon
object when an alarm is fired and paints the icon in that state.
Notes:
AnimationIconInterface
,
FireworkIcon
,
Serialized FormField Summary | |
---|---|
protected FireworkIcon |
fireworkIcon
FireworkIcon to be manipulated in this class |
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.visuals.AnimationIconView |
---|
alarm, animationIcon, decrement, running |
Fields inherited from class com.sas.visuals.IconView |
---|
icon |
Constructor Summary | |
---|---|
Fireworks()
Default constructor. |
Method Summary | |
---|---|
void |
addNotify()
Overridden to determine set the correct background based on the parent. |
protected AnimationIconView |
createIconObject(AnimationIconView icon)
Called by super in AnimationIconView during cloning. |
static int |
getDefaultHeight()
Returns the default height in pixels |
static int |
getDefaultWidth()
Returns the default width in pixels |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns information used by the com.sas.beans.Introspector to
augment the automatically introspected information about this Fireworks object. |
int |
getGravity()
Gets the gravity affecting the rockets. |
int |
getMaxRocketExplosionEnergy()
Gets the maximum rocket explosion energy. |
int |
getMaxRocketNumber()
Gets the maximum number of rockets created. |
int |
getMaxRocketPatchLength()
Gets the maximum rocket patch length. |
int |
getMaxRocketPatchNumber()
Gets the maximum rocket patch number. |
int |
getRocketStyleVariability()
Gets the preferredSize that was set on the FireworkIcon |
void |
propertyChanged(java.beans.PropertyChangeEvent e)
Invoked when the parent of this component sends a PropertyChangeEvent. |
void |
removeNotify()
Removes the property changed listener attached to the Fireworks object |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds of the Fireworks component. |
static void |
setDefaultHeight(int newHeight)
Sets the default height in pixels |
void |
setDefaultValues()
Sets the default internal values for the Fireworks object. |
static void |
setDefaultWidth(int newWidth)
Sets the default widthin pixels |
void |
setGravity(int g)
Sets the gravity. |
void |
setMaxRocketExplosionEnergy(int e)
Sets the maximum rocket explosion energy. |
void |
setMaxRocketNumber(int n)
Sets the maximum rocket number. |
void |
setMaxRocketPatchLength(int l)
Sets the maximum rocket patch length. |
void |
setMaxRocketPatchNumber(int p)
Sets the maximum rocket patch number. |
void |
setRocketStyleVariability(int var)
Sets the rocket style variability. |
Methods inherited from class com.sas.visuals.AnimationIconView |
---|
clone, fireAlarm, getAlarm, getAnimationIcon, isDecrement, isRunning, setAlarm, setAnimationIcon, setDecrement, setRunning, start, stop |
Methods inherited from class com.sas.visuals.IconView |
---|
computePreferredSize, getIcon, getInsets, paint, paint, setIcon, update |
Methods inherited from class com.sas.awt.Component |
---|
getMinimumSize |
Methods inherited from interface com.sas.visuals.IconInterface |
---|
getPreferredSize |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected FireworkIcon fireworkIcon
Constructor Detail |
---|
public Fireworks()
Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
com.sas.beans.Introspector
to
augment the automatically introspected information about this Fireworks object.
public static int getDefaultHeight()
setDefaultHeight(int)
public static int getDefaultWidth()
setDefaultWidth(int)
public static void setDefaultHeight(int newHeight)
newHeight
- the desired default height in pixelsgetDefaultHeight()
public static void setDefaultWidth(int newWidth)
newWidth
- the desired default width in pixelssetDefaultWidth(int)
public void addNotify()
addNotify
in class java.awt.Component
public void removeNotify()
removeNotify
in class java.awt.Component
public void propertyChanged(java.beans.PropertyChangeEvent e)
e
- the property event that changedprotected AnimationIconView createIconObject(AnimationIconView icon)
createIconObject
in class AnimationIconView
icon
- an AnimationIconView specifically a FireworkIcon to be cloned
public int getGravity()
setGravity(int)
,
FireworkIcon.getGravity()
public int getMaxRocketNumber()
setMaxRocketNumber(int)
,
FireworkIcon.getMaxRocketNumber()
public int getMaxRocketExplosionEnergy()
setMaxRocketExplosionEnergy(int)
,
FireworkIcon.getMaxRocketExplosionEnergy()
public int getMaxRocketPatchNumber()
setMaxRocketPatchNumber(int)
,
FireworkIcon.getMaxRocketPatchNumber()
public int getMaxRocketPatchLength()
setMaxRocketPatchLength(int)
,
FireworkIcon.getMaxRocketPatchLength()
public int getRocketStyleVariability()
ComponentVisualComponent.setPreferredSize(java.awt.Dimension)
,
FireworkIcon.getRocketStyleVariability()
public void setBounds(int x, int y, int width, int height)
setBounds
in interface VisualInterface
setBounds
in class ComponentVisualComponent
ComponentVisualComponent.setBounds(int, int, int, int)
public void setDefaultValues()
setDefaultValues
in interface VisualInterface
setDefaultValues
in interface com.sas.ComponentInterface
setDefaultValues
in class AnimationIconView
ComponentInterface.setDefaultValues()
public void setGravity(int g)
g
- the desired gravity int valuegetGravity()
,
FireworkIcon.setGravity(int)
public void setMaxRocketNumber(int n)
n
- maximum number of rockets to be painted at one timegetMaxRocketNumber()
,
FireworkIcon.setMaxRocketNumber(int)
public void setMaxRocketExplosionEnergy(int e)
e
- the desired maximum rocket explosion value. The higher the value, the greater
the explosive energy of the rockets.getMaxRocketExplosionEnergy()
,
FireworkIcon.setMaxRocketExplosionEnergy(int)
public void setMaxRocketPatchNumber(int p)
p
- value of the maximum rocket patch allowedgetMaxRocketPatchNumber()
,
FireworkIcon.setMaxRocketPatchNumber(int)
public void setMaxRocketPatchLength(int l)
l
- the desired maximum length of the rocket trailsgetMaxRocketPatchLength()
,
FireworkIcon.setMaxRocketPatchLength(int)
public void setRocketStyleVariability(int var)
var
- the value to determine the variability of the rockets painted.getRocketStyleVariability()
,
FireworkIcon.setRocketStyleVariability(int)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |