Java DTV API 1.0
12-Dec-2008

Uses of Class
com.sun.lwuit.Graphics

Packages that use Graphics
com.sun.dtv.ui TV specific UI functionality.  
com.sun.lwuit Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT.  
com.sun.lwuit.animations All components are animatable by potential and additional animations (unrelated to a specific component) can be installed on the fly, transitions between forms are also handled as part of this package.  
com.sun.lwuit.painter Painter allows us to draw arbitrary elements of graphics from plain/scaled/tiled images to gradients and pretty much any form of graphic drawing we can imagine.  
com.sun.lwuit.plaf Look of the application can be fully customized via this package, it represents a rendering layer that can be plugged in separately in runtime and themed to provide any custom look.  
 

Uses of Graphics in com.sun.dtv.ui
 

Methods in com.sun.dtv.ui with parameters of type Graphics
 void Animated.paint(Graphics g)
          Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature.
 void AnimatedMatte.paint(Graphics g)
          Draws the animation, within a component the standard paint method would be invoked since it bares the exact same signature.
 void DTVContainer.paint(Graphics g)
           If the current background mode is BACKGROUND_FILL, the whole area of the DTVContainer is filled with the current background color first.
 void DefaultTextLayoutManager.render(String text, Graphics g, ViewOnlyComponent component, Insets insets)
          Render a string.
 void SophisticatedTextLayoutManager.render(String text, Graphics g, ViewOnlyComponent component, Insets insets)
          Render a string.
 void TextLayoutManager.render(String text, Graphics g, ViewOnlyComponent component, Insets insets)
          Render a string.
 void ViewOnlyComponent.paint(Graphics g)
          Method to paint the component.
 

Uses of Graphics in com.sun.lwuit
 

Methods in com.sun.lwuit that return Graphics
 Graphics Image.getGraphics()
          If this is a mutable image a graphics object allowing us to draw on it is returned.
 

Methods in com.sun.lwuit with parameters of type Graphics
 void Button.paint(Graphics g)
           
 void Calendar.paint(Graphics g)
           
 void CheckBox.paint(Graphics g)
           
 void ComboBox.paint(Graphics g)
           
 void Component.paintBackgrounds(Graphics g)
          This method paints all the parents Components Background.
protected  void Component.paintScrollbars(Graphics g)
          Paints the UI for the scrollbars on the component, this will be invoked only for scrollable components.
protected  void Component.paintScrollbarX(Graphics g)
          Paints the UI for the scrollbar on the X axis, this method allows component subclasses to customize the look of a scrollbar.
protected  void Component.paintScrollbarY(Graphics g)
          Paints the UI for the scrollbar on the Y axis, this method allows component subclasses to customize the look of a scrollbar.
 void Component.paintComponent(Graphics g)
          Paints this component as a root by going to all the parent components and setting the absolute translation based on coordinates and scroll status.
 void Component.paintComponent(Graphics g, boolean background)
          Paints this component as a root by going to all the parent components and setting the absolute translation based on coordinates and scroll status.
protected  void Component.paintBackground(Graphics g)
          Paints the background of the component, invoked with the clipping region and appropriate scroll translation.
 void Component.paint(Graphics g)
          This method paints the Component on the screen, it should be overriden by subclasses to perform custom drawing or invoke the UI API's to let the PLAF perform the rendering.
protected  void Component.paintBorder(Graphics g)
          Draws the component border if such a border exists.
 void Container.paint(Graphics g)
           
abstract  void Font.drawChar(Graphics g, char character, int x, int y)
          Draw the given char using the current font and color in the x,y coordinates.
 void Form.paintBackground(Graphics g)
          Exposing the background painting for the benefit of animations.
 void Form.paint(Graphics g)
          
 void Label.paint(Graphics g)
           
 void List.paint(Graphics g)
           
 void MediaComponent.paint(Graphics g)
           
protected  void MediaComponent.paintBackground(Graphics g)
           
 void MediaComponent.paintBackgrounds(Graphics g)
           
 void Painter.paint(Graphics g, Rectangle rect)
          Draws inside the given rectangle clipping area.
 void RadioButton.paint(Graphics g)
           
 void StaticAnimation.paint(Graphics g)
           
 void TabbedPane.paint(Graphics g)
           
protected  void TextArea.paintScrollbarY(Graphics g)
           
 void TextArea.paint(Graphics g)
           
 void TextField.paint(Graphics g)
           
 

Uses of Graphics in com.sun.lwuit.animations
 

Methods in com.sun.lwuit.animations with parameters of type Graphics
 void CommonTransitions.paint(Graphics g)
           
abstract  void Transition.paint(Graphics g)
           
 

Uses of Graphics in com.sun.lwuit.painter
 

Methods in com.sun.lwuit.painter with parameters of type Graphics
 void BackgroundPainter.paint(Graphics g, Rectangle rect)
           
 void PainterChain.paint(Graphics g, Rectangle rect)
           
 

