public class ProgramPanelSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SHOW_CHANNEL_LOGO_NEVER
Channel logo is never shown for any program panels
|
static int |
SHOW_CHANNEL_LOGO_PLUGINS_CONTROL
Channel logo is shown for program panels a plugin has set
|
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,
boolean ignoreProgramImportance)
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,
java.lang.String[] pluginIds)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
boolean ignoreProgramImportance)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
boolean ignoreProgramImportance,
boolean showPictureBorder)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
int axis)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
int axis,
boolean ignoreProgramImportance)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
int axis,
boolean ignoreProgramImportance,
boolean showPictureBorder)
Creates an instance of this class.
|
ProgramPanelSettings(int type,
int timeRangeStart,
int timeRangeEnd,
boolean showOnlyDateAndTitle,
boolean showDescription,
int duration,
java.lang.String[] pluginIds,
int axis,
boolean ignoreProgramImportance,
boolean showPictureBorder,
boolean showChannelLogo)
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,
boolean ignoreProgramImportance)
Creates an instance of this class with the given values.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle,
boolean ignoreProgramImportance,
boolean showPictureBorder)
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.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle,
int axis,
boolean ignoreProgramImportance)
Creates an instance of this class with the given values.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle,
int axis,
boolean ignoreProgramImportance,
boolean showPictureBorder)
Creates an instance of this class with the given values.
|
ProgramPanelSettings(PluginPictureSettings settings,
boolean showOnlyDateAndTitle,
int axis,
boolean ignoreProgramImportance,
boolean showPictureBorder,
boolean showChannelLogo)
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() |
java.lang.String[] |
getPluginIds() |
static ProgramPanelSettings |
getShowOnlyDateAndTitleSettings()
Get ProgramPanelSettings that will only allow showing of date and title.
|
boolean |
isIgnoringProgramImportance()
Gets if the program importance should be ignored.
|
boolean |
isShowingChannelLogo()
Gets if the channel logog should be shown in front of the time.
|
boolean |
isShowingOnlyDateAndTitle() |
boolean |
isShowingPictureBorder()
Gets if the picture border should be painted.
|
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 SHOW_CHANNEL_LOGO_PLUGINS_CONTROL
public static final int SHOW_CHANNEL_LOGO_NEVER
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, int axis, boolean ignoreProgramImportance, boolean showPictureBorder)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.axis
- The axis for the ProgramPanel.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the picture border should be shown.public ProgramPanelSettings(PluginPictureSettings settings, boolean showOnlyDateAndTitle, int axis, boolean ignoreProgramImportance, boolean showPictureBorder, boolean showChannelLogo)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.axis
- The axis for the ProgramPanel.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the picture border should be shown.showChannelLogo
- If the channel logo should be shown.public ProgramPanelSettings(PluginPictureSettings settings, boolean showOnlyDateAndTitle, int axis, boolean ignoreProgramImportance)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.axis
- The axis for the ProgramPanel.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the picture border should be shown.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(PluginPictureSettings settings, boolean showOnlyDateAndTitle, boolean ignoreProgramImportance, boolean showPictureBorder)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the picture border should be shown.public ProgramPanelSettings(PluginPictureSettings settings, boolean showOnlyDateAndTitle, boolean ignoreProgramImportance)
settings
- The PluginPictureSettings to be used.showOnlyDateAndTitle
- If the program panel should only contain date and title.ignoreProgramImportance
- If the program importance should be ignored.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, boolean ignoreProgramImportance)
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.ignoreProgramImportance
- If the program importance should be ignored.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, java.lang.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, java.lang.String[] pluginIds, boolean ignoreProgramImportance, boolean showPictureBorder)
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.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the picture border should be shown.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, java.lang.String[] pluginIds, boolean ignoreProgramImportance)
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.ignoreProgramImportance
- If the program importance should be ignored.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, java.lang.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 ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, java.lang.String[] pluginIds, int axis, boolean ignoreProgramImportance)
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.ignoreProgramImportance
- If the program importance should be ignored.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, java.lang.String[] pluginIds, int axis, boolean ignoreProgramImportance, boolean showPictureBorder)
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.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the border around the pictures should be painted.public ProgramPanelSettings(int type, int timeRangeStart, int timeRangeEnd, boolean showOnlyDateAndTitle, boolean showDescription, int duration, java.lang.String[] pluginIds, int axis, boolean ignoreProgramImportance, boolean showPictureBorder, boolean showChannelLogo)
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.ignoreProgramImportance
- If the program importance should be ignored.showPictureBorder
- If the border around the pictures should be painted.showChannelLogo
- If the channel logo should be shown.public static ProgramPanelSettings getShowOnlyDateAndTitleSettings()
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 java.lang.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.public boolean isIgnoringProgramImportance()
public boolean isShowingPictureBorder()
public boolean isShowingChannelLogo()
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)