danger.ui
Class Style

java.lang.Object
  extended by danger.ui.Style
Direct Known Subclasses:
ClassicStyle


public class Style
extends Object

A Style object includes information about how to draw a View, including color, fonts, and drawing methods. The standard Style object contains the built-in look. You can change the look of Views on a per-View basis by either overriding the Style object to define different drawing methods, or using method calls to change colors and fonts.


Field Summary
static int APP_ALERT_BOTTOM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int APP_ALERT_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int APP_ALERT_TITLE_FONT
          Font attribute, for use with getFont(int).
static int APP_ALERT_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int APP_ALERT_TITLE_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int APP_ALERT_TITLE_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int APP_ALERT_TOP_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int APP_DIALOG_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int ATTRIBUTE_COLOR
          Attribute type returned by getAttributeType(int).
static int ATTRIBUTE_FONT
          Attribute type returned by getAttributeType(int).
static int ATTRIBUTE_GRADIENT
          Attribute type returned by getAttributeType(int).
static int BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int BATTERY_BAR_COLOR
          Color attribute, for use with getColor(int).
static int BATTERY_BAR_OVER_CHOOSER_COLOR
          Color attribute, for use with getColor(int).
static int BUTTON_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int BUTTON_CORNER_SIZE
          Deprecated. For internal use only.
static int BUTTON_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int CARET_COLOR
          Color attribute, for use with getColor(int).
static int CHECK_BOX_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int CHECK_BOX_HEIGHT
          Deprecated. Use getCheckBoxHeight() instead.
static int CHECK_BOX_WIDTH
          Deprecated. Use getCheckBoxWidth() instead.
static int CHOOSER_RING_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_DARK_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_DEFAULTAPP_DARK_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_DEFAULTAPP_LIGHT_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_DEFAULTAPP_MEDIUM_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_LIGHT_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_RING_MEDIUM_COLOR
          Color attribute, for use with getColor(int).
static int CHOOSER_SELECTED_RING_COLOR
          Color attribute, for use with getColor(int).
static int CONTROL_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int CONTROL_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int CURRENT_TAB_ITEM
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int CURRENT_TAB_ITEM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int CURRENT_TAB_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int DATE_EDITOR_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int DATE_EDITOR_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int DATE_PICKER_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int DATE_PICKER_WINDOW_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int DIALOG_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int DIALOG_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int DIALOG_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int DIALOG_TITLE_FONT
          Color attribute, for use with getColor(int).
static int DIALOG_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int DIALOG_TITLE_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int DIALOG_TITLE_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int DIRECTION_DOWN
          Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).
static int DIRECTION_LEFT
          Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).
static int DIRECTION_RIGHT
          Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).
static int DIRECTION_UP
          Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).
static int DISABLED_BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_CONTROL_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_CONTROL_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int DISABLED_FOREGROUND_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_LABEL_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_LABEL_FONT
          Font attribute, for use with getFont(int).
static int DISABLED_LABEL_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_MENU_FONT
          Font attribute, for use with getFont(int).
static int DISABLED_MENU_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_MENU_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_MENU_TEXT_OUTLINE_FILL_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_PICKER_ARROW_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_SECONDARY_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int DISABLED_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int DIVIDER_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_BOTTOM_MENU_ITEM_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int FOCUSED_CONTROL_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_CONTROL_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int FOCUSED_CONTROL_TEXT_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_FOREGROUND_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_LABEL_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_LABEL_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_LIST_ITEM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int FOCUSED_MENU_ITEM_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int FOCUSED_MENU_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_MENU_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_MENU_TEXT_OUTLINE_FILL_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_SECONDARY_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_TAB_ITEM
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int FOCUSED_TAB_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int FOCUSED_TOP_AND_BOTTOM_MENU_ITEM_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int FOCUSED_TOP_MENU_ITEM_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int FOREGROUND_COLOR
          Color attribute, for use with getColor(int).
static int FOREGROUND25_COLOR
          Deprecated.  
static int FOREGROUND50_COLOR
          Deprecated.  
static int FOREGROUND75_COLOR
          Deprecated.  
static int FRAME_COLOR
          Color attribute, for use with getColor(int).
static int ICON_PICKER_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int ICON_PICKER_SELECTION_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int ICON_PICKER_WINDOW_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int IMAGE_VIEW_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int LABEL_COLOR
          Color attribute, for use with getColor(int).
static int LABEL_FONT
          Font attribute, for use with getFont(int).
static int LABEL_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int LIGHT_SELECTED_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int LIGHT_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int LIST_SELECTION_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MARQUEE_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MARQUEE_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_BACKGROUND_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int MENU_FONT
          Font attribute, for use with getFont(int).
static int MENU_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_FRAME_BOTTOM_FLAT
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int MENU_FRAME_FLAT
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_FRAME_TOP_FLAT
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MENU_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int MENU_SHORTCUT_COLOR
          Color attribute, for use with getColor(int).
static int MENU_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int MENU_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int MENU_TEXT_OUTLINE_FILL_COLOR
          Color attribute, for use with getColor(int).
static int MENU_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int MONTH_VIEW_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MOVING_TAB_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int MOVING_TAB_ITEM
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int MOVING_TAB_ITEM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int MOVING_TAB_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int OUTLINED_SCROLL_ARROW_HEIGHT
          Deprecated. For internal use only.
static int OUTLINED_SCROLL_ARROW_WIDTH
          Deprecated. For internal use only.
static int PANE_COLOR
          Color attribute, for use with getColor(int).
static int PICKER_ARROW_COLOR
          Color attribute, for use with getColor(int).
static int PICKER_CORNER_SIZE
          Deprecated. For internal use only.
static int PICKER_WINDOW_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int POPUP_MENU_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int POPUP_MENU_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int RADIO_BUTTON_HEIGHT
          Deprecated. Use getRadioButtonHeight() instead.
static int RADIO_BUTTON_WIDTH
          Deprecated. Use getRadioButtonWidth() instead.
static int RING_TONE_PICKER_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int SCROLL_ARROW_HEIGHT
          Deprecated. Use getScrollArrowHeight() instead.
static int SCROLL_ARROW_WIDTH
          Deprecated. Use getScrollArrowWidth() instead.
static int SCROLL_BAR_THUMB_COLOR
          Color attribute, for use with getColor(int).
static int SECONDARY_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int SELECTION_BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int SIGNAL_STRENGTH_CHOOSER_COLOR
          Color attribute, for use with getColor(int).
static int SIGNAL_STRENGTH_CHOOSER_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SIGNAL_STRENGTH_COLOR
          Color attribute, for use with getColor(int).
static int SIGNAL_STRENGTH_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SLIDER_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int SLIDER_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int SLIDER_WINDOW_FRAME
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int SPLASH_SCREEN_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int SPLASH_SCREEN_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SPLASH_SCREEN_TEXT_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int SPLASH_SCREEN_TITLE_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int SPLASH_SCREEN_TITLE_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_DIALOG_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_DIALOG_TITLE_FONT
          Color attribute, for use with getColor(int).
static int SYSTEM_DIALOG_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_DIALOG_TITLE_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_DIALOG_TITLE_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_BOTTOM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int SYSTEM_ERROR_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_TITLE_FONT
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_TITLE_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_TITLE_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_TITLE_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int SYSTEM_ERROR_TOP_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int TAB_FRAME_COLOR
          Color attribute, for use with getColor(int).