Uses of Graphics in com.sun.lwuit.plaf
 

Methods in com.sun.lwuit.plaf with parameters of type Graphics
 void Border.paintBorderBackground(Graphics g, Component c)
          Has effect when the border demands responsibility for background painting normally the painter will perform this work but in this case the border might do it instead.
 void Border.paint(Graphics g, Component c)
          Draws the border for the given component, this method is called before a call to background painting is made.
 void DefaultLookAndFeel.drawButton(Graphics g, Button b)
          Invoked for drawing a button widget.
 void DefaultLookAndFeel.drawCheckBox(Graphics g, CheckBox cb)
          Invoked for drawing a checkbox widget.
 void DefaultLookAndFeel.drawLabel(Graphics g, Label l)
          Invoked for drawing a label widget.
 void DefaultLookAndFeel.drawRadioButton(Graphics g, RadioButton rb)
          Invoked for drawing the radio button widget.
 void DefaultLookAndFeel.drawComboBox(Graphics g, ComboBox cb)
          Invoked for drawing a combo box widget.
 void DefaultLookAndFeel.drawList(Graphics g, List l)
          Invoked for drawing a list widget.
 void DefaultLookAndFeel.drawMonthView(Graphics g, Calendar cal, Component mv)
          Invoked for drawing a month view widget.
 void DefaultLookAndFeel.drawTextArea(Graphics g, TextArea ta)
          Invoked for drawing the text area widget.
protected  int DefaultLookAndFeel.drawLabelText(Graphics g, Label l, String text, int x, int y, int textSpaceW)
          Draws label text.
 void DefaultLookAndFeel.drawTabbedPane(Graphics g, TabbedPane tp)
          Invoked for drawing the Tab Pane widget.
 void DefaultLookAndFeel.drawTabbedPaneContentPane(TabbedPane tp, Graphics g, Rectangle rect, Dimension cellsPreferredSize, int numOfTabs, int selectedTabIndex, Dimension tabsSize, int cellOffsetX, int cellOffsetY)
          Draws and return the TabbedPane content pane painter.
 void DefaultLookAndFeel.drawTextField(Graphics g, TextField ta)
          Draws the text field without its cursor which is drawn in a separate method. Input mode indication can also be drawn using this method.
 void DefaultLookAndFeel.drawTextFieldCursor(Graphics g, TextField ta)
          Draws the cursor of the text field, blinking is handled simply by avoiding a call to this method.
abstract  void LookAndFeel.drawButton(Graphics g, Button b)
          Invoked for drawing a button widget.
abstract  void LookAndFeel.drawCheckBox(Graphics g, CheckBox cb)
          Invoked for drawing a checkbox widget.
abstract  void LookAndFeel.drawComboBox(Graphics g, ComboBox cb)
          Invoked for drawing a combo box widget.
abstract  void LookAndFeel.drawLabel(Graphics g, Label l)
          Invoked for drawing a label widget.
abstract  void LookAndFeel.drawList(Graphics g, List l)
          Invoked for drawing a list widget.
abstract  void LookAndFeel.drawMonthView(Graphics g, Calendar cal, Component mv)
          Invoked for drawing a month view widget.
abstract  void LookAndFeel.drawRadioButton(Graphics g, RadioButton rb)
          Invoked for drawing the radio button widget.
abstract  void LookAndFeel.drawTextArea(Graphics g, TextArea ta)
          Invoked for drawing the text area widget.
abstract  void LookAndFeel.drawTextField(Graphics g, TextField tf)
          Draws the text field without its cursor which is drawn in a separate method.
abstract  void LookAndFeel.drawTextFieldCursor(Graphics g, TextField tf)
          Draws the cursor of the text field, blinking is handled simply by avoiding a call to this method.
abstract  void LookAndFeel.drawTabbedPane(Graphics g, TabbedPane tp)
          Invoked for drawing the Tab Pane widget.
 void LookAndFeel.drawVerticalScroll(Graphics g, Component c, float offsetRatio, float blockSizeRatio)
          Draws a vertical scroll bar in the given component.
 void LookAndFeel.drawHorizontalScroll(Graphics g, Component c, float offsetRatio, float blockSizeRatio)
          Draws a horizontal scroll bar in the given component.
 void LookAndFeel.setFG(Graphics g, Component c)
          Sets the foreground color and font for a generic component, reuse-able by most component drawing code.
abstract  void LookAndFeel.drawTabbedPaneContentPane(TabbedPane tp, Graphics g, Rectangle rect, Dimension cellsPreferredSize, int numOfTabs, int selectedTabIndex, Dimension tabsSize, int cellOffsetX, int cellOffsetY)
          Draws and return the TabbedPane content pane painter.
 


Java DTV API 1.0
12-Dec-2008

Copyright © 2008 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.