public class ProgramPanelSettings extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SHOW_PICTURES_EVER
Always show the pictures
|
static int |
SHOW_PICTURES_FOR_DURATION
Show the pictures for programs with selected duration
|
static int |
SHOW_PICTURES_FOR_PLUGINS
Show the pictures for selected plugins
|
static int |
SHOW_PICTURES_IN_TIME_RANGE
Show the pictures in time range
|
static int |
SHOW_PICTURES_NEVER
Show the pictures never
|
static int |
X_AXIS
Orientation Progressbar in X_AXIS
|
static int |
Y_AXIS
Orientation Progressbar in Y_AXIS
|
Constructor and Description |
---|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
int axis)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
String[] pluginIds)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
String[] pluginIds,
int axis)
Creates an instance of this class.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle)
Creates an instance of this class with the given values.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle,
int axis)
Creates an instance of this class with the given values.
|
Modifier and Type | Method and Description |
---|---|
int |
getAxis()
Gets the axis for the ProgramPanel.
|
int |
getDuration() |
int |
getPictureShowingType() |
int |
getPictureTimeRangeEnd() |
int |
getPictureTimeRangeStart() |
String[] |
getPluginIds() |
boolean |
isShowingOnlyDateAndTitle() |
boolean |
isShowingPictureDescription() |
boolean |
isShowingPictureEver() |
boolean |
isShowingPictureForDuration() |
boolean |
isShowingPictureForPlugins() |
boolean |
isShowingPictureInTimeRange() |
boolean |
isShowingPictureNever() |
void |
setShowOnlyDateAndTitle(boolean value)
Sets the value for the only date and title flag.
|
static boolean |
typeContainsType(int typeToCheck,
int containingType)
Checks if a given type to check contains a type.
|
public static final int SHOW_PICTURES_NEVER
public static final int SHOW_PICTURES_EVER
public static final int SHOW_PICTURES_IN_TIME_RANGE
public static final int SHOW_PICTURES_FOR_PLUGINS
public static final int SHOW_PICTURES_FOR_DURATION
public static final int X_AXIS
public static final int Y_AXIS
public ProgramPanelSettings(PluginPictureSettings settings, boolean showOnlyDateAndTitle, int axis)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.axis
- The axis for the ProgramPanel.public ProgramPanelSettings(PluginPictureSettings settings, boolean showOnlyDateAndTitle)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration)
type
- The picture showing type.timeRangeStart
- The time range start time.timeRangeEnd
- The time range end time.showOnlyDateAndTitle
- If the program panel should only contain date and title.showDescription
- If the picture description should be shown.duration
- The minimum duration of the programs the pictures should be shown for.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, int axis)
type
- The picture showing type.timeRangeStart
- The time range start time.timeRangeEnd
- The time range end time.showOnlyDateAndTitle
- If the program panel should only contain date and title.showDescription
- If the picture description should be shown.duration
- The minimum duration of the programs the pictures should be shown for.axis
- The axis for the progress bar of the program panel.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, String[] pluginIds)
type
- The picture showing type.timeRangeStart
- The time range start time.timeRangeEnd
- The time range end time.showOnlyDateAndTitle
- If the program panel should only contain date and title.showDescription
- If the picture description should be shown.pluginIds
- The ids of the plugins to show the pictures for.duration
- The minimum duration of the programs the pictures should be shown for.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, String[] pluginIds, int axis)
type
- The picture showing type.timeRangeStart
- The time range start time.timeRangeEnd
- The time range end time.showOnlyDateAndTitle
- If the program panel should only contain date and title.showDescription
- If the picture description should be shown.pluginIds
- The ids of the plugins to show the pictures for.duration
- The minimum duration of the programs the pictures should be shown for.axis
- The axis for the progress bar of the program panel.public boolean isShowingPictureInTimeRange()
public boolean isShowingPictureEver()
public boolean isShowingPictureNever()
public boolean isShowingPictureForPlugins()
public boolean isShowingPictureForDuration()
public boolean isShowingOnlyDateAndTitle()
public boolean isShowingPictureDescription()
public int getPictureShowingType()
public int getPictureTimeRangeStart()
public int getPictureTimeRangeEnd()
public int getDuration()
public String[] getPluginIds()
public static boolean typeContainsType(int typeToCheck, int containingType)
typeToCheck
- The type to check.containingType
- The type to which should the typeToCheck is to check for.public int getAxis()
public void setShowOnlyDateAndTitle(boolean value)
value
- The new value for the only date and tilte flag.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)