Uses of Class
java.awt.Graphics
| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| java.beans |
Contains classes related to developing beans -- components based on
the JavaBeans™ architecture.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.border |
Provides classes and interface for drawing specialized borders around a Swing
component.
|
| javax.swing.colorchooser |
Contains classes and interfaces used by the
JColorChooser component. |
| javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
|
| javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors. |
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree. |
-
Uses of Graphics in java.awt
Subclasses of Graphics in java.awt Modifier and Type Class Description classGraphics2DThisGraphics2Dclass extends theGraphicsclass to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout.Methods in java.awt that return Graphics Modifier and Type Method Description abstract GraphicsGraphics. create()Creates a newGraphicsobject that is a copy of thisGraphicsobject.GraphicsGraphics. create(int x, int y, int width, int height)Creates a newGraphicsobject based on thisGraphicsobject, but with a new translation and clip area.GraphicsComponent.BltBufferStrategy. getDrawGraphics()GraphicsComponent.FlipBufferStrategy. getDrawGraphics()GraphicsComponent. getGraphics()Creates a graphics context for this component.abstract GraphicsImage. getGraphics()Creates a graphics context for drawing to an off-screen image.abstract GraphicsPrintJob. getGraphics()Gets a Graphics object that will draw to the next page.Methods in java.awt with parameters of type Graphics Modifier and Type Method Description LineMetricsFontMetrics. getLineMetrics(char[] chars, int beginIndex, int limit, Graphics context)Returns theLineMetricsobject for the specified character array in the specifiedGraphicscontext.LineMetricsFontMetrics. getLineMetrics(String str, int beginIndex, int limit, Graphics context)LineMetricsFontMetrics. getLineMetrics(String str, Graphics context)LineMetricsFontMetrics. getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)Returns theLineMetricsobject for the specifiedCharacterIteratorin the specifiedGraphicscontext.Rectangle2DFontMetrics. getMaxCharBounds(Graphics context)Returns the bounds for the character with the maximum bounds in the specifiedGraphicscontext.Rectangle2DFontMetrics. getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)Returns the bounds of the specified array of characters in the specifiedGraphicscontext.Rectangle2DFontMetrics. getStringBounds(String str, int beginIndex, int limit, Graphics context)Returns the bounds of the specifiedStringin the specifiedGraphicscontext.Rectangle2DFontMetrics. getStringBounds(String str, Graphics context)Returns the bounds of the specifiedStringin the specifiedGraphicscontext.Rectangle2DFontMetrics. getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)Returns the bounds of the characters indexed in the specifiedCharacterIteratorin the specifiedGraphicscontext.voidCanvas. paint(Graphics g)Paints this canvas.voidComponent. paint(Graphics g)Paints this component.voidContainer. paint(Graphics g)Paints the container.voidWindow. paint(Graphics g)Paints the container.voidComponent. paintAll(Graphics g)Paints this component and all of its subcomponents.voidContainer. paintComponents(Graphics g)Paints each of the components in this container.voidComponent. print(Graphics g)Prints this component.voidContainer. print(Graphics g)Prints the container.voidComponent. printAll(Graphics g)Prints this component and all of its subcomponents.voidContainer. printComponents(Graphics g)Prints each of the components in this container.voidScrollPane. printComponents(Graphics g)Prints the component in this scroll pane.voidCanvas. update(Graphics g)Updates this canvas.voidComponent. update(Graphics g)Updates this component.voidContainer. update(Graphics g)Updates the container. -
Uses of Graphics in java.awt.image
Methods in java.awt.image that return Graphics Modifier and Type Method Description abstract GraphicsBufferStrategy. getDrawGraphics()Creates a graphics context for the drawing buffer.GraphicsAbstractMultiResolutionImage. getGraphics()As per the contract of the baseImage#getGraphics()method, this implementation will always throwUnsupportedOperationExceptionsince only off-screen images can return aGraphicsobject.GraphicsBufferedImage. getGraphics()This method returns aGraphics2D, but is here for backwards compatibility.GraphicsVolatileImage. getGraphics()This method returns aGraphics2D, but is here for backwards compatibility. -
Uses of Graphics in java.awt.print
Methods in java.awt.print with parameters of type Graphics Modifier and Type Method Description intPrintable. print(Graphics graphics, PageFormat pageFormat, int pageIndex)Prints the page at the specified index into the specifiedGraphicscontext in the specified format. -
Uses of Graphics in java.beans
Methods in java.beans with parameters of type Graphics Modifier and Type Method Description voidPropertyEditor. paintValue(Graphics gfx, Rectangle box)Paint a representation of the value into a given area of screen real estate.voidPropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)Paint a representation of the value into a given area of screen real estate. -
Uses of Graphics in javax.swing
Subclasses of Graphics in javax.swing Modifier and Type Class Description classDebugGraphicsGraphics subclass supporting graphics debugging.Methods in javax.swing that return Graphics Modifier and Type Method Description GraphicsDebugGraphics. create()OverridesGraphics.createto return a DebugGraphics object.GraphicsDebugGraphics. create(int x, int y, int width, int height)OverridesGraphics.createto return a DebugGraphics object.protected GraphicsJComponent. getComponentGraphics(Graphics g)Returns the graphics object used to paint this component.GraphicsJApplet. getGraphics()Deprecated.Creates a graphics context for this component.GraphicsJComponent. getGraphics()Returns this component's graphics context, which lets you draw on a component.GraphicsJDialog. getGraphics()Creates a graphics context for this component.GraphicsJFrame. getGraphics()Creates a graphics context for this component.GraphicsJWindow. getGraphics()Creates a graphics context for this component.Methods in javax.swing with parameters of type Graphics Modifier and Type Method Description protected GraphicsJComponent. getComponentGraphics(Graphics g)Returns the graphics object used to paint this component.voidCellRendererPane. paint(Graphics g)Shouldn't be called.voidJComponent. paint(Graphics g)Invoked by Swing to draw components.voidJLayer. paint(Graphics g)Delegates all painting to theLayerUIobject.voidJLayeredPane. paint(Graphics g)Paints this JLayeredPane within the specified graphics context.voidJViewport. paint(Graphics g)Depending on whether thebackingStoreis enabled, either paint the image through the backing store or paint just the recently exposed part, using the backing store to "blit" the remainder.protected voidAbstractButton. paintBorder(Graphics g)Paint the button's border ifBorderPaintedproperty is true and the button has a border.protected voidJComponent. paintBorder(Graphics g)Paints the component's border.protected voidJMenuBar. paintBorder(Graphics g)Paints the menubar's border ifBorderPaintedproperty is true.protected voidJPopupMenu. paintBorder(Graphics g)Paints the popup menu's border if theborderPaintedproperty istrue.protected voidJProgressBar. paintBorder(Graphics g)Paints the progress bar's border if theborderPaintedproperty istrue.protected voidJToolBar. paintBorder(Graphics g)Paints the tool bar's border if theborderPaintedproperty istrue.protected voidJComponent. paintChildren(Graphics g)Paints this component's children.protected voidJSplitPane. paintChildren(Graphics g)Subclassed to message the UI withfinishedPaintingChildrenafter super has been messaged, as well as painting the border.protected voidBox.Filler. paintComponent(Graphics g)Paints thisFiller.protected voidBox. paintComponent(Graphics g)Paints thisBox.voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)Calls this.paintComponent(g, c, p, x, y, w, h, false).voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)Paint a cell renderer component c on graphics object g.voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)Calls this.paintComponent() with the rectangles x,y,width,height fields.protected voidJComponent. paintComponent(Graphics g)Calls the UI delegate's paint method, if the UI delegate is non-null.protected voidJInternalFrame. paintComponent(Graphics g)Overridden to allow optimized painting when the internal frame is being dragged.protected voidJLayer. paintComponent(Graphics g)This method is empty, because all painting is done byJLayer.paint(Graphics)andComponentUI.update(Graphics, JComponent)methodsstatic voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)Paints a component to the specifiedGraphics.static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)Paints a component to the specifiedGraphics.voidIcon. paintIcon(Component c, Graphics g, int x, int y)Draw the icon at the specified location.voidImageIcon. paintIcon(Component c, Graphics g, int x, int y)Paints the icon.voidJComponent. print(Graphics g)Invoke this method to print the component to the specifiedGraphics.voidJComponent. printAll(Graphics g)Invoke this method to print the component.protected voidJComponent. printBorder(Graphics g)Prints the component's border.protected voidJComponent. printChildren(Graphics g)Prints this component's children.protected voidJComponent. printComponent(Graphics g)This is invoked during a printing operation.voidCellRendererPane. update(Graphics g)Shouldn't be called.voidJApplet. update(Graphics g)Deprecated.Just callspaint(g).voidJComponent. update(Graphics g)Callspaint.voidJDialog. update(Graphics g)Callspaint(g).voidJFrame. update(Graphics g)Just callspaint(g).voidJWindow. update(Graphics g)Callspaint(g).Constructors in javax.swing with parameters of type Graphics Constructor Description DebugGraphics(Graphics graphics)Constructs a debug graphics context from an existing graphics context that supports slowed down drawing.DebugGraphics(Graphics graphics, JComponent component)Constructs a debug graphics context from an existing graphics context that slows down drawing for the specified component. -
Uses of Graphics in javax.swing.border
Methods in javax.swing.border with parameters of type Graphics Modifier and Type Method Description voidAbstractBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)This default implementation does no painting.voidBevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidCompoundBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the compound border by painting the outside border with the specified position and size and then painting the inside border at the specified position and size offset by the insets of the outside border.voidEmptyBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Does no drawing by default.voidEtchedBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidLineBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidMatteBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the matte border.voidSoftBevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidStrokeBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.voidTitledBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size.protected voidBevelBorder. paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)Paints a lowered bevel for the specified component with the specified position and size.protected voidBevelBorder. paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)Paints a raised bevel for the specified component with the specified position and size. -
Uses of Graphics in javax.swing.colorchooser
Methods in javax.swing.colorchooser with parameters of type Graphics Modifier and Type Method Description voidAbstractColorChooserPanel. paint(Graphics g)Draws the panel. -
Uses of Graphics in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type Graphics Modifier and Type Method Description abstract voidSplitPaneUI. finishedPaintingChildren(JSplitPane jc, Graphics g)Messaged after the JSplitPane the receiver is providing the look and feel for paints its children.voidComponentUI. paint(Graphics g, JComponent c)Paints the specified component appropriately for the look and feel.voidLayerUI. paint(Graphics g, JComponent c)Paints the specified component.voidComponentUI. update(Graphics g, JComponent c)Notifies this UI delegate that it is time to paint the specified component. -
Uses of Graphics in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type Graphics Modifier and Type Method Description static voidBasicGraphicsUtils. drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)Draws a bezel.protected voidBasicTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)Draws theiconcentered at (x,y).protected voidBasicTreeUI. drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)Draws a horizontal dashed line.static voidBasicGraphicsUtils. drawDashedRect(Graphics g, int x, int y, int width, int height)Draws dashed rectangle.protected voidBasicTreeUI. drawDashedVerticalLine(Graphics g, int x, int y1, int y2)Draws a vertical dashed line.static voidBasicGraphicsUtils. drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)Draws an etched rectangle.static voidBasicGraphicsUtils. drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)Draws a groove.static voidBasicGraphicsUtils. drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)Draws a lowered bezel.static voidBasicGraphicsUtils. drawString(Graphics g, String text, int underlinedChar, int x, int y)Draw a string with the graphicsgat location (x,y) just likeg.drawStringwould.static voidBasicGraphicsUtils. drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)Draw a string with the graphicsgat location (x,y) just likeg.drawStringwould.voidBasicSplitPaneUI. finishedPaintingChildren(JSplitPane sp, Graphics g)Called when the specified split pane has finished painting its children.protected PointBasicProgressBarUI. getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)Designate the place where the progress string will be painted.voidBasicLabelUI. paint(Graphics g, JComponent c)Paints the label text with the foreground color, if the label is opaque then paints the entire background with the background color.voidBasicListUI. paint(Graphics g, JComponent c)Paint the rows that intersect the Graphics objects clipRect.voidBasicProgressBarUI. paint(Graphics g, JComponent c)Delegates painting to one of two methods: paintDeterminate or paintIndeterminate.voidBasicRadioButtonUI. paint(Graphics g, JComponent c)paint the radio buttonvoidBasicSplitPaneDivider. paint(Graphics g)Paints the divider.voidBasicTableUI. paint(Graphics g, JComponent c)Paint a representation of thetableinstance that was set in installUI().voidBasicTextUI. paint(Graphics g, JComponent c)Paints the interface.protected voidBasicMenuItemUI. paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)Draws the background of the menu item.protected voidBasicTextUI. paintBackground(Graphics g)Paints a background for the view.protected voidBasicButtonUI. paintButtonPressed(Graphics g, AbstractButton b)Paints a pressed button.protected voidBasicListUI. paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex)Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use theCellRendererPaneto paint it.protected voidBasicTabbedPaneUI. paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)Paints the content border.protected voidBasicTabbedPaneUI. paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)Paints the content border bottom edge.protected voidBasicTabbedPaneUI. paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)Paints the content border left edge.protected voidBasicTabbedPaneUI. paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)Paints the content border right edge.protected voidBasicTabbedPaneUI. paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)Paints the content border top edge.voidBasicComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)Paints the currently selected item.voidBasicComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)Paints the background of the currently selected item.protected voidBasicScrollBarUI. paintDecreaseHighlight(Graphics g)Paints the decrease highlight.protected voidBasicProgressBarUI. paintDeterminate(Graphics g, JComponent c)All purpose paint method that should do the right thing for almost all linear, determinate progress bars.protected voidBasicLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)Paint clippedText at textX, textY with background.lighter() and then shifted down and to the right by one pixel with background.darker().protected voidBasicToolBarUI. paintDragWindow(Graphics g)Paints the contents of the window used for dragging.protected voidBasicTreeUI. paintDropLine(Graphics g)Paints the drop line.protected voidBasicLabelUI. paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)Paint clippedText at textX, textY with the labels foreground color.protected voidBasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)Paints the expand (toggle) part of a row.protected voidBasicButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)Paints a focused button.protected voidBasicRadioButtonUI. paintFocus(Graphics g, Rectangle textRect, Dimension size)Paints focused radio button.voidBasicSliderUI. paintFocus(Graphics g)Paints focus.protected voidBasicTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)Paints the focus indicator.protected voidBasicSliderUI. paintHorizontalLabel(Graphics g, int value, Component label)Called for every label in the label table.protected voidBasicTreeUI. paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)Paints a horizontal line.protected voidBasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)Paints the horizontal part of the leg.protected voidBasicButtonUI. paintIcon(Graphics g, JComponent c, Rectangle iconRect)Paints an icon of the current button.protected voidBasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)Paints an icon.protected voidBasicToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)Paints an icon in the specified location.protected voidBasicScrollBarUI. paintIncreaseHighlight(Graphics g)Paints the increase highlight.protected voidBasicProgressBarUI. paintIndeterminate(Graphics g, JComponent c)All purpose paint method that should do the right thing for all linear bouncing-box progress bars.voidBasicSliderUI. paintLabels(Graphics g)Paints the labels.protected voidBasicSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)Paints major tick for horizontal slider.protected voidBasicSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)Paints major tick for vertical slider.protected voidBasicMenuItemUI. paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)Paints a menu item.protected voidBasicSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)Paints minor tick for horizontal slider.protected voidBasicSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)Paints minor tick for vertical slider.protected voidBasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)Paints the renderer part of a row.protected voidBasicTextUI. paintSafely(Graphics g)Paints the interface safely with a guarantee that the model won't change from the view of this thread.protected voidBasicProgressBarUI. paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)Paints the progress string.protected voidBasicTabbedPaneUI. paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)Paints a tab.protected voidBasicTabbedPaneUI. paintTabArea(Graphics g, int tabPlacement, int selectedIndex)Paints the tabs in the tab area.protected voidBasicTabbedPaneUI. paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)Paints the tab background.protected voidBasicTabbedPaneUI. paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)this function draws the border around each tab note that this function does now draw the background of the tab.protected voidBasicButtonUI. paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)Method which renders the text of the current button.protected voidBasicButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)Method which renders the text of the current button.protected voidBasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)Renders the text of the current menu item.protected voidBasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)Paints text.protected voidBasicScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)Paints the thumb.voidBasicSliderUI. paintThumb(Graphics g)Paints the thumb.voidBasicSliderUI. paintTicks(Graphics g)Paints ticks.protected voidBasicInternalFrameTitlePane. paintTitleBackground(Graphics g)Invoked from paintComponent.protected voidBasicScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)Paints the track.voidBasicSliderUI. paintTrack(Graphics g)Paints track.voidBasicArrowButton. paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)Paints a triangle.protected voidBasicSliderUI. paintVerticalLabel(Graphics g, int value, Component label)Called for every label in the label table.protected voidBasicTreeUI. paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)Paints a vertical line.protected voidBasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)Paints the vertical part of the leg.voidBasicMenuItemUI. update(Graphics g, JComponent c)We draw the background in paintMenuItem() so override update (which fills the background of opaque components by default) to just call paint().voidBasicTextUI. update(Graphics g, JComponent c)Superclass paints background in an uncontrollable way (i.e. one might want an image tiled into the background). -
Uses of Graphics in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type Graphics Modifier and Type Method Description protected voidMetalCheckBoxIcon. drawCheck(Component c, Graphics g, int x, int y)PaintsMetalCheckBoxIcon.protected voidMetalTabbedPaneUI. paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)Paints the bottom tab border.voidMetalComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)If necessary paints the currently selected item.voidMetalComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)If necessary paints the background of the currently selected item.voidMetalProgressBarUI. paintDeterminate(Graphics g, JComponent c)Draws a bit of special highlighting on the progress bar.protected voidMetalLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.protected voidMetalTreeUI. paintHorizontalSeparators(Graphics g, JComponent c)Paints the horizontal separators.voidMetalComboBoxIcon. paintIcon(Component c, Graphics g, int x, int y)Paints the horizontal bars for theprotected voidMetalToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)Paints the appropriate icon of the buttonbin the spaceiconRect.voidMetalProgressBarUI. paintIndeterminate(Graphics g, JComponent c)Draws a bit of special highlighting on the progress bar and bouncing box.protected voidMetalTabbedPaneUI. paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)Paints the left tab border.voidMetalIconFactory.TreeControlIcon. paintMe(Component c, Graphics g, int x, int y)Paints theTreeControlIcon.voidMetalInternalFrameTitlePane. paintPalette(Graphics g)Paints palette.protected voidMetalTabbedPaneUI. paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)Paints the right tab border.protected voidMetalTabbedPaneUI. paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)Paints the top tab border.voidMetalButtonUI. update(Graphics g, JComponent c)If necessary paints the background of the component, then invokespaint.voidMetalMenuBarUI. update(Graphics g, JComponent c)If necessary paints the background of the component, then invokespaint.voidMetalToggleButtonUI. update(Graphics g, JComponent c)If necessary paints the background of the component, then invokespaint.voidMetalToolBarUI. update(Graphics g, JComponent c)If necessary paints the background of the component, then invokespaint. -
Uses of Graphics in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type Graphics Modifier and Type Method Description voidMultiSplitPaneUI. finishedPaintingChildren(JSplitPane a, Graphics b)Invokes thefinishedPaintingChildrenmethod on each UI handled by this object.voidMultiButtonUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiColorChooserUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiComboBoxUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiDesktopIconUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiDesktopPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiFileChooserUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiInternalFrameUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiLabelUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiListUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiMenuBarUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiMenuItemUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiOptionPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiPanelUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiPopupMenuUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiProgressBarUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiRootPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiScrollBarUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiScrollPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiSeparatorUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiSliderUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiSpinnerUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiSplitPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiTabbedPaneUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiTableHeaderUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiTableUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiTextUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiToolBarUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiToolTipUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiTreeUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiViewportUI. paint(Graphics a, JComponent b)Invokes thepaintmethod on each UI handled by this object.voidMultiButtonUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiColorChooserUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiComboBoxUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiDesktopIconUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiDesktopPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiFileChooserUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiInternalFrameUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiLabelUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiListUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiMenuBarUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiMenuItemUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiOptionPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiPanelUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiPopupMenuUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiProgressBarUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiRootPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiScrollBarUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiScrollPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiSeparatorUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiSliderUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiSpinnerUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiSplitPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiTabbedPaneUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiTableHeaderUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiTableUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiTextUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiToolBarUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiToolTipUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiTreeUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object.voidMultiViewportUI. update(Graphics a, JComponent b)Invokes theupdatemethod on each UI handled by this object. -
Uses of Graphics in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type Graphics Modifier and Type Method Description voidSynthGraphicsUtils. drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2)Draws a line between the two end points.voidSynthGraphicsUtils. drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2, Object styleKey)Draws a line between the two end points.voidSynthButtonUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthButtonUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthColorChooserUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthColorChooserUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthComboBoxUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthComboBoxUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthDesktopIconUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthDesktopIconUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthDesktopPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthDesktopPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.protected voidSynthEditorPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthInternalFrameUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthInternalFrameUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthLabelUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthLabelUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthMenuBarUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthMenuBarUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthMenuItemUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthMenuItemUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthMenuUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthMenuUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthOptionPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthOptionPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthPanelUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthPanelUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthPopupMenuUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthPopupMenuUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthProgressBarUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthProgressBarUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthRootPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthRootPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthScrollBarUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthScrollBarUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthScrollPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthScrollPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthSeparatorUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthSeparatorUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthSliderUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthSliderUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthSpinnerUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthSpinnerUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthSplitPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthSplitPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthTabbedPaneUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthTabbedPaneUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthTableHeaderUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthTableHeaderUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthTableUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthTableUI. paint(SynthContext context, Graphics g)Paints the specified component.protected voidSynthTextAreaUI. paint(SynthContext context, Graphics g)Paints the specified component.protected voidSynthTextFieldUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthToolBarUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthToolBarUI. paint(SynthContext context, Graphics g)Paints the toolbar.voidSynthToolTipUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthToolTipUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthTreeUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthTreeUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthViewportUI. paint(Graphics g, JComponent c)Paints the specified component according to the Look and Feel.protected voidSynthViewportUI. paint(SynthContext context, Graphics g)Paints the specified component.voidSynthPainter. paintArrowButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of an arrow button.voidSynthPainter. paintArrowButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of an arrow button.voidSynthPainter. paintArrowButtonForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int direction)Paints the foreground of an arrow button.protected voidSynthTextAreaUI. paintBackground(Graphics g)Paints a background for the view.protected voidSynthTextFieldUI. paintBackground(Graphics g)Paints a background for the view.voidSynthUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border.voidSynthViewportUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border.voidSynthPainter. paintButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a button.voidSynthPainter. paintButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a button.voidSynthPainter. paintCheckBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a check box.voidSynthPainter. paintCheckBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a check box.voidSynthPainter. paintCheckBoxMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a check box menu item.voidSynthPainter. paintCheckBoxMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a check box menu item.voidSynthPainter. paintColorChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a color chooser.voidSynthPainter. paintColorChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a color chooser.voidSynthPainter. paintComboBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a combo box.voidSynthPainter. paintComboBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a combo box.protected voidSynthToolBarUI. paintContent(SynthContext context, Graphics g, Rectangle bounds)Paints the toolbar content.voidSynthComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)Paints the currently selected item.voidSynthPainter. paintDesktopIconBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a desktop icon.voidSynthPainter. paintDesktopIconBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a desktop icon.voidSynthPainter. paintDesktopPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a desktop pane.voidSynthPainter. paintDesktopPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a desktop pane.voidSynthPainter. paintEditorPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of an editor pane.voidSynthPainter. paintEditorPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of an editor pane.voidSynthPainter. paintFileChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a file chooser.voidSynthPainter. paintFileChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a file chooser.voidSynthPainter. paintFormattedTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a formatted text field.voidSynthPainter. paintFormattedTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a formatted text field.static voidSynthGraphicsUtils. paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height)Paints the icon.voidSynthIcon. paintIcon(SynthContext context, Graphics g, int x, int y, int width, int height)Paints the icon at the specified location for the given synth context.voidSynthPainter. paintInternalFrameBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of an internal frame.voidSynthPainter. paintInternalFrameBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of an internal frame.voidSynthPainter. paintInternalFrameTitlePaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of an internal frame title pane.voidSynthPainter. paintInternalFrameTitlePaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of an internal frame title pane.voidSynthPainter. paintLabelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a label.voidSynthPainter. paintLabelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a label.voidSynthPainter. paintListBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a list.voidSynthPainter. paintListBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a list.voidSynthPainter. paintMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a menu.voidSynthPainter. paintMenuBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a menu bar.voidSynthPainter. paintMenuBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a menu bar.voidSynthPainter. paintMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a menu.voidSynthPainter. paintMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a menu item.voidSynthPainter. paintMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a menu item.voidSynthPainter. paintOptionPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of an option pane.voidSynthPainter. paintOptionPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of an option pane.voidSynthPainter. paintPanelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a panel.voidSynthPainter. paintPanelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a panel.voidSynthPainter. paintPasswordFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a password field.voidSynthPainter. paintPasswordFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a password field.voidSynthPainter. paintPopupMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a popup menu.voidSynthPainter. paintPopupMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a popup menu.voidSynthPainter. paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a progress bar.voidSynthPainter. paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of a progress bar.voidSynthPainter. paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a progress bar.voidSynthPainter. paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of a progress bar.voidSynthPainter. paintProgressBarForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the foreground of a progress bar. is responsible for providing an indication of the progress of the progress bar.voidSynthPainter. paintRadioButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a radio button.voidSynthPainter. paintRadioButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a radio button.voidSynthPainter. paintRadioButtonMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a radio button menu item.voidSynthPainter. paintRadioButtonMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a radio button menu item.voidSynthPainter. paintRootPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a root pane.voidSynthPainter. paintRootPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a root pane.voidSynthPainter. paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a scrollbar.voidSynthPainter. paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of a scrollbar.voidSynthPainter. paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a scrollbar.voidSynthPainter. paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of a scrollbar.voidSynthPainter. paintScrollBarThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the thumb of a scrollbar.voidSynthPainter. paintScrollBarThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the thumb of a scrollbar.voidSynthPainter. paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the track of a scrollbar.voidSynthPainter. paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the track of a scrollbar.voidSynthPainter. paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the track of a scrollbar.voidSynthPainter. paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the track of a scrollbar.voidSynthPainter. paintScrollPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a scroll pane.voidSynthPainter. paintScrollPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a scroll pane.voidSynthPainter. paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a separator.voidSynthPainter. paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of a separator.voidSynthPainter. paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a separator.voidSynthPainter. paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of a separator.voidSynthPainter. paintSeparatorForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the foreground of a separator.voidSynthPainter. paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a slider.voidSynthPainter. paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of a slider.voidSynthPainter. paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a slider.voidSynthPainter. paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of a slider.voidSynthPainter. paintSliderThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the thumb of a slider.voidSynthPainter. paintSliderThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the thumb of a slider.voidSynthPainter. paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the track of a slider.voidSynthPainter. paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the track of a slider.voidSynthPainter. paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the track of a slider.voidSynthPainter. paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the track of a slider.voidSynthPainter. paintSpinnerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a spinner.voidSynthPainter. paintSpinnerBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a spinner.voidSynthPainter. paintSplitPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a split pane.voidSynthPainter. paintSplitPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a split pane.voidSynthPainter. paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the divider of a split pane.voidSynthPainter. paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the divider of a split pane.voidSynthPainter. paintSplitPaneDividerForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the foreground of the divider of a split pane.voidSynthPainter. paintSplitPaneDragDivider(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the divider, when the user is dragging the divider, of a split pane.voidSynthPainter. paintTabbedPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a tabbed pane.voidSynthPainter. paintTabbedPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a tabbed pane.voidSynthPainter. paintTabbedPaneContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the area that contains the content of the selected tab of a tabbed pane.voidSynthPainter. paintTabbedPaneContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the area that contains the content of the selected tab of a tabbed pane.voidSynthPainter. paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the area behind the tabs of a tabbed pane.voidSynthPainter. paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the area behind the tabs of a tabbed pane.voidSynthPainter. paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the area behind the tabs of a tabbed pane.voidSynthPainter. paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the area behind the tabs of a tabbed pane.voidSynthPainter. paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)Paints the background of a tab of a tabbed pane.voidSynthPainter. paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)Paints the background of a tab of a tabbed pane.voidSynthPainter. paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)Paints the border of a tab of a tabbed pane.voidSynthPainter. paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)Paints the border of a tab of a tabbed pane.voidSynthPainter. paintTableBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a table.voidSynthPainter. paintTableBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a table.voidSynthPainter. paintTableHeaderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the header of a table.voidSynthPainter. paintTableHeaderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the header of a table.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex)Paints text at the specified location.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)Paints text at the specified location.voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)Paints an icon and text.protected voidSynthProgressBarUI. paintText(SynthContext context, Graphics g, String title)Paints the component's text.voidSynthPainter. paintTextAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a text area.voidSynthPainter. paintTextAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a text area.voidSynthPainter. paintTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a text field.voidSynthPainter. paintTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a text field.voidSynthPainter. paintTextPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a text pane.voidSynthPainter. paintTextPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a text pane.protected voidSynthScrollBarUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)Paints the scrollbar thumb.protected voidSynthSliderUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)Paints the slider thumb.voidSynthPainter. paintToggleButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a toggle button.voidSynthPainter. paintToggleButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a toggle button.voidSynthPainter. paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a tool bar.voidSynthPainter. paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of a tool bar.voidSynthPainter. paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a tool bar.voidSynthPainter. paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of a tool bar.voidSynthPainter. paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the tool bar's content area.voidSynthPainter. paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the tool bar's content area.voidSynthPainter. paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the content area of a tool bar.voidSynthPainter. paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the content area of a tool bar.voidSynthPainter. paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the window containing the tool bar when it has been detached from its primary frame.voidSynthPainter. paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the background of the window containing the tool bar when it has been detached from its primary frame.voidSynthPainter. paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the window containing the tool bar when it has been detached from it's primary frame.voidSynthPainter. paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)Paints the border of the window containing the tool bar when it has been detached from it's primary frame.voidSynthPainter. paintToolTipBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a tool tip.voidSynthPainter. paintToolTipBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a tool tip.protected voidSynthScrollBarUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)Paints the scrollbar track.protected voidSynthSliderUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)Paints the slider track.voidSynthPainter. paintTreeBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of a tree.voidSynthPainter. paintTreeBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a tree.voidSynthPainter. paintTreeCellBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the row containing a cell in a tree.voidSynthPainter. paintTreeCellBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of the row containing a cell in a tree.voidSynthPainter. paintTreeCellFocus(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the focus indicator for a cell in a tree when it has focus.voidSynthPainter. paintViewportBackground(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the background of the viewport.voidSynthPainter. paintViewportBorder(SynthContext context, Graphics g, int x, int y, int w, int h)Paints the border of a viewport.voidSynthButtonUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthColorChooserUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthComboBoxUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthDesktopIconUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthDesktopPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthEditorPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthInternalFrameUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthLabelUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthListUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthMenuBarUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthMenuItemUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthMenuUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthOptionPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthPanelUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthPopupMenuUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthProgressBarUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthRootPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthScrollBarUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthScrollPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthSeparatorUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthSliderUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthSpinnerUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthSplitPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTabbedPaneUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTableHeaderUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTableUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTextAreaUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTextFieldUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthToolBarUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthToolTipUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthTreeUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component.voidSynthViewportUI. update(Graphics g, JComponent c)Notifies this UI delegate to repaint the specified component. -
Uses of Graphics in javax.swing.text
Methods in javax.swing.text that return Graphics Modifier and Type Method Description GraphicsView. getGraphics()Fetch aGraphicsfor rendering.Methods in javax.swing.text with parameters of type Graphics Modifier and Type Method Description protected intPasswordView. drawEchoCharacter(Graphics g, int x, int y, char c)Deprecated.protected voidPlainView. drawLine(int lineIndex, Graphics g, int x, int y)Deprecated.protected voidWrappedPlainView. drawLine(int p0, int p1, Graphics g, int x, int y)Deprecated.protected intPasswordView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intWrappedPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.static intUtilities. drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)Deprecated.protected intPasswordView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.protected intWrappedPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)Deprecated.voidAsyncBoxView. paint(Graphics g, Shape alloc)Render the view using the given allocation and rendering surface.voidBoxView. paint(Graphics g, Shape allocation)Renders theBoxViewusing the given rendering surface and area on that surface.voidCaret. paint(Graphics g)Renders the caret.voidComponentView. paint(Graphics g, Shape a)The real paint behavior occurs naturally from the association that the component has with its parent container (the same container hosting this view).voidDefaultCaret. paint(Graphics g)Renders the caret as a vertical line.voidDefaultHighlighter.DefaultHighlightPainter. paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)Paints a highlight.voidDefaultHighlighter. paint(Graphics g)Renders the highlights.voidFieldView. paint(Graphics g, Shape a)Renders using the given rendering surface and area on that surface.abstract voidGlyphView.GlyphPainter. paint(GlyphView v, Graphics g, Shape a, int p0, int p1)Paint the glyphs representing the given range.voidGlyphView. paint(Graphics g, Shape a)Renders a portion of a text style run.voidHighlighter.HighlightPainter. paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)Renders the highlight.voidHighlighter. paint(Graphics g)Renders the highlights.voidIconView. paint(Graphics g, Shape a)Paints the icon.voidParagraphView. paint(Graphics g, Shape a)Renders using the given rendering surface and area on that surface.voidPlainView. paint(Graphics g, Shape a)Renders using the given rendering surface and area on that surface.abstract voidView. paint(Graphics g, Shape allocation)Renders using the given rendering surface and area on that surface.voidWrappedPlainView. paint(Graphics g, Shape a)Renders using the given rendering surface and area on that surface.protected voidBoxView. paintChild(Graphics g, Rectangle alloc, int index)Paints a child.voidAsyncBoxView.ChildLocator. paintChildren(Graphics g)Paint the children that intersect the clip area.ShapeDefaultHighlighter.DefaultHighlightPainter. paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)Paints a portion of a highlight.abstract ShapeLayeredHighlighter.LayerPainter. paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)voidDefaultHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)When leaf Views (such as LabelView) are rendering they should call into this method.abstract voidLayeredHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)When leaf Views (such as LabelView) are rendering they should call into this method. -
Uses of Graphics in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type Graphics Modifier and Type Method Description voidBlockView. paint(Graphics g, Shape allocation)Renders using the given rendering surface and area on that surface.voidImageView. paint(Graphics g, Shape a)Paints the View.voidListView. paint(Graphics g, Shape allocation)Renders using the given rendering surface and area on that surface.voidParagraphView. paint(Graphics g, Shape a)Renders using the given rendering surface and area on that surface.voidStyleSheet.BoxPainter. paint(Graphics g, float x, float y, float w, float h, View v)Paints the CSS box according to the attributes given.voidStyleSheet.ListPainter. paint(Graphics g, float x, float y, float w, float h, View v, int item)Paints the CSS list decoration according to the attributes given.protected voidListView. paintChild(Graphics g, Rectangle alloc, int index)Paints one of the children; called by paint(). -
Uses of Graphics in javax.swing.tree
Methods in javax.swing.tree with parameters of type Graphics Modifier and Type Method Description voidDefaultTreeCellEditor.EditorContainer. paint(Graphics g)OverridesContainer.paintto paint the node's icon and use the selection color for the background.voidDefaultTreeCellRenderer. paint(Graphics g)Paints the value.