static int TAB_ITEM
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int TAB_ITEM_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int TAB_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int TEXT_COLOR
          Color attribute, for use with getColor(int).
static int TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int TEXT_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_BACKGROUND
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int TITLE_BAR_BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_CLOCK_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_CLOCK_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_GRADIENT
          Gradient attribute, for use with getGradient(int).
static int TITLE_BAR_OVER_CHOOSER_BACKGROUND_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_OVER_CHOOSER_CLOCK_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_OVER_CHOOSER_CLOCK_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_OVER_CHOOSER_PILL_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_OVER_CHOOSER_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_OVER_CHOOSER_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_PILL
          Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).
static int TITLE_BAR_PILL_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_TEXT_COLOR
          Color attribute, for use with getColor(int).
static int TITLE_BAR_TEXT_OUTLINE_COLOR
          Color attribute, for use with getColor(int).
static int WINDOW_SHADOW_COLOR
          Color attribute, for use with getColor(int).
static int WINDOW_SHADOW_FRAME_COLOR
          Color attribute, for use with getColor(int).
 
Constructor Summary
Style()
          Construct a Style object.
Style(String s)
          Construct a style based on a string describing the colors and fonts to use.
Style(Style style)
          Construct a Style which is a copy of the specified Style.
 
Method Summary
 int attributeCount()
          Get the number of attributes in the style.
static void drawArrow(Pen pen, int x, int y, int width, int height, int direction)
          Draw a an arrow outline using the current pen color.
static void drawArrow(Pen pen, Style style, int x, int y, int width, int height, boolean focused, int direction)
          Draw an arrow usually used for indicating something can scroll.
 void drawButtonBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for BUTTON_BACKGROUND.
 void drawButtonFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for BUTTON_FRAME.
static void drawCheckBox(Pen pen, Style style, int x, int y, boolean enabled, boolean focused, boolean on)
          Draw a check box.
static void drawCheckBox(Pen pen, Style style, int x, int y, boolean enabled, boolean focused, int value)
          Draw a check box.
 void drawCheckBoxBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for CHECK_BOX_BACKGROUND.
