public class ProgramMenuItemUI extends BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
Constructor and Description |
---|
ProgramMenuItemUI(Program program,
TextAreaIcon channelName,
Icon icon,
boolean showStartTime,
boolean showDate,
boolean showIcon,
boolean showName,
int time)
Constructs the UI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor) |
protected void |
paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text) |
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, createUI, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, paint, paintMenuItem, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public ProgramMenuItemUI(Program program, TextAreaIcon channelName, Icon icon, boolean showStartTime, boolean showDate, boolean showIcon, boolean showName, int time)
program
- The program that is to show in the ProgramMenuItem.channelName
- The TextAreaIcon that contains the channel nameicon
- The channel icon.showStartTime
- The ProgramMenuItem should show the start time.showDate
- The ProgramMenuItem should show the date.showIcon
- The ProgramMenuItem should show the channel icon.showName
- The ProgramMenuItem should show the channel name.time
- The time of the time button.protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
paintBackground
in class BasicMenuItemUI
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)