Package org.emrick.project.effect
Class Effect
java.lang.Object
org.emrick.project.effect.Effect
- All Implemented Interfaces:
Cloneable
,TimelineEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
private float
private Duration
private boolean
private boolean
private Duration
static EffectListener
private EffectList
private Color
long
private boolean
private LightingDisplay.Function
private GeneratedEffect
private int
int
private boolean
private float
private long
private float
private long
private ArrayList<Checkpoint>
private boolean
private GridShape[]
private int
private double
private Color
long
private Duration
private boolean
private boolean
private boolean
private boolean
private boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
boolean
double
getAngle()
float
getDelay()
long
int
int
getId()
float
long
float
long
int
getSize()
double
getSpeed()
long
int
getWidth()
int
hashCode()
boolean
boolean
boolean
isFade()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAngle
(double angle) void
setChaseSequence
(ArrayList<Color> chaseSequence) void
setColorVariance
(float colorVariance) void
void
setDirection
(boolean direction) void
setDO_DELAY
(boolean DO_DELAY) void
setDuration
(Duration duration) void
setEffectType
(EffectList effectType) void
setEndColor
(Color endColor) void
setEndTimeMSec
(long endTimeMSec) void
setFade
(boolean fade) void
setFunction
(LightingDisplay.Function function) void
setGeneratedEffect
(GeneratedEffect generatedEffect) void
setHeight
(int height) void
setId
(int id) void
setINSTANT_COLOR
(boolean INSTANT_COLOR) void
setMaxBrightness
(float maxBrightness) void
setMaxTime
(long maxTime) void
setMinBrightness
(float minBrightness) void
setMinTime
(long minTime) void
setNoiseCheckpoints
(ArrayList<Checkpoint> noiseCheckpoints) void
setSET_TIMEOUT
(boolean SET_TIMEOUT) void
void
setSize
(int size) void
setSpeed
(double speed) void
setStartColor
(Color startColor) void
setStartTimeMSec
(long startTimeMSec) void
setTimeout
(Duration timeout) void
setUpOrSide
(boolean upOrSide) void
setUSE_DURATION
(boolean USE_DURATION) void
setVaryBrightness
(boolean varyBrightness) void
setVaryColor
(boolean varyColor) void
setVaryTime
(boolean varyTime) void
setWidth
(int width) toString()
-
Field Details
-
effectListener
-
startTimeMSec
public long startTimeMSec -
endTimeMSec
public long endTimeMSec -
generatedEffect
-
startColor
-
endColor
-
delay
-
duration
-
timeout
-
speed
private double speed -
angle
private double angle -
effectType
-
id
public int id -
function
-
size
private int size -
chaseSequence
-
height
private int height -
width
private int width -
shapes
-
varyBrightness
private boolean varyBrightness -
varyColor
private boolean varyColor -
varyTime
private boolean varyTime -
fade
private boolean fade -
colorVariance
private float colorVariance -
minBrightness
private float minBrightness -
maxBrightness
private float maxBrightness -
maxTime
private long maxTime -
minTime
private long minTime -
noiseCheckpoints
-
USE_DURATION
private boolean USE_DURATION -
SET_TIMEOUT
private boolean SET_TIMEOUT -
DO_DELAY
private boolean DO_DELAY -
INSTANT_COLOR
private boolean INSTANT_COLOR -
upOrSide
private boolean upOrSide -
direction
private boolean direction
-
-
Constructor Details
-
Effect
public Effect(long startTimeMSec) -
Effect
-
-
Method Details
-
isVaryBrightness
public boolean isVaryBrightness() -
setVaryBrightness
public void setVaryBrightness(boolean varyBrightness) -
isVaryColor
public boolean isVaryColor() -
setVaryColor
public void setVaryColor(boolean varyColor) -
isVaryTime
public boolean isVaryTime() -
setVaryTime
public void setVaryTime(boolean varyTime) -
isFade
public boolean isFade() -
setFade
public void setFade(boolean fade) -
getColorVariance
public float getColorVariance() -
setColorVariance
public void setColorVariance(float colorVariance) -
getMinBrightness
public float getMinBrightness() -
setMinBrightness
public void setMinBrightness(float minBrightness) -
getMaxBrightness
public float getMaxBrightness() -
setMaxBrightness
public void setMaxBrightness(float maxBrightness) -
getMaxTime
public long getMaxTime() -
setMaxTime
public void setMaxTime(long maxTime) -
getMinTime
public long getMinTime() -
setMinTime
public void setMinTime(long minTime) -
getNoiseCheckpoints
-
setNoiseCheckpoints
-
setStartTimeMSec
public void setStartTimeMSec(long startTimeMSec) -
getShapes
-
setShapes
-
getSize
public int getSize() -
setSize
public void setSize(int size) -
getFunction
-
setFunction
-
calculateEndTimeMSec
public void calculateEndTimeMSec() -
getGeneratedEffect
-
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getChaseSequence
-
setChaseSequence
-
getAngle
public double getAngle() -
setAngle
public void setAngle(double angle) -
setGeneratedEffect
-
setEndTimeMSec
public void setEndTimeMSec(long endTimeMSec) -
getId
public int getId() -
setId
public void setId(int id) -
getEffectType
-
setEffectType
-
getStartTimeMSec
public long getStartTimeMSec() -
getEndTimeMSec
public long getEndTimeMSec() -
getStartColor
-
setStartColor
-
getEndColor
-
setEndColor
-
getDelay
-
setDelay
-
getDuration
-
setDuration
-
getTimeout
-
setTimeout
-
isUSE_DURATION
public boolean isUSE_DURATION() -
setUSE_DURATION
public void setUSE_DURATION(boolean USE_DURATION) -
isSET_TIMEOUT
public boolean isSET_TIMEOUT() -
setSET_TIMEOUT
public void setSET_TIMEOUT(boolean SET_TIMEOUT) -
isDO_DELAY
public boolean isDO_DELAY() -
setDO_DELAY
public void setDO_DELAY(boolean DO_DELAY) -
isINSTANT_COLOR
public boolean isINSTANT_COLOR() -
setINSTANT_COLOR
public void setINSTANT_COLOR(boolean INSTANT_COLOR) -
getSpeed
public double getSpeed() -
setSpeed
public void setSpeed(double speed) -
isUpOrSide
public boolean isUpOrSide() -
setUpOrSide
public void setUpOrSide(boolean upOrSide) -
isDirection
public boolean isDirection() -
setDirection
public void setDirection(boolean direction) -
toString
-
clone
-
makeDeepCopy
-
equals
-
hashCode
public int hashCode() -
getTimelineWidget
- Specified by:
getTimelineWidget
in interfaceTimelineEvent
-