static void drawCheckMark(Pen pen, int color, int x1, int y1, int x2, int y2, int x3, int y3, int thickness)
          Draw a check mark.
 void drawCurrentTabItem(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for CURRENT_TAB_ITEM.
 void drawDateEditorBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_EDITOR_BACKGROUND.
 void drawDatePickerFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_PICKER_FRAME.
 void drawDatePickerWindowFrame(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_PICKER_WINDOW_FRAME.
 void drawDialogBackground(Pen pen, Style style, Rect rect)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DIALOG_BACKGROUND.
 void drawDialogFrame(Pen pen, Style style, Rect rect, DialogWindow window)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DIALOG_FRAME.
 void drawElement(int type, Pen pen, View view, Rect rect)
          Draw an Style element.
 void drawFocusedMenuItemBackground(Pen pen, Style style, Rect rect, View view, int cornerOptions)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for FOCUSED_MENU_ITEM_BACKGROUND.
 void drawFocusedTabItem(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for FOCUSED_TAB_ITEM.
 void drawIconPickerFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_FRAME.
 void drawIconPickerSelectionBackground(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_SELECTION_BACKGROUND.
 void drawIconPickerWindowFrame(Pen pen, Style style, Rect rect, View view, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_WINDOW_FRAME.
 void drawImageViewFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for IMAGE_VIEW_FRAME.
 void drawListSelectionBackground(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for LIST_SELECTION_BACKGROUND.
 void drawMarqueeBackground(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MARQUEE_BACKGROUND.
 void drawMarqueeFrame(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MARQUEE_FRAME.
 void drawMenuBackground(Pen pen, Style style, Rect rect, boolean topIsFlat, boolean bottomIsFlat)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MENU_BACKGROUND.
 void drawMenuFrame(Pen pen, Style style, Rect rect, View view, boolean topIsFlat, boolean bottomIsFlat)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MENU_FRAME.
 void drawMonthViewBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MONTH_VIEW_BACKGROUND.
 void drawMovingTabItem(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MOVING_TAB_ITEM.
static void drawOutlinedArrow(Pen pen, Style style, int x, int y, int width, int height, int direction)
          Draw an arrow with an outline for use against possibly black backgrounds.
static void drawPickerArrows(Pen pen, Style style, int x, int y, boolean focused)
          Draw double arrows suitable for a picker widget.
 void drawPickerWindowFrame(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for PICKER_WINDOW_FRAME.
static void drawPopupArrows(Pen pen, Style style, int x, int y, int width, int height, boolean focused)
          Draw double arrows suitable for a popup menu.
 void drawPopupMenuBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for POPUP_MENU_BACKGROUND.
 void drawPopupMenuFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for POPUP_MENU_FRAME.
static void drawRadioButton(Pen pen, Style style, int x, int y, boolean enabled, boolean focused, boolean on)
          Draw a radio button.
 void drawRingtonePickerFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for RING_TONE_PICKER_FRAME.
static void drawRoundedBox(Pen pen, Style style, int left, int top, int right, int bottom, boolean enabled, boolean focused, int cornerSize, boolean hasFrame)
          Draw a rounded box.
static void drawRoundedBox(Pen pen, Style style, int left, int top, int right, int bottom, boolean enabled, boolean focused, int cornerSize, boolean hasFrame, boolean clearBackground)
          Draw a rounded box.
static void drawScrollDownArrow(Pen pen, Style style, int width, int height)
          Draw a down arrow usually used for indicating something can scroll.
static void drawScrollUpArrow(Pen pen, Style style, int width, int y)
          Draw an up arrow usually used for indicating something can scroll.
 void drawSliderBackground(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_BACKGROUND.
 void drawSliderFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, boolean transparent)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_FRAME.
 void drawSliderWindowFrame(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_WINDOW_FRAME.
 void drawTabItem(Pen pen, Style style, Rect rect, View view)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TAB_ITEM.
 void drawTitleBarBackground(Pen pen, Style style, Rect rect, TitleBar titleBar)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TITLE_BAR_BACKGROUND.
 void drawTitleBarPill(Pen pen, Style style, Rect rect)
          Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TITLE_BAR_PILL.
 void drawViewFrame(Pen pen, Style style, Rect rect, boolean enabled, boolean focused, int arcSize, boolean hasFrame, boolean clearBackground)
          Draw a view frame.
static void fillArrow(Pen pen, int x, int y, int width, int height, int direction)
          Draw a filled arrow using the current pen color.
 String getAttributeName(int attribute)
          Get the name of the numbered attribute.
 int getAttributeType(int attribute)
          Get the type of the numbered attribute.
static Style[] getAvailableStyles()
          Get an array of the currently available styles.
 int getBackgroundColor(boolean focused)
          Get the background color.
 int getBackgroundColor(boolean enabled, boolean focused)
          Get the background color.
static int getCheckBoxHeight()
          Get the height of check boxes.
static int getCheckBoxWidth()
          Get the width of check boxes.
 int getColor(int attribute)
          Get the color to use for the specified attribute.
static Style getDefaultStyle()
          Return the default style, which is the default setting for the system style.
 Font getFont(int attribute)
          Get the font to use for the specified attribute.
 int getForegroundColor(boolean focused)
          Get the foreground color.
 int getForegroundColor(boolean enabled, boolean focused)
          Get the foreground color.
 int getFrameColor(boolean focused)
          Get the frame color.
 int getFrameColor(boolean enabled, boolean focused)
          Get the frame color.
 int[] getGradient(int attribute)
          Get the gradient to use for the specified attribute.
 int getLabelColor(boolean focused)
          Get the label color.
 int getLabelColor(boolean enabled, boolean focused)
          Get the label color.
 Font getLabelFont(boolean enabled)
          Get the label font.
 int getLabelOutlineColor(boolean focused)
          Get the label outline color.
 int getLabelOutlineColor(boolean enabled, boolean focused)
          Get the label outline color.
 int getLightTextColor(boolean selected)
          Get the light text color.
 Font getMenuFont(boolean enabled)
          Get the menu font.
 int getMenuTextColor(boolean focused)
          Get the menu text color.
 int getMenuTextColor(boolean enabled, boolean focused)
          Get the menu text color.
 int getMenuTextOutlineColor(boolean focused)
          Get the menu text outline color.
 int getMenuTextOutlineColor(boolean enabled, boolean focused)
          Get the menu text outline color.
 int getMenuTextOutlineFillColor(boolean focused)
          Get the menu text outline fill color.
 int getMenuTextOutlineFillColor(boolean enabled, boolean focused)
          Get the menu text outline fill color.
 String getName()
          Get the name of the Style.
static int getRadioButtonHeight()
          Get the height of radio buttons.
static int getRadioButtonWidth()
          Get the width of radio buttons.
static int getScrollArrowHeight()
          Get the height of the scroll arrows used in the menus.
static int getScrollArrowWidth()
          Get the width of the scroll arrows used in the menus.
 int getSecondaryFrameColor(boolean enabled, boolean focused)
          Get the secondary frame color.
 int getShadowColor(boolean focused)
          Get the shadow color.
 int getShadowColor(boolean enabled, boolean focused)
          Get the shadow color.
static Style getSystemStyle()
          Return the current system style, which is used to draw all Views if no other style is specified.
 int getTextColor(boolean focused)
          Get the text color.
 int getTextColor(boolean enabled, boolean focused)
          Get the text color.
 int getTextOutlineColor(boolean focused)
          Get the text outline color.
 int getTextOutlineColor(boolean enabled, boolean focused)
          Get the text outline color.
static void registerForChanges(Listener listener)
          Register to receive an event when the system style changes.
 void setColor(int attribute, int color)
          Set the color to use for the specified attribute.
 void setFont(int attribute, Font font)
          Set the font to use for the specified attribute.
 void setGradient(int attribute, int[] gradient)
          Set the gradient to use for the specified attribute.
 void setImmutable()
          Specify that this style cannot be changed.
static void unRegisterForChanges(Listener listener)
          Unregister as a listener for style changed events, as set by registerForChanges(danger.app.Listener).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKGROUND_COLOR

public static final int BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOREGROUND_COLOR

public static final int FOREGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FRAME_COLOR

public static final int FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

LABEL_COLOR

public static final int LABEL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SECONDARY_FRAME_COLOR

public static final int SECONDARY_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SHADOW_COLOR

public static final int SHADOW_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TEXT_COLOR

public static final int TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TEXT_OUTLINE_COLOR

public static final int TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_BACKGROUND_COLOR

public static final int DISABLED_BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_FOREGROUND_COLOR

public static final int DISABLED_FOREGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_FRAME_COLOR

public static final int DISABLED_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_LABEL_COLOR

public static final int DISABLED_LABEL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_SECONDARY_FRAME_COLOR

public static final int DISABLED_SECONDARY_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_SHADOW_COLOR

public static final int DISABLED_SHADOW_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_TEXT_COLOR

public static final int DISABLED_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_TEXT_OUTLINE_COLOR

public static final int DISABLED_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_BACKGROUND_COLOR

public static final int FOCUSED_BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_FOREGROUND_COLOR

public static final int FOCUSED_FOREGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_FRAME_COLOR

public static final int FOCUSED_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_LABEL_COLOR

public static final int FOCUSED_LABEL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_SECONDARY_FRAME_COLOR

public static final int FOCUSED_SECONDARY_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_SHADOW_COLOR

public static final int FOCUSED_SHADOW_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_TEXT_COLOR

public static final int FOCUSED_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_TEXT_OUTLINE_COLOR

public static final int FOCUSED_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

LIGHT_TEXT_COLOR

public static final int LIGHT_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

LIGHT_SELECTED_TEXT_COLOR

public static final int LIGHT_SELECTED_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CARET_COLOR

public static final int CARET_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIVIDER_COLOR

public static final int DIVIDER_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

PANE_COLOR

public static final int PANE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SCROLL_BAR_THUMB_COLOR

public static final int SCROLL_BAR_THUMB_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SELECTION_BACKGROUND_COLOR

public static final int SELECTION_BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIALOG_TITLE_TEXT_COLOR

public static final int DIALOG_TITLE_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIALOG_TITLE_FRAME_COLOR

public static final int DIALOG_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIALOG_TITLE_OUTLINE_COLOR

public static final int DIALOG_TITLE_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIALOG_TITLE_FONT

public static final int DIALOG_TITLE_FONT
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DIALOG_FRAME_COLOR

public static final int DIALOG_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

APP_DIALOG_TITLE_FRAME_COLOR

public static final int APP_DIALOG_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_DIALOG_TITLE_TEXT_COLOR

public static final int SYSTEM_DIALOG_TITLE_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_DIALOG_TITLE_FRAME_COLOR

public static final int SYSTEM_DIALOG_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_DIALOG_TITLE_OUTLINE_COLOR

public static final int SYSTEM_DIALOG_TITLE_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_DIALOG_TITLE_FONT

public static final int SYSTEM_DIALOG_TITLE_FONT
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_DIALOG_FRAME_COLOR

public static final int SYSTEM_DIALOG_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_ERROR_TITLE_TEXT_COLOR

public static final int SYSTEM_ERROR_TITLE_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_ERROR_TITLE_FRAME_COLOR

public static final int SYSTEM_ERROR_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_ERROR_TITLE_OUTLINE_COLOR

public static final int SYSTEM_ERROR_TITLE_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_ERROR_TITLE_FONT

public static final int SYSTEM_ERROR_TITLE_FONT
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SYSTEM_ERROR_FRAME_COLOR

public static final int SYSTEM_ERROR_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

WINDOW_SHADOW_COLOR

public static final int WINDOW_SHADOW_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

WINDOW_SHADOW_FRAME_COLOR

public static final int WINDOW_SHADOW_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SPLASH_SCREEN_TEXT_COLOR

public static final int SPLASH_SCREEN_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

SPLASH_SCREEN_TEXT_OUTLINE_COLOR

public static final int SPLASH_SCREEN_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOREGROUND25_COLOR

public static final int FOREGROUND25_COLOR
Deprecated. 
See Also:
Constant Field Values

FOREGROUND50_COLOR

public static final int FOREGROUND50_COLOR
Deprecated. 
See Also:
Constant Field Values

FOREGROUND75_COLOR

public static final int FOREGROUND75_COLOR
Deprecated. 
See Also:
Constant Field Values

CHOOSER_RING_COLOR

public static final int CHOOSER_RING_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_SELECTED_RING_COLOR

public static final int CHOOSER_SELECTED_RING_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_BACKGROUND_COLOR

public static final int TITLE_BAR_BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_BACKGROUND_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_BACKGROUND_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_PILL_COLOR

public static final int TITLE_BAR_PILL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_PILL_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_PILL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_TEXT_COLOR

public static final int TITLE_BAR_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_TEXT_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_TEXT_OUTLINE_COLOR

public static final int TITLE_BAR_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_TEXT_OUTLINE_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_CLOCK_COLOR

public static final int TITLE_BAR_CLOCK_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_CLOCK_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_CLOCK_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_CLOCK_OUTLINE_COLOR

public static final int TITLE_BAR_CLOCK_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_OVER_CHOOSER_CLOCK_OUTLINE_COLOR

public static final int TITLE_BAR_OVER_CHOOSER_CLOCK_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_FRAME_COLOR

public static final int MENU_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_SHADOW_COLOR

public static final int MENU_SHADOW_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_SHORTCUT_COLOR

public static final int MENU_SHORTCUT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

LABEL_FONT

public static final int LABEL_FONT
Font attribute, for use with getFont(int).

See Also:
Constant Field Values

DISABLED_LABEL_FONT

public static final int DISABLED_LABEL_FONT
Font attribute, for use with getFont(int).

See Also:
Constant Field Values

MENU_FONT

public static final int MENU_FONT
Font attribute, for use with getFont(int).

See Also:
Constant Field Values

DISABLED_MENU_FONT

public static final int DISABLED_MENU_FONT
Font attribute, for use with getFont(int).

See Also:
Constant Field Values

APP_ALERT_TITLE_TEXT_COLOR

public static final int APP_ALERT_TITLE_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

APP_ALERT_TITLE_FRAME_COLOR

public static final int APP_ALERT_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

APP_ALERT_TITLE_OUTLINE_COLOR

public static final int APP_ALERT_TITLE_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

APP_ALERT_TITLE_FONT

public static final int APP_ALERT_TITLE_FONT
Font attribute, for use with getFont(int).

See Also:
Constant Field Values

APP_ALERT_FRAME_COLOR

public static final int APP_ALERT_FRAME_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_DARK_COLOR

public static final int CHOOSER_RING_DARK_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_MEDIUM_COLOR

public static final int CHOOSER_RING_MEDIUM_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_LIGHT_COLOR

public static final int CHOOSER_RING_LIGHT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_DEFAULTAPP_DARK_COLOR

public static final int CHOOSER_RING_DEFAULTAPP_DARK_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_DEFAULTAPP_MEDIUM_COLOR

public static final int CHOOSER_RING_DEFAULTAPP_MEDIUM_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

CHOOSER_RING_DEFAULTAPP_LIGHT_COLOR

public static final int CHOOSER_RING_DEFAULTAPP_LIGHT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

LABEL_OUTLINE_COLOR

public static final int LABEL_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_LABEL_OUTLINE_COLOR

public static final int DISABLED_LABEL_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_LABEL_OUTLINE_COLOR

public static final int FOCUSED_LABEL_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_TEXT_COLOR

public static final int MENU_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_TEXT_OUTLINE_COLOR

public static final int MENU_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

MENU_TEXT_OUTLINE_FILL_COLOR

public static final int MENU_TEXT_OUTLINE_FILL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_MENU_TEXT_COLOR

public static final int DISABLED_MENU_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_MENU_TEXT_OUTLINE_COLOR

public static final int DISABLED_MENU_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

DISABLED_MENU_TEXT_OUTLINE_FILL_COLOR

public static final int DISABLED_MENU_TEXT_OUTLINE_FILL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_MENU_TEXT_COLOR

public static final int FOCUSED_MENU_TEXT_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_MENU_TEXT_OUTLINE_COLOR

public static final int FOCUSED_MENU_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

FOCUSED_MENU_TEXT_OUTLINE_FILL_COLOR

public static final int FOCUSED_MENU_TEXT_OUTLINE_FILL_COLOR
Color attribute, for use with getColor(int).

See Also:
Constant Field Values

TITLE_BAR_GRADIENT

public static final int TITLE_BAR_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

MENU_BACKGROUND_GRADIENT

public static final int MENU_BACKGROUND_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

DATE_EDITOR_GRADIENT

public static final int DATE_EDITOR_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

APP_ALERT_TOP_GRADIENT

public static final int APP_ALERT_TOP_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

APP_ALERT_BOTTOM_GRADIENT

public static final int APP_ALERT_BOTTOM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

SYSTEM_ERROR_TOP_GRADIENT

public static final int SYSTEM_ERROR_TOP_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

SYSTEM_ERROR_BOTTOM_GRADIENT

public static final int SYSTEM_ERROR_BOTTOM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

CONTROL_GRADIENT

public static final int CONTROL_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_CONTROL_GRADIENT

public static final int FOCUSED_CONTROL_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

DISABLED_CONTROL_GRADIENT

public static final int DISABLED_CONTROL_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

SIGNAL_STRENGTH_COLOR

public static final int SIGNAL_STRENGTH_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SIGNAL_STRENGTH_OUTLINE_COLOR

public static final int SIGNAL_STRENGTH_OUTLINE_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SIGNAL_STRENGTH_CHOOSER_COLOR

public static final int SIGNAL_STRENGTH_CHOOSER_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SIGNAL_STRENGTH_CHOOSER_OUTLINE_COLOR

public static final int SIGNAL_STRENGTH_CHOOSER_OUTLINE_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SPLASH_SCREEN_TITLE_TEXT_COLOR

public static final int SPLASH_SCREEN_TITLE_TEXT_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SPLASH_SCREEN_TITLE_TEXT_OUTLINE_COLOR

public static final int SPLASH_SCREEN_TITLE_TEXT_OUTLINE_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_LIST_ITEM_GRADIENT

public static final int FOCUSED_LIST_ITEM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

BATTERY_BAR_COLOR

public static final int BATTERY_BAR_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

BATTERY_BAR_OVER_CHOOSER_COLOR

public static final int BATTERY_BAR_OVER_CHOOSER_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

TAB_FRAME_COLOR

public static final int TAB_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

MOVING_TAB_FRAME_COLOR

public static final int MOVING_TAB_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

TAB_ITEM_GRADIENT

public static final int TAB_ITEM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

CURRENT_TAB_ITEM_GRADIENT

public static final int CURRENT_TAB_ITEM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

MOVING_TAB_ITEM_GRADIENT

public static final int MOVING_TAB_ITEM_GRADIENT
Gradient attribute, for use with getGradient(int).

Since:
4.0
See Also:
Constant Field Values

CONTROL_FRAME_COLOR

public static final int CONTROL_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_CONTROL_FRAME_COLOR

public static final int FOCUSED_CONTROL_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

DISABLED_CONTROL_FRAME_COLOR

public static final int DISABLED_CONTROL_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

PICKER_ARROW_COLOR

public static final int PICKER_ARROW_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

DISABLED_PICKER_ARROW_COLOR

public static final int DISABLED_PICKER_ARROW_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

TEXT_SHADOW_COLOR

public static final int TEXT_SHADOW_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

SPLASH_SCREEN_TEXT_SHADOW_COLOR

public static final int SPLASH_SCREEN_TEXT_SHADOW_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_CONTROL_TEXT_SHADOW_COLOR

public static final int FOCUSED_CONTROL_TEXT_SHADOW_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

TAB_TEXT_COLOR

public static final int TAB_TEXT_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

CURRENT_TAB_TEXT_COLOR

public static final int CURRENT_TAB_TEXT_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_TAB_TEXT_COLOR

public static final int FOCUSED_TAB_TEXT_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

MOVING_TAB_TEXT_COLOR

public static final int MOVING_TAB_TEXT_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

MENU_TITLE_FRAME_COLOR

public static final int MENU_TITLE_FRAME_COLOR
Color attribute, for use with getColor(int).

Since:
4.0
See Also:
Constant Field Values

ATTRIBUTE_COLOR

public static final int ATTRIBUTE_COLOR
Attribute type returned by getAttributeType(int).

See Also:
Constant Field Values

ATTRIBUTE_FONT

public static final int ATTRIBUTE_FONT
Attribute type returned by getAttributeType(int).

See Also:
Constant Field Values

ATTRIBUTE_GRADIENT

public static final int ATTRIBUTE_GRADIENT
Attribute type returned by getAttributeType(int).

Since:
4.0
See Also:
Constant Field Values

BUTTON_CORNER_SIZE

public static final int BUTTON_CORNER_SIZE
Deprecated. For internal use only.
See Also:
Constant Field Values

PICKER_CORNER_SIZE

public static final int PICKER_CORNER_SIZE
Deprecated. For internal use only.
See Also:
Constant Field Values

DIRECTION_UP

public static final int DIRECTION_UP
Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).

See Also:
Constant Field Values

DIRECTION_DOWN

public static final int DIRECTION_DOWN
Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).

See Also:
Constant Field Values

DIRECTION_LEFT

public static final int DIRECTION_LEFT
Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).

See Also:
Constant Field Values

DIRECTION_RIGHT

public static final int DIRECTION_RIGHT
Direction of arrow, for use with drawArrow(danger.ui.Pen, int, int, int, int, int).

See Also:
Constant Field Values

SCROLL_ARROW_WIDTH

public static final int SCROLL_ARROW_WIDTH
Deprecated. Use getScrollArrowWidth() instead.
See Also:
Constant Field Values

SCROLL_ARROW_HEIGHT

public static final int SCROLL_ARROW_HEIGHT
Deprecated. Use getScrollArrowHeight() instead.
See Also:
Constant Field Values

OUTLINED_SCROLL_ARROW_WIDTH

public static final int OUTLINED_SCROLL_ARROW_WIDTH
Deprecated. For internal use only.
See Also:
Constant Field Values

OUTLINED_SCROLL_ARROW_HEIGHT

public static final int OUTLINED_SCROLL_ARROW_HEIGHT
Deprecated. For internal use only.
See Also:
Constant Field Values

CHECK_BOX_WIDTH

public static final int CHECK_BOX_WIDTH
Deprecated. Use getCheckBoxWidth() instead.
See Also:
Constant Field Values

CHECK_BOX_HEIGHT

public static final int CHECK_BOX_HEIGHT
Deprecated. Use getCheckBoxHeight() instead.
See Also:
Constant Field Values

RADIO_BUTTON_WIDTH

public static final int RADIO_BUTTON_WIDTH
Deprecated. Use getRadioButtonWidth() instead.
See Also:
Constant Field Values

RADIO_BUTTON_HEIGHT

public static final int RADIO_BUTTON_HEIGHT
Deprecated. Use getRadioButtonHeight() instead.
See Also:
Constant Field Values

BUTTON_FRAME

public static final int BUTTON_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

BUTTON_BACKGROUND

public static final int BUTTON_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

DATE_PICKER_FRAME

public static final int DATE_PICKER_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

ICON_PICKER_FRAME

public static final int ICON_PICKER_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

IMAGE_VIEW_FRAME

public static final int IMAGE_VIEW_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

POPUP_MENU_FRAME

public static final int POPUP_MENU_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

POPUP_MENU_BACKGROUND

public static final int POPUP_MENU_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

RING_TONE_PICKER_FRAME

public static final int RING_TONE_PICKER_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

SLIDER_FRAME

public static final int SLIDER_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

SLIDER_BACKGROUND

public static final int SLIDER_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

DIALOG_BACKGROUND

public static final int DIALOG_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MENU_BACKGROUND

public static final int MENU_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

DIALOG_FRAME

public static final int DIALOG_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

TITLE_BAR_BACKGROUND

public static final int TITLE_BAR_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

TITLE_BAR_PILL

public static final int TITLE_BAR_PILL
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MONTH_VIEW_BACKGROUND

public static final int MONTH_VIEW_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

ICON_PICKER_WINDOW_FRAME

public static final int ICON_PICKER_WINDOW_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MENU_FRAME

public static final int MENU_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MENU_FRAME_FLAT

public static final int MENU_FRAME_FLAT
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MENU_FRAME_TOP_FLAT

public static final int MENU_FRAME_TOP_FLAT
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MENU_FRAME_BOTTOM_FLAT

public static final int MENU_FRAME_BOTTOM_FLAT
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

SLIDER_WINDOW_FRAME

public static final int SLIDER_WINDOW_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

DATE_PICKER_WINDOW_FRAME

public static final int DATE_PICKER_WINDOW_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

PICKER_WINDOW_FRAME

public static final int PICKER_WINDOW_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_MENU_ITEM_BACKGROUND

public static final int FOCUSED_MENU_ITEM_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MARQUEE_BACKGROUND

public static final int MARQUEE_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

LIST_SELECTION_BACKGROUND

public static final int LIST_SELECTION_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

DATE_EDITOR_BACKGROUND

public static final int DATE_EDITOR_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

CHECK_BOX_BACKGROUND

public static final int CHECK_BOX_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

ICON_PICKER_SELECTION_BACKGROUND

public static final int ICON_PICKER_SELECTION_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MARQUEE_FRAME

public static final int MARQUEE_FRAME
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_TOP_MENU_ITEM_BACKGROUND

public static final int FOCUSED_TOP_MENU_ITEM_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_BOTTOM_MENU_ITEM_BACKGROUND

public static final int FOCUSED_BOTTOM_MENU_ITEM_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_TOP_AND_BOTTOM_MENU_ITEM_BACKGROUND

public static final int FOCUSED_TOP_AND_BOTTOM_MENU_ITEM_BACKGROUND
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

TAB_ITEM

public static final int TAB_ITEM
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

FOCUSED_TAB_ITEM

public static final int FOCUSED_TAB_ITEM
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

CURRENT_TAB_ITEM

public static final int CURRENT_TAB_ITEM
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values

MOVING_TAB_ITEM

public static final int MOVING_TAB_ITEM
Element type for use with drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect).

Since:
4.0
See Also:
Constant Field Values
Constructor Detail

Style

public Style(Style style)
Construct a Style which is a copy of the specified Style.

Parameters:
style - the style to make a copy of.

Style

public Style()
Construct a Style object.


Style

public Style(String s)
Construct a style based on a string describing the colors and fonts to use.

Method Detail

getColor

public int getColor(int attribute)
Get the color to use for the specified attribute.

Parameters:
attribute - one of the defined attribute constants, for example, FOCUSED_FRAME_COLOR, FRAME_COLOR, etc.

getFont

public Font getFont(int attribute)
Get the font to use for the specified attribute.

Parameters:
attribute - one of the defined attribute constants, for example, LABEL_FONT, MENU_FONT, etc.

getGradient

public int[] getGradient(int attribute)
Get the gradient to use for the specified attribute. The gradient is in the form used for Pen.fillSplitGradientRect(Rect,int,int,int,int[]).

Parameters:
attribute - one of the defined attribute constants, for example, FOCUSED_CONTROL_GRADIENT, CONTROL_GRADIENT, etc.
Since:
4.0

setColor

public void setColor(int attribute,
                     int color)
Set the color to use for the specified attribute.

Parameters:
attribute - one of the defined attribute constants, for example, FOCUSED_FRAME_COLOR, FRAME_COLOR, etc.
color - the color to use.

setFont

public void setFont(int attribute,
                    Font font)
Set the font to use for the specified attribute.

Parameters:
attribute - one of the defined attribute constants, for example, LABEL_FONT, MENU_FONT, etc.
font - the color to use.

setGradient

public void setGradient(int attribute,
                        int[] gradient)
Set the gradient to use for the specified attribute.

Parameters:
attribute - one of the defined attribute constants, for example, FOCUSED_CONTROL_GRADIENT, CONTROL_GRADIENT, etc.
gradient - the gradient to use. The gradient should be in the form used for Pen.fillSplitGradientRect(Rect,int,int,int,int[]).
Since:
4.0

getName

public String getName()
Get the name of the Style. Currently this isn't used for anything, and this base class implementation returns "default".


getBackgroundColor

public int getBackgroundColor(boolean focused)
Get the background color. Equivalent to getColor(int) with either FOCUSED_BACKGROUND_COLOR or BACKGROUND_COLOR.

Parameters:
focused - whether to get the focused background color.

getBackgroundColor

public int getBackgroundColor(boolean enabled,
                              boolean focused)
Get the background color. Equivalent to getColor(int) with one of FOCUSED_BACKGROUND_COLOR, BACKGROUND_COLOR, DISABLED_BACKGROUND_COLOR.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getForegroundColor

public int getForegroundColor(boolean focused)
Get the foreground color. Equivalent to getColor(int) with one of FOCUSED_FOREGROUND_COLOR, FOREGROUND_COLOR.

Parameters:
focused - whether to get the focused color.

getForegroundColor

public int getForegroundColor(boolean enabled,
                              boolean focused)
Get the foreground color. Equivalent to getColor(int) with one of FOCUSED_FOREGROUND_COLOR, DISABLED_FOREGROUND_COLOR, FOREGROUND_COLOR.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getFrameColor

public int getFrameColor(boolean focused)
Get the frame color. Equivalent to getColor(int) with one of FOCUSED_FRAME_COLOR, FRAME_COLOR.

Parameters:
focused - whether to get the focused color.

getFrameColor

public int getFrameColor(boolean enabled,
                         boolean focused)
Get the frame color. Equivalent to getColor(int) with one of FOCUSED_FRAME_COLOR, DISABLED_FRAME_COLOR, FRAME_COLOR.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getSecondaryFrameColor

public int getSecondaryFrameColor(boolean enabled,
                                  boolean focused)
Get the secondary frame color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getShadowColor

public int getShadowColor(boolean focused)
Get the shadow color.

Parameters:
focused - whether to get the focused color.

getShadowColor

public int getShadowColor(boolean enabled,
                          boolean focused)
Get the shadow color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getTextColor

public int getTextColor(boolean focused)
Get the text color.

Parameters:
focused - whether to get the focused color.

getTextColor

public int getTextColor(boolean enabled,
                        boolean focused)
Get the text color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getTextOutlineColor

public int getTextOutlineColor(boolean focused)
Get the text outline color.

Parameters:
focused - whether to get the focused color.

getTextOutlineColor

public int getTextOutlineColor(boolean enabled,
                               boolean focused)
Get the text outline color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getMenuTextColor

public int getMenuTextColor(boolean enabled,
                            boolean focused)
Get the menu text color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getMenuTextColor

public int getMenuTextColor(boolean focused)
Get the menu text color.

Parameters:
focused - whether to get the focused color.

getMenuTextOutlineColor

public int getMenuTextOutlineColor(boolean enabled,
                                   boolean focused)
Get the menu text outline color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getMenuTextOutlineColor

public int getMenuTextOutlineColor(boolean focused)
Get the menu text outline color.

Parameters:
focused - whether to get the focused color.

getMenuTextOutlineFillColor

public int getMenuTextOutlineFillColor(boolean enabled,
                                       boolean focused)
Get the menu text outline fill color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getMenuTextOutlineFillColor

public int getMenuTextOutlineFillColor(boolean focused)
Get the menu text outline fill color.

Parameters:
focused - whether to get the focused color.

getLabelColor

public int getLabelColor(boolean focused)
Get the label color.

Parameters:
focused - whether to get the focused color.

getLabelOutlineColor

public int getLabelOutlineColor(boolean focused)
Get the label outline color.

Parameters:
focused - whether to get the focused color.

getLabelOutlineColor

public int getLabelOutlineColor(boolean enabled,
                                boolean focused)
Get the label outline color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getLightTextColor

public int getLightTextColor(boolean selected)
Get the light text color.

Parameters:
selected - whether to get the selected color.

getLabelColor

public int getLabelColor(boolean enabled,
                         boolean focused)
Get the label color.

Parameters:
enabled - whether to get the enabled color.
focused - whether to get the focused color.

getLabelFont

public Font getLabelFont(boolean enabled)
Get the label font.

Parameters:
enabled - whether to get the enabled font.

getMenuFont

public Font getMenuFont(boolean enabled)
Get the menu font.

Parameters:
enabled - whether to get the enabled font.

drawCheckMark

public static void drawCheckMark(Pen pen,
                                 int color,
                                 int x1,
                                 int y1,
                                 int x2,
                                 int y2,
                                 int x3,
                                 int y3,
                                 int thickness)
Draw a check mark.

Parameters:
pen - non-null; The pen to use.
color - The color to use.
x1 - X coordinate of the left corner of the check mark.
y1 - Y coordinate of the left corner of the check mark.
x2 - X coordinate of the bottom corner of the check mark.
y2 - Y coordinate of the bottom corner of the check mark.
x3 - X coordinate of the right corner of the check mark.
y3 - Y coordinate of the right corner of the check mark.
thickness - The thickness of the check mark.

drawCheckBox

public static void drawCheckBox(Pen pen,
                                Style style,
                                int x,
                                int y,
                                boolean enabled,
                                boolean focused,
                                boolean on)
Draw a check box. This method will probably be deprecated in a future OS release. You should instead use drawCheckBox(Pen,Style,int,int,boolean,boolean,int).

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the check box (left)
y - Y coordinate of the check box (top)
focused - Whether to use the focused style colors.
enabled - Whether to use the enabled style colors.
on - Whether the check box is on and thus has a check mark. The dimensions of check boxes are 12 x 11.

drawCheckBox

public static void drawCheckBox(Pen pen,
                                Style style,
                                int x,
                                int y,
                                boolean enabled,
                                boolean focused,
                                int value)
Draw a check box.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the check box (left)
y - Y coordinate of the check box (top)
focused - Whether to use the focused style colors.
enabled - Whether to use the enabled style colors.
value - CheckBox.CHECKED_VALUE, CheckBox.UNCHECKED_VALUE, or CheckBox.INDETERMINATE_VALUE. The dimensions of check boxes are 12 x 11.
Since:
4.5

drawRadioButton

public static void drawRadioButton(Pen pen,
                                   Style style,
                                   int x,
                                   int y,
                                   boolean enabled,
                                   boolean focused,
                                   boolean on)
Draw a radio button.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the check box (left)
y - Y coordinate of the check box (top)
enabled - Whether to use the enabled style colors.
focused - Whether to use the focused style colors.
on - Whether the check box is on and thus has a check mark.

drawRoundedBox

public static void drawRoundedBox(Pen pen,
                                  Style style,
                                  int left,
                                  int top,
                                  int right,
                                  int bottom,
                                  boolean enabled,
                                  boolean focused,
                                  int cornerSize,
                                  boolean hasFrame)
Draw a rounded box.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
left - left coordinate of the box.
top - top coordinate of the box.
right - right coordinate of the box.
bottom - bottom coordinate of the box.
enabled - Whether to use the enabled style colors.
focused - Whether to use the focused style colors.
cornerSize - arc size of the rounded corners.
hasFrame - whether the box has a frame.

drawRoundedBox

public static void drawRoundedBox(Pen pen,
                                  Style style,
                                  int left,
                                  int top,
                                  int right,
                                  int bottom,
                                  boolean enabled,
                                  boolean focused,
                                  int cornerSize,
                                  boolean hasFrame,
                                  boolean clearBackground)
Draw a rounded box.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
left - left coordinate of the box.
top - top coordinate of the box.
right - right coordinate of the box.
bottom - bottom coordinate of the box.
enabled - Whether to use the enabled style colors.
focused - Whether to use the focused style colors.
cornerSize - arc size of the rounded corners.
hasFrame - whether the box has a frame.
clearBackground - whether to clear the background before drawing.

drawPickerArrows

public static void drawPickerArrows(Pen pen,
                                    Style style,
                                    int x,
                                    int y,
                                    boolean focused)
Draw double arrows suitable for a picker widget.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the arrows.
y - Y coordinate of the arrows.
focused - Whether to use the focused style colors.

drawPopupArrows

public static void drawPopupArrows(Pen pen,
                                   Style style,
                                   int x,
                                   int y,
                                   int width,
                                   int height,
                                   boolean focused)
Draw double arrows suitable for a popup menu.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the arrows.
y - Y coordinate of the arrows.
width - The width of one arrow.
height - The width of one arrow.
focused - Whether to use the focused style colors.

drawArrow

public static void drawArrow(Pen pen,
                             int x,
                             int y,
                             int width,
                             int height,
                             int direction)
Draw a an arrow outline using the current pen color.

Parameters:
pen - non-null; The pen to use.
x - X coordinate of the arrow.
y - Y coordinate of the arrow.
width - Arrow width.
height - Arrow height.
direction - One of DIRECTION_DOWN, DIRECTION_UP, DIRECTION_LEFT, DIRECTION_RIGHT.

fillArrow

public static void fillArrow(Pen pen,
                             int x,
                             int y,
                             int width,
                             int height,
                             int direction)
Draw a filled arrow using the current pen color.

Parameters:
pen - non-null; The pen to use.
x - X coordinate of the arrow.
y - Y coordinate of the arrow.
width - Arrow width.
height - Arrow height.
direction - One of DIRECTION_DOWN, DIRECTION_UP, DIRECTION_LEFT, DIRECTION_RIGHT.

drawScrollUpArrow

public static void drawScrollUpArrow(Pen pen,
                                     Style style,
                                     int width,
                                     int y)
Draw an up arrow usually used for indicating something can scroll.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
width - width of the view to draw the arrow in (the arrow will be centered horizontally)
y - Y coordinate of the arrow.
Since:
4.0

drawScrollDownArrow

public static void drawScrollDownArrow(Pen pen,
                                       Style style,
                                       int width,
                                       int height)
Draw a down arrow usually used for indicating something can scroll.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
width - width of the view to draw the arrow in (the arrow will be centered horizontally)
height - height of hte view to draw the arrow in (the arrow will be placed near the bottom)
Since:
4.0

getScrollArrowWidth

public static final int getScrollArrowWidth()
Get the width of the scroll arrows used in the menus.

Since:
4.0

getScrollArrowHeight

public static final int getScrollArrowHeight()
Get the height of the scroll arrows used in the menus.

Since:
4.0

getCheckBoxWidth

public static final int getCheckBoxWidth()
Get the width of check boxes.

Since:
4.0

getCheckBoxHeight

public static final int getCheckBoxHeight()
Get the height of check boxes.

Since:
4.0

getRadioButtonWidth

public static final int getRadioButtonWidth()
Get the width of radio buttons.

Since:
4.0

getRadioButtonHeight

public static final int getRadioButtonHeight()
Get the height of radio buttons.

Since:
4.0

drawArrow

public static void drawArrow(Pen pen,
                             Style style,
                             int x,
                             int y,
                             int width,
                             int height,
                             boolean focused,
                             int direction)
Draw an arrow usually used for indicating something can scroll.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the arrow.
y - Y coordinate of the arrow.
focused - Whether to use the focused style colors.
direction - One of DIRECTION_DOWN, DIRECTION_UP, DIRECTION_LEFT, DIRECTION_RIGHT.

drawOutlinedArrow

public static void drawOutlinedArrow(Pen pen,
                                     Style style,
                                     int x,
                                     int y,
                                     int width,
                                     int height,
                                     int direction)
Draw an arrow with an outline for use against possibly black backgrounds. Because the arrow has an outline, the colors are not inverted when the control is focused. Usually used for indicating that there is a menu associated with a control like the IconPicker.

Parameters:
pen - non-null; The pen to use.
style - non-null; The style to use.
x - X coordinate of the arrow.
y - Y coordinate of the arrow.
width - Width of the arrow.
height - Height of the arrow.
direction - One of DIRECTION_DOWN, DIRECTION_UP, DIRECTION_LEFT, DIRECTION_RIGHT.

getSystemStyle

public static Style getSystemStyle()
Return the current system style, which is used to draw all Views if no other style is specified.


getDefaultStyle

public static Style getDefaultStyle()
Return the default style, which is the default setting for the system style.


getAttributeName

public String getAttributeName(int attribute)
Get the name of the numbered attribute.

Parameters:
attribute - the attribute to get the name of.

getAttributeType

public int getAttributeType(int attribute)
Get the type of the numbered attribute. Returns one of ATTRIBUTE_COLOR, ATTRIBUTE_FONT, ATTRIBUTE_GRADIENT.

Parameters:
attribute - the attribute to get the name of.

attributeCount

public int attributeCount()
Get the number of attributes in the style.


getAvailableStyles

public static Style[] getAvailableStyles()
Get an array of the currently available styles. Always returns an array with just the default style.


registerForChanges

public static void registerForChanges(Listener listener)
Register to receive an event when the system style changes.

Parameters:
listener - the listener to receive the event. It will be sent an event of type EventType.EVENT_SYSTEM_STYLE_CHANGED when the system style changes.

unRegisterForChanges

public static void unRegisterForChanges(Listener listener)
Unregister as a listener for style changed events, as set by registerForChanges(danger.app.Listener).

Parameters:
listener - the listener to unregister.

setImmutable

public void setImmutable()
Specify that this style cannot be changed.


drawElement

public void drawElement(int type,
                        Pen pen,
                        View view,
                        Rect rect)
Draw an Style element. Usually you will call StyleManager.drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) to draw an element. You can override this method if you subclass Style.

Parameters:
type - the type of element to draw. This should be one of BUTTON_FRAME, BUTTON_BACKGROUND, etc.
pen - the pen to use to draw the element.
view - the View associated with the element to draw.
rect - the bounding rectangle of the element.
Since:
4.0

drawButtonFrame

public void drawButtonFrame(Pen pen,
                            Style style,
                            Rect rect,
                            boolean enabled,
                            boolean focused,
                            boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for BUTTON_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawButtonBackground

public void drawButtonBackground(Pen pen,
                                 Style style,
                                 Rect rect,
                                 boolean enabled,
                                 boolean focused)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for BUTTON_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
Since:
4.0

drawDatePickerFrame

public void drawDatePickerFrame(Pen pen,
                                Style style,
                                Rect rect,
                                boolean enabled,
                                boolean focused,
                                boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_PICKER_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawIconPickerFrame

public void drawIconPickerFrame(Pen pen,
                                Style style,
                                Rect rect,
                                boolean enabled,
                                boolean focused,
                                boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawIconPickerWindowFrame

public void drawIconPickerWindowFrame(Pen pen,
                                      Style style,
                                      Rect rect,
                                      View view,
                                      boolean enabled,
                                      boolean focused,
                                      boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_WINDOW_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawImageViewFrame

public void drawImageViewFrame(Pen pen,
                               Style style,
                               Rect rect,
                               boolean enabled,
                               boolean focused,
                               boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for IMAGE_VIEW_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawPopupMenuFrame

public void drawPopupMenuFrame(Pen pen,
                               Style style,
                               Rect rect,
                               boolean enabled,
                               boolean focused,
                               boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for POPUP_MENU_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawPopupMenuBackground

public void drawPopupMenuBackground(Pen pen,
                                    Style style,
                                    Rect rect,
                                    boolean enabled,
                                    boolean focused,
                                    boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for POPUP_MENU_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawRingtonePickerFrame

public void drawRingtonePickerFrame(Pen pen,
                                    Style style,
                                    Rect rect,
                                    boolean enabled,
                                    boolean focused,
                                    boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for RING_TONE_PICKER_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawSliderFrame

public void drawSliderFrame(Pen pen,
                            Style style,
                            Rect rect,
                            boolean enabled,
                            boolean focused,
                            boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawSliderBackground

public void drawSliderBackground(Pen pen,
                                 Style style,
                                 Rect rect,
                                 boolean enabled,
                                 boolean focused,
                                 boolean transparent)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
transparent - whether the element is transparent.
Since:
4.0

drawDialogBackground

public void drawDialogBackground(Pen pen,
                                 Style style,
                                 Rect rect)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DIALOG_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
Since:
4.0

drawMenuFrame

public void drawMenuFrame(Pen pen,
                          Style style,
                          Rect rect,
                          View view,
                          boolean topIsFlat,
                          boolean bottomIsFlat)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MENU_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
topIsFlat - whether the top of the menu is flat.
bottomIsFlat - whether the bottom of the menu is flat.
Since:
4.0

drawDatePickerWindowFrame

public void drawDatePickerWindowFrame(Pen pen,
                                      Style style,
                                      Rect rect,
                                      View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_PICKER_WINDOW_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawPickerWindowFrame

public void drawPickerWindowFrame(Pen pen,
                                  Style style,
                                  Rect rect,
                                  View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for PICKER_WINDOW_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawMenuBackground

public void drawMenuBackground(Pen pen,
                               Style style,
                               Rect rect,
                               boolean topIsFlat,
                               boolean bottomIsFlat)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MENU_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
topIsFlat - whether the top of the menu is flat.
bottomIsFlat - whether the bottom of the menu is flat.
Since:
4.0

drawDialogFrame

public void drawDialogFrame(Pen pen,
                            Style style,
                            Rect rect,
                            DialogWindow window)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DIALOG_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
window - window to draw the frame for.
Since:
4.0

drawTitleBarBackground

public void drawTitleBarBackground(Pen pen,
                                   Style style,
                                   Rect rect,
                                   TitleBar titleBar)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TITLE_BAR_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
titleBar - the title bar.
Since:
4.0

drawTitleBarPill

public void drawTitleBarPill(Pen pen,
                             Style style,
                             Rect rect)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TITLE_BAR_PILL.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
Since:
4.0

drawSliderWindowFrame

public void drawSliderWindowFrame(Pen pen,
                                  Style style,
                                  Rect rect,
                                  View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for SLIDER_WINDOW_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawFocusedMenuItemBackground

public void drawFocusedMenuItemBackground(Pen pen,
                                          Style style,
                                          Rect rect,
                                          View view,
                                          int cornerOptions)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for FOCUSED_MENU_ITEM_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
cornerOptions - whether the corners should be rounded (options same as those for Pen.fillSplitGradientRect(danger.ui.Rect, int, int, int, int[])).
Since:
4.0

drawTabItem

public void drawTabItem(Pen pen,
                        Style style,
                        Rect rect,
                        View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for TAB_ITEM.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawFocusedTabItem

public void drawFocusedTabItem(Pen pen,
                               Style style,
                               Rect rect,
                               View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for FOCUSED_TAB_ITEM.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawCurrentTabItem

public void drawCurrentTabItem(Pen pen,
                               Style style,
                               Rect rect,
                               View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for CURRENT_TAB_ITEM.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawMovingTabItem

public void drawMovingTabItem(Pen pen,
                              Style style,
                              Rect rect,
                              View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MOVING_TAB_ITEM.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawMarqueeBackground

public void drawMarqueeBackground(Pen pen,
                                  Style style,
                                  Rect rect,
                                  View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MARQUEE_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawMarqueeFrame

public void drawMarqueeFrame(Pen pen,
                             Style style,
                             Rect rect,
                             View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MARQUEE_FRAME.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawListSelectionBackground

public void drawListSelectionBackground(Pen pen,
                                        Style style,
                                        Rect rect,
                                        View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for LIST_SELECTION_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawDateEditorBackground

public void drawDateEditorBackground(Pen pen,
                                     Style style,
                                     Rect rect,
                                     boolean enabled,
                                     boolean focused)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for DATE_EDITOR_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
Since:
4.0

drawCheckBoxBackground

public void drawCheckBoxBackground(Pen pen,
                                   Style style,
                                   Rect rect,
                                   boolean enabled,
                                   boolean focused)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for CHECK_BOX_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
Since:
4.0

drawIconPickerSelectionBackground

public void drawIconPickerSelectionBackground(Pen pen,
                                              Style style,
                                              Rect rect,
                                              View view)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for ICON_PICKER_SELECTION_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
view - the view associated with the element.
Since:
4.0

drawViewFrame

public void drawViewFrame(Pen pen,
                          Style style,
                          Rect rect,
                          boolean enabled,
                          boolean focused,
                          int arcSize,
                          boolean hasFrame,
                          boolean clearBackground)
Draw a view frame.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
hasFrame - whether the view has a frame.
clearBackground - whether the background should be cleared first.
Since:
4.0

drawMonthViewBackground

public void drawMonthViewBackground(Pen pen,
                                    Style style,
                                    Rect rect,
                                    boolean enabled,
                                    boolean focused)
Equivalent to drawElement(int, danger.ui.Pen, danger.ui.View, danger.ui.Rect) for MONTH_VIEW_BACKGROUND.

Parameters:
pen - the pen to use to draw the element.
style - the style to draw the element with.
rect - the bounding rectangle of the element.
enabled - whether the element is enabled.
focused - whether the element is focused.
Since:
4.0