|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.interpreter.EventFilters
public class EventFilters
Class containing the event filter settings
Field Summary | |
---|---|
static int |
DELAY_DEFAULT
Default delay |
static int |
DELAY_MAX
Maximum delay |
static int |
DELAY_MIN
Minimum delay |
static boolean |
ENABLED_DEFAULT
By default a filter is enabled |
static boolean |
PAUSE_DEFAULT
Default is not to pause |
static int |
PERIOD_DEFAULT
Default period |
static int |
PERIOD_MAX
Maximum period |
static int |
PERIOD_MIN
Minimum period |
Constructor Summary | |
---|---|
EventFilters(int eventNum)
Create a new event filter |
|
EventFilters(int eventNum,
boolean[] enabled,
int[] delays,
boolean[] pauses,
int[] periods)
Create a new event filter |
Method Summary | |
---|---|
void |
clearDelays()
Set all delays to default value |
void |
clearPauses()
Set all pauses to default value |
void |
disableAll()
Disable all events |
void |
enableAll()
Enable all events |
int[] |
getDelays()
Get an array of event delays |
boolean[] |
getEnabled()
Get an array of which events are enabled |
int |
getNum()
Get the number of events |
boolean[] |
getPauses()
Get an array of event pauses |
int[] |
getPeriods()
Get an array of event periods |
void |
resetPeriods()
Set all periods to default value |
void |
revertToDefaults()
Set the filter to default values |
void |
setDelays(int[] delays)
Set the delays |
void |
setEnabled(boolean[] enabled)
Set the enabled settings |
void |
setPauses(boolean[] pauses)
Set the pauses |
void |
setPeriods(int[] periods)
Set the periods |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean ENABLED_DEFAULT
public static final int DELAY_DEFAULT
public static final int DELAY_MIN
public static final int DELAY_MAX
public static final boolean PAUSE_DEFAULT
public static final int PERIOD_DEFAULT
public static final int PERIOD_MIN
public static final int PERIOD_MAX
Constructor Detail |
---|
public EventFilters(int eventNum, boolean[] enabled, int[] delays, boolean[] pauses, int[] periods)
eventNum
- The number of eventsenabled
- Which events are enableddelays
- The delays for each eventpauses
- The pauses for each eventperiods
- The periods for each eventpublic EventFilters(int eventNum)
eventNum
- The number of eventsMethod Detail |
---|
public void revertToDefaults()
public void enableAll()
public void disableAll()
public void clearDelays()
public void clearPauses()
public void resetPeriods()
public int getNum()
public boolean[] getEnabled()
public int[] getDelays()
public boolean[] getPauses()
public int[] getPeriods()
public void setEnabled(boolean[] enabled)
enabled
- The new settingspublic void setDelays(int[] delays)
delays
- The new delayspublic void setPauses(boolean[] pauses)
pauses
- The new pausespublic void setPeriods(int[] periods)
periods
- The new periods
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |