Uses of Class
java.awt.Graphics
-
Packages that use Graphics 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.image 提供用于创建和修改图像的类。java.awt.print 为常规打印API提供类和接口。java.beans 包含与开发 bean相关的类 - 基于JavaBeans™体系结构的组件。javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。javax.swing.border 提供用于在Swing组件周围绘制专用边框的类和接口。javax.swing.colorchooser 包含JColorChooser
组件使用的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing使用它们来提供其可插入的外观功能。javax.swing.plaf.basic 提供根据Basic外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观(曾代号为 Metal )构建的用户界面对象,这是默认的外观。javax.swing.plaf.multi 提供组合两种或多种外观的用户界面对象。javax.swing.plaf.synth Synth是一种可换肤的外观和感觉,其中所有的绘画都被委派。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供类HTMLEditorKit
和用于创建HTML文本编辑器的支持类。javax.swing.tree 提供用于处理javax.swing.JTree
类和接口。 -
-
Uses of Graphics in java.awt
Subclasses of Graphics in java.awt 变量和类型 类 描述 class
Graphics2D
此Graphics2D
类扩展了Graphics
类,以提供对几何,坐标转换,颜色管理和文本布局的更复杂控制。Methods in java.awt that return Graphics 变量和类型 方法 描述 abstract Graphics
Graphics. create()
创建一个新的Graphics
对象,该对象是此Graphics
对象的副本。Graphics
Graphics. create(int x, int y, int width, int height)
基于此Graphics
对象创建新的Graphics
对象,但具有新的平移和剪辑区域。Graphics
Component.BltBufferStrategy. getDrawGraphics()
Graphics
Component.FlipBufferStrategy. getDrawGraphics()
Graphics
Component. getGraphics()
为此组件创建图形上下文。abstract Graphics
Image. getGraphics()
创建用于绘制到屏幕外图像的图形上下文。abstract Graphics
PrintJob. getGraphics()
获取将绘制到下一页的Graphics对象。Methods in java.awt with parameters of type Graphics 变量和类型 方法 描述 LineMetrics
FontMetrics. getLineMetrics(char[] chars, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定字符数组的LineMetrics
对象。LineMetrics
FontMetrics. getLineMetrics(String str, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定的String
的LineMetrics
对象。LineMetrics
FontMetrics. getLineMetrics(String str, Graphics context)
返回指定的Graphics
上下文中指定的String
的LineMetrics
对象。LineMetrics
FontMetrics. getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定的CharacterIterator
的LineMetrics
对象。Rectangle2D
FontMetrics. getMaxCharBounds(Graphics context)
返回指定的Graphics
上下文中具有最大边界的字符的边界。Rectangle2D
FontMetrics. getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定字符数组的边界。Rectangle2D
FontMetrics. getStringBounds(String str, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定的String
的边界。Rectangle2D
FontMetrics. getStringBounds(String str, Graphics context)
返回指定的Graphics
上下文中指定的String
的边界。Rectangle2D
FontMetrics. getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)
返回指定的Graphics
上下文中指定的CharacterIterator
中索引的字符的边界。void
Canvas. paint(Graphics g)
绘制这个画布。void
Component. paint(Graphics g)
绘制这个组件。void
Container. paint(Graphics g)
涂抹容器。void
Window. paint(Graphics g)
涂抹容器。void
Component. paintAll(Graphics g)
绘制此组件及其所有子组件。void
Container. paintComponents(Graphics g)
绘制此容器中的每个组件。void
Component. print(Graphics g)
打印此组件。void
Container. print(Graphics g)
打印容器。void
Component. printAll(Graphics g)
打印此组件及其所有子组件。void
Container. printComponents(Graphics g)
打印此容器中的每个组件。void
ScrollPane. printComponents(Graphics g)
在此滚动窗格中打印该组件。void
Canvas. update(Graphics g)
更新此画布。void
Component. update(Graphics g)
更新此组件。void
Container. update(Graphics g)
更新容器。 -
Uses of Graphics in java.awt.image
Methods in java.awt.image that return Graphics 变量和类型 方法 描述 abstract Graphics
BufferStrategy. getDrawGraphics()
为绘图缓冲区创建图形上下文。Graphics
AbstractMultiResolutionImage. getGraphics()
根据基础Image#getGraphics()
方法的合同,此实现将始终抛出UnsupportedOperationException
因为只有屏幕外图像才能返回Graphics
对象。Graphics
BufferedImage. getGraphics()
此方法返回Graphics2D
,但此处是为了向后兼容。Graphics
VolatileImage. getGraphics()
此方法返回Graphics2D
,但此处是为了向后兼容。 -
Uses of Graphics in java.awt.print
Methods in java.awt.print with parameters of type Graphics 变量和类型 方法 描述 int
Printable. print(Graphics graphics, PageFormat pageFormat, int pageIndex)
将指定索引处的页面以指定格式打印到指定的Graphics
上下文中。 -
Uses of Graphics in java.beans
Methods in java.beans with parameters of type Graphics 变量和类型 方法 描述 void
PropertyEditor. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕空间的给定区域中。void
PropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕空间的给定区域中。 -
Uses of Graphics in javax.swing
Subclasses of Graphics in javax.swing 变量和类型 类 描述 class
DebugGraphics
图形子类支持图形调试。Methods in javax.swing that return Graphics 变量和类型 方法 描述 Graphics
DebugGraphics. create()
覆盖Graphics.create
以返回DebugGraphics对象。Graphics
DebugGraphics. create(int x, int y, int width, int height)
覆盖Graphics.create
以返回DebugGraphics对象。protected Graphics
JComponent. getComponentGraphics(Graphics g)
返回用于绘制此组件的图形对象。Graphics
JApplet. getGraphics()
已过时。为此组件创建图形上下文。Graphics
JComponent. getGraphics()
返回此组件的图形上下文,它允许您在组件上绘制。Graphics
JDialog. getGraphics()
为此组件创建图形上下文。Graphics
JFrame. getGraphics()
为此组件创建图形上下文。Graphics
JWindow. getGraphics()
为此组件创建图形上下文。Methods in javax.swing with parameters of type Graphics 变量和类型 方法 描述 protected Graphics
JComponent. getComponentGraphics(Graphics g)
返回用于绘制此组件的图形对象。void
CellRendererPane. paint(Graphics g)
不应该叫。void
JComponent. paint(Graphics g)
由Swing调用以绘制组件。void
JLayer. paint(Graphics g)
代表所有绘画到LayerUI
对象。void
JLayeredPane. paint(Graphics g)
在指定的图形上下文中绘制此JLayeredPane。void
JViewport. paint(Graphics g)
根据是否启用了backingStore
,要么通过后备存储器绘制图像,要么仅绘制最近曝光的部件,使用后备存储器“blit”其余部分。protected void
AbstractButton. paintBorder(Graphics g)
如果BorderPainted
属性为true且按钮具有边框,则BorderPainted
按钮的边框。protected void
JComponent. paintBorder(Graphics g)
绘制组件的边框。protected void
JMenuBar. paintBorder(Graphics g)
如果BorderPainted
属性为true,则绘制菜单栏的边界。protected void
JPopupMenu. paintBorder(Graphics g)
如果borderPainted
属性为true
则绘制弹出菜单的边框。protected void
JProgressBar. paintBorder(Graphics g)
如果borderPainted
属性为true
则绘制进度条的边框。protected void
JToolBar. paintBorder(Graphics g)
如果borderPainted
属性为true
则绘制工具栏的边框。protected void
JComponent. paintChildren(Graphics g)
涂抹这个组件的孩子。protected void
JSplitPane. paintChildren(Graphics g)
在超级消息finishedPaintingChildren
后,子finishedPaintingChildren
用finishedPaintingChildren
向UIfinishedPaintingChildren
消息,以及绘制边框。protected void
Box.Filler. paintComponent(Graphics g)
绘制此Filler
。protected void
Box. paintComponent(Graphics g)
绘制此Box
。void
CellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
调用this.paintComponent(g,c,p,x,y,w,h,false)。void
CellRendererPane. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
在图形对象g上绘制单元格渲染器组件c。void
CellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)
使用矩形x,y,width,height字段调用this.paintComponent()。protected void
JComponent. paintComponent(Graphics g)
如果UI委托是非null
,则调用UI委托的绘制方法。protected void
JInternalFrame. paintComponent(Graphics g)
在拖动内部框架时,重写以允许优化绘制。protected void
JLayer. paintComponent(Graphics g)
此方法为空,因为所有绘制都是通过JLayer.paint(Graphics)
和ComponentUI.update(Graphics, JComponent)
方法完成的static void
SwingUtilities. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)
将组件绘制到指定的Graphics
。static void
SwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)
将组件绘制到指定的Graphics
。void
Icon. paintIcon(Component c, Graphics g, int x, int y)
在指定位置绘制图标。void
ImageIcon. paintIcon(Component c, Graphics g, int x, int y)
绘制图标。void
JComponent. print(Graphics g)
调用此方法将组件打印到指定的Graphics
。void
JComponent. printAll(Graphics g)
调用此方法以打印组件。protected void
JComponent. printBorder(Graphics g)
打印组件的边框。protected void
JComponent. printChildren(Graphics g)
打印此组件的子项。protected void
JComponent. printComponent(Graphics g)
这在打印操作期间被调用。void
CellRendererPane. update(Graphics g)
不应该叫。void
JApplet. update(Graphics g)
已过时。只需致电paint(g)
。void
JComponent. update(Graphics g)
致电paint
。void
JDialog. update(Graphics g)
致电paint(g)
。void
JFrame. update(Graphics g)
只需致电paint(g)
。void
JWindow. update(Graphics g)
致电paint(g)
。Constructors in javax.swing with parameters of type Graphics 构造器 描述 DebugGraphics(Graphics graphics)
从支持减速绘制的现有图形上下文构造调试图形上下文。DebugGraphics(Graphics graphics, JComponent component)
从现有图形上下文构造调试图形上下文,从而减慢指定组件的绘制速度。 -
Uses of Graphics in javax.swing.border
Methods in javax.swing.border with parameters of type Graphics 变量和类型 方法 描述 void
AbstractBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
此默认实现不进行绘制。void
BevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
Border. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
CompoundBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
通过使用指定的位置和大小绘制外边框,然后使用外边框的插图在指定位置和大小偏移处绘制内边框来绘制复合边框。void
EmptyBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
默认情况下没有绘图。void
EtchedBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
LineBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
MatteBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
涂抹哑光边框。void
SoftBevelBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
StrokeBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。void
TitledBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小绘制指定组件的边框。protected void
BevelBorder. paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小为指定的组件绘制降低的斜角。protected void
BevelBorder. paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
使用指定的位置和大小为指定的组件绘制凸起的斜角。 -
Uses of Graphics in javax.swing.colorchooser
Methods in javax.swing.colorchooser with parameters of type Graphics 变量和类型 方法 描述 void
AbstractColorChooserPanel. paint(Graphics g)
绘制面板。 -
Uses of Graphics in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type Graphics 变量和类型 方法 描述 abstract void
SplitPaneUI. finishedPaintingChildren(JSplitPane jc, Graphics g)
在JSplitPane之后传真,接收器为其孩子提供油漆的外观和感觉。void
ComponentUI. paint(Graphics g, JComponent c)
适当地绘制指定的组件以获得外观。void
LayerUI. paint(Graphics g, JComponent c)
绘制指定的组件。void
ComponentUI. update(Graphics g, JComponent c)
通知此UI委托,是时候绘制指定的组件。 -
Uses of Graphics in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type Graphics 变量和类型 方法 描述 static void
BasicGraphicsUtils. drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
画一个表圈。protected void
BasicTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)
绘制以(x,y)为中心的icon
。protected void
BasicTreeUI. drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)
画一条水平虚线。static void
BasicGraphicsUtils. drawDashedRect(Graphics g, int x, int y, int width, int height)
绘制虚线矩形。protected void
BasicTreeUI. drawDashedVerticalLine(Graphics g, int x, int y1, int y2)
画一条垂直虚线。static void
BasicGraphicsUtils. drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
绘制一个蚀刻的矩形。static void
BasicGraphicsUtils. drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
画一个凹槽。static void
BasicGraphicsUtils. drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
画一个较低的表圈。static void
BasicGraphicsUtils. drawString(Graphics g, String text, int underlinedChar, int x, int y)
在位置(x,y)处绘制带有图形g
的字符串,就像g.drawString
那样。static void
BasicGraphicsUtils. drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)
画一个字符串与图形g
在位置(x
,y
)就像g.drawString
会。void
BasicSplitPaneUI. finishedPaintingChildren(JSplitPane sp, Graphics g)
在指定的拆分窗格完成绘制其子项时调用。protected Point
BasicProgressBarUI. getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
指定将绘制进度字符串的位置。void
BasicLabelUI. paint(Graphics g, JComponent c)
使用前景色绘制标签文本,如果标签是不透明的,则使用背景颜色绘制整个背景。void
BasicListUI. paint(Graphics g, JComponent c)
绘制与Graphics对象clipRect相交的行。void
BasicProgressBarUI. paint(Graphics g, JComponent c)
代表绘制为两种方法之一:paintDeterminate或paintIndeterminate。void
BasicRadioButtonUI. paint(Graphics g, JComponent c)
画出单选按钮void
BasicSplitPaneDivider. paint(Graphics g)
涂抹分隔线。void
BasicTableUI. paint(Graphics g, JComponent c)
绘制在installUI()中设置的table
实例的表示形式。void
BasicTextUI. paint(Graphics g, JComponent c)
绘制界面。protected void
BasicMenuItemUI. paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
绘制菜单项的背景。protected void
BasicTextUI. paintBackground(Graphics g)
为视图绘制背景。protected void
BasicButtonUI. paintButtonPressed(Graphics g, AbstractButton b)
按下按钮。protected void
BasicListUI. paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex)
绘制一个列表单元格:计算相关状态,获取“橡皮图章”单元格渲染器组件,然后使用CellRendererPane
绘制它。protected void
BasicTabbedPaneUI. paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
绘制内容边框。protected void
BasicTabbedPaneUI. paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
绘制内容边框底边。protected void
BasicTabbedPaneUI. paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
绘制内容边框左边缘。protected void
BasicTabbedPaneUI. paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
绘制内容边框右边缘。protected void
BasicTabbedPaneUI. paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
绘制内容边框上边缘。void
BasicComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前选定的项目。void
BasicComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前所选项目的背景。protected void
BasicScrollBarUI. paintDecreaseHighlight(Graphics g)
绘制减少高光。protected void
BasicProgressBarUI. paintDeterminate(Graphics g, JComponent c)
适用于几乎所有线性,确定进度条的正确用途的涂料方法。protected void
BasicLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
在textX上绘制clippedText,使用background.lighter()绘制textY,然后使用background.darker()向下移动一个像素。protected void
BasicToolBarUI. paintDragWindow(Graphics g)
绘制用于拖动的窗口的内容。protected void
BasicTreeUI. paintDropLine(Graphics g)
画下线。protected void
BasicLabelUI. paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY)
使用标签前景色在textX,textY上绘制clippedText。protected void
BasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的展开(切换)部分。protected void
BasicButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
绘制一个聚焦按钮。protected void
BasicRadioButtonUI. paintFocus(Graphics g, Rectangle textRect, Dimension size)
油漆聚焦单选按钮。void
BasicSliderUI. paintFocus(Graphics g)
涂料重点。protected void
BasicTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
绘制焦点指示器。protected void
BasicSliderUI. paintHorizontalLabel(Graphics g, int value, Component label)
为标签表中的每个标签调用。protected void
BasicTreeUI. paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
画一条水平线。protected void
BasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
涂抹腿部的水平部分。protected void
BasicButtonUI. paintIcon(Graphics g, JComponent c, Rectangle iconRect)
绘制当前按钮的图标。protected void
BasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
画一个图标。protected void
BasicToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
在指定位置绘制图标。protected void
BasicScrollBarUI. paintIncreaseHighlight(Graphics g)
绘制增加的亮点。protected void
BasicProgressBarUI. paintIndeterminate(Graphics g, JComponent c)
适用于所有线性弹跳箱进度条的通用油漆方法。void
BasicSliderUI. paintLabels(Graphics g)
涂上标签。protected void
BasicSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
绘制水平滑块的主要刻度。protected void
BasicSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
绘制垂直滑块的主要刻度。protected void
BasicMenuItemUI. paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
绘制菜单项。protected void
BasicSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
为水平滑块涂上次要刻度。protected void
BasicSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
绘制垂直滑块的小刻度。protected void
BasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的渲染器部分。protected void
BasicTextUI. paintSafely(Graphics g)
安全地绘制界面,保证模型不会从该线程的视图中更改。protected void
BasicProgressBarUI. paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
绘制进度字符串。protected void
BasicTabbedPaneUI. paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
绘制标签。protected void
BasicTabbedPaneUI. paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
绘制选项卡区域中的选项卡。protected void
BasicTabbedPaneUI. paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
绘制选项卡背景。protected void
BasicTabbedPaneUI. paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
此函数绘制每个选项卡周围的边框,此功能现在可以绘制选项卡的背景。protected void
BasicButtonUI. paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
呈现当前按钮文本的方法。protected void
BasicButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
呈现当前按钮文本的方法。protected void
BasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
呈现当前菜单项的文本。protected void
BasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
绘制文字。protected void
BasicScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
涂拇指。void
BasicSliderUI. paintThumb(Graphics g)
涂拇指。void
BasicSliderUI. paintTicks(Graphics g)
涂蜱。protected void
BasicInternalFrameTitlePane. paintTitleBackground(Graphics g)
从paintComponent调用。protected void
BasicScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
绘制轨道。void
BasicSliderUI. paintTrack(Graphics g)
油漆跟踪。void
BasicArrowButton. paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
涂一个三角形。protected void
BasicSliderUI. paintVerticalLabel(Graphics g, int value, Component label)
为标签表中的每个标签调用。protected void
BasicTreeUI. paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
画一条垂直线。protected void
BasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
涂抹腿部的垂直部分。void
BasicMenuItemUI. update(Graphics g, JComponent c)
我们在paintMenuItem()中绘制背景,因此覆盖更新(默认情况下填充不透明组件的背景)只调用paint()。void
BasicTextUI. update(Graphics g, JComponent c)
超类以无法控制的方式绘制背景(即人们可能希望将图像平铺到背景中)。 -
Uses of Graphics in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type Graphics 变量和类型 方法 描述 protected void
MetalCheckBoxIcon. drawCheck(Component c, Graphics g, int x, int y)
涂料MetalCheckBoxIcon
。protected void
MetalTabbedPaneUI. paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制底部标签边框。void
MetalComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
如有必要,绘制当前选定的项目。void
MetalComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
如有必要,绘制当前所选项目的背景。void
MetalProgressBarUI. paintDeterminate(Graphics g, JComponent c)
在进度条上绘制一些特殊的突出显示。protected void
MetalLabelUI. paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
只需将文本绘制为灰色(Label.disabledForeground)而不是标签前景色。protected void
MetalTreeUI. paintHorizontalSeparators(Graphics g, JComponent c)
绘制水平分隔符。void
MetalComboBoxIcon. paintIcon(Component c, Graphics g, int x, int y)
绘制水平条纹protected void
MetalToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
在空间iconRect
绘制按钮b
的相应图标。void
MetalProgressBarUI. paintIndeterminate(Graphics g, JComponent c)
在进度条和弹跳框上画出一些特殊的突出显示。protected void
MetalTabbedPaneUI. paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制左侧标签边框。void
MetalIconFactory.TreeControlIcon. paintMe(Component c, Graphics g, int x, int y)
TreeControlIcon
。void
MetalInternalFrameTitlePane. paintPalette(Graphics g)
涂料调色板。protected void
MetalTabbedPaneUI. paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制右侧标签边框。protected void
MetalTabbedPaneUI. paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制顶部选项卡边框。void
MetalButtonUI. update(Graphics g, JComponent c)
如有必要,绘制组件的背景,然后调用paint
。void
MetalMenuBarUI. update(Graphics g, JComponent c)
如有必要,绘制组件的背景,然后调用paint
。void
MetalToggleButtonUI. update(Graphics g, JComponent c)
如有必要,绘制组件的背景,然后调用paint
。void
MetalToolBarUI. update(Graphics g, JComponent c)
如有必要,绘制组件的背景,然后调用paint
。 -
Uses of Graphics in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type Graphics 变量和类型 方法 描述 void
MultiSplitPaneUI. finishedPaintingChildren(JSplitPane a, Graphics b)
在由此对象处理的每个UI上调用finishedPaintingChildren
方法。void
MultiButtonUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiColorChooserUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiComboBoxUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiDesktopIconUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiDesktopPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiFileChooserUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiInternalFrameUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiLabelUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiListUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiMenuBarUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiMenuItemUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiOptionPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiPanelUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiPopupMenuUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiProgressBarUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiRootPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiScrollBarUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiScrollPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiSeparatorUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiSliderUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiSpinnerUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiSplitPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiTabbedPaneUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiTableHeaderUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiTableUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiTextUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiToolBarUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiToolTipUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiTreeUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiViewportUI. paint(Graphics a, JComponent b)
在由此对象处理的每个UI上调用paint
方法。void
MultiButtonUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiColorChooserUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiComboBoxUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiDesktopIconUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiDesktopPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiFileChooserUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiInternalFrameUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiLabelUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiListUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiMenuBarUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiMenuItemUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiOptionPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiPanelUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiPopupMenuUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiProgressBarUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiRootPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiScrollBarUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiScrollPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiSeparatorUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiSliderUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiSpinnerUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiSplitPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiTabbedPaneUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiTableHeaderUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiTableUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiTextUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiToolBarUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiToolTipUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiTreeUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。void
MultiViewportUI. update(Graphics a, JComponent b)
在由此对象处理的每个UI上调用update
方法。 -
Uses of Graphics in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type Graphics 变量和类型 方法 描述 void
SynthGraphicsUtils. drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2)
在两个端点之间画一条线。void
SynthGraphicsUtils. drawLine(SynthContext context, Object paintKey, Graphics g, int x1, int y1, int x2, int y2, Object styleKey)
在两个端点之间画一条线。void
SynthButtonUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthButtonUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthColorChooserUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthColorChooserUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthComboBoxUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthComboBoxUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthDesktopIconUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthDesktopIconUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthDesktopPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthDesktopPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。protected void
SynthEditorPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthInternalFrameUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthInternalFrameUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthLabelUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthLabelUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthMenuBarUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthMenuBarUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthMenuItemUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthMenuItemUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthMenuUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthMenuUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthOptionPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthOptionPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthPanelUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthPanelUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthPopupMenuUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthPopupMenuUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthProgressBarUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthProgressBarUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthRootPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthRootPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthScrollBarUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthScrollBarUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthScrollPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthScrollPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthSeparatorUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthSeparatorUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthSliderUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthSliderUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthSpinnerUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthSpinnerUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthSplitPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthSplitPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthTabbedPaneUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthTabbedPaneUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthTableHeaderUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthTableHeaderUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthTableUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthTableUI. paint(SynthContext context, Graphics g)
绘制指定的组件。protected void
SynthTextAreaUI. paint(SynthContext context, Graphics g)
绘制指定的组件。protected void
SynthTextFieldUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthToolBarUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthToolBarUI. paint(SynthContext context, Graphics g)
绘制工具栏。void
SynthToolTipUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthToolTipUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthTreeUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthTreeUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthViewportUI. paint(Graphics g, JComponent c)
根据外观和感觉绘制指定的组件。protected void
SynthViewportUI. paint(SynthContext context, Graphics g)
绘制指定的组件。void
SynthPainter. paintArrowButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制箭头按钮的背景。void
SynthPainter. paintArrowButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制箭头按钮的边框。void
SynthPainter. paintArrowButtonForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int direction)
绘制箭头按钮的前景。protected void
SynthTextAreaUI. paintBackground(Graphics g)
为视图绘制背景。protected void
SynthTextFieldUI. paintBackground(Graphics g)
为视图绘制背景。void
SynthUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
涂边框。void
SynthViewportUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
涂边框。void
SynthPainter. paintButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制按钮的背景。void
SynthPainter. paintButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制按钮的边框。void
SynthPainter. paintCheckBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制复选框的背景。void
SynthPainter. paintCheckBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制复选框的边框。void
SynthPainter. paintCheckBoxMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制复选框菜单项的背景。void
SynthPainter. paintCheckBoxMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制复选框菜单项的边框。void
SynthPainter. paintColorChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制颜色选择器的背景。void
SynthPainter. paintColorChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制颜色选择器的边框。void
SynthPainter. paintComboBoxBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制组合框的背景。void
SynthPainter. paintComboBoxBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制组合框的边框。protected void
SynthToolBarUI. paintContent(SynthContext context, Graphics g, Rectangle bounds)
绘制工具栏内容。void
SynthComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前选定的项目。void
SynthPainter. paintDesktopIconBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制桌面图标的背景。void
SynthPainter. paintDesktopIconBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制桌面图标的边框。void
SynthPainter. paintDesktopPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制桌面窗格的背景。void
SynthPainter. paintDesktopPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制桌面窗格的背景。void
SynthPainter. paintEditorPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制编辑器窗格的背景。void
SynthPainter. paintEditorPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制编辑器窗格的边框。void
SynthPainter. paintFileChooserBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文件选择器的背景。void
SynthPainter. paintFileChooserBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文件选择器的边框。void
SynthPainter. paintFormattedTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制格式化文本字段的背景。void
SynthPainter. paintFormattedTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制格式化文本字段的边框。static void
SynthGraphicsUtils. paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height)
绘制图标。void
SynthIcon. paintIcon(SynthContext context, Graphics g, int x, int y, int width, int height)
在给定合成器上下文的指定位置绘制图标。void
SynthPainter. paintInternalFrameBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制内部框架的背景。void
SynthPainter. paintInternalFrameBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制内部框架的边框。void
SynthPainter. paintInternalFrameTitlePaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制内部框架标题窗格的背景。void
SynthPainter. paintInternalFrameTitlePaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制内部框架标题窗格的边框。void
SynthPainter. paintLabelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制标签的背景。void
SynthPainter. paintLabelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制标签的边框。void
SynthPainter. paintListBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制列表的背景。void
SynthPainter. paintListBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制列表的边框。void
SynthPainter. paintMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单的背景。void
SynthPainter. paintMenuBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单栏的背景。void
SynthPainter. paintMenuBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单栏的边框。void
SynthPainter. paintMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单的边框。void
SynthPainter. paintMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单项的背景。void
SynthPainter. paintMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制菜单项的边框。void
SynthPainter. paintOptionPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项窗格的背景。void
SynthPainter. paintOptionPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项窗格的边框。void
SynthPainter. paintPanelBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制面板的背景。void
SynthPainter. paintPanelBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制面板的边框。void
SynthPainter. paintPasswordFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制密码字段的背景。void
SynthPainter. paintPasswordFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制密码字段的边框。void
SynthPainter. paintPopupMenuBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制弹出菜单的背景。void
SynthPainter. paintPopupMenuBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制弹出菜单的边框。void
SynthPainter. paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制进度条的背景。void
SynthPainter. paintProgressBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制进度条的背景。void
SynthPainter. paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制进度条的边框。void
SynthPainter. paintProgressBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制进度条的边框。void
SynthPainter. paintProgressBarForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制进度条的前景。 负责提供进度条进度的指示。void
SynthPainter. paintRadioButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制单选按钮的背景。void
SynthPainter. paintRadioButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制单选按钮的边框。void
SynthPainter. paintRadioButtonMenuItemBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制单选按钮菜单项的背景。void
SynthPainter. paintRadioButtonMenuItemBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制单选按钮菜单项的边框。void
SynthPainter. paintRootPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制根窗格的背景。void
SynthPainter. paintRootPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制根窗格的边框。void
SynthPainter. paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动条的背景。void
SynthPainter. paintScrollBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条的背景。void
SynthPainter. paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动条的边框。void
SynthPainter. paintScrollBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条的边框。void
SynthPainter. paintScrollBarThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条的拇指背景。void
SynthPainter. paintScrollBarThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条的拇指边框。void
SynthPainter. paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动条轨道的背景。void
SynthPainter. paintScrollBarTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条轨道的背景。void
SynthPainter. paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动条轨道的边框。void
SynthPainter. paintScrollBarTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滚动条轨道的边框。void
SynthPainter. paintScrollPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动窗格的背景。void
SynthPainter. paintScrollPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滚动窗格的边框。void
SynthPainter. paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制分隔符的背景。void
SynthPainter. paintSeparatorBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制分隔符的背景。void
SynthPainter. paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制分隔符的边框。void
SynthPainter. paintSeparatorBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制分隔符的边框。void
SynthPainter. paintSeparatorForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制分隔符的前景。void
SynthPainter. paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滑块的背景。void
SynthPainter. paintSliderBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块的背景。void
SynthPainter. paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滑块的边框。void
SynthPainter. paintSliderBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块的边框。void
SynthPainter. paintSliderThumbBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块拇指的背景。void
SynthPainter. paintSliderThumbBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块拇指的边框。void
SynthPainter. paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滑块轨道的背景。void
SynthPainter. paintSliderTrackBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块轨道的背景。void
SynthPainter. paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制滑块轨道的边框。void
SynthPainter. paintSliderTrackBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制滑块轨道的边框。void
SynthPainter. paintSpinnerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制微调器的背景。void
SynthPainter. paintSpinnerBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制微调器的边框。void
SynthPainter. paintSplitPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制拆分窗格的背景。void
SynthPainter. paintSplitPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制拆分窗格的边框。void
SynthPainter. paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制拆分窗格的分隔符的背景。void
SynthPainter. paintSplitPaneDividerBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制拆分窗格的分隔符的背景。void
SynthPainter. paintSplitPaneDividerForeground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制拆分窗格的分隔符的前景。void
SynthPainter. paintSplitPaneDragDivider(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
当用户拖动分隔符时,绘制分割窗格的分隔符。void
SynthPainter. paintTabbedPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项卡式窗格的背景。void
SynthPainter. paintTabbedPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项卡式窗格的边框。void
SynthPainter. paintTabbedPaneContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制包含选项卡式窗格的选定选项卡内容的区域的背景。void
SynthPainter. paintTabbedPaneContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制包含选项卡式窗格的选定选项卡内容的区域的边框。void
SynthPainter. paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项卡式窗格选项卡后面区域的背景。void
SynthPainter. paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制选项卡式窗格选项卡后面区域的背景。void
SynthPainter. paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制选项卡式窗格选项卡后面区域的边框。void
SynthPainter. paintTabbedPaneTabAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制选项卡式窗格选项卡后面区域的边框。void
SynthPainter. paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)
绘制选项卡式窗格的选项卡的背景。void
SynthPainter. paintTabbedPaneTabBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)
绘制选项卡式窗格的选项卡的背景。void
SynthPainter. paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex)
绘制选项卡式窗格的选项卡边框。void
SynthPainter. paintTabbedPaneTabBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int tabIndex, int orientation)
绘制选项卡式窗格的选项卡边框。void
SynthPainter. paintTableBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制表格的背景。void
SynthPainter. paintTableBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制表格的边框。void
SynthPainter. paintTableHeaderBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制表格标题的背景。void
SynthPainter. paintTableHeaderBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制表格标题的边框。void
SynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, int x, int y, int mnemonicIndex)
在指定位置绘制文本。void
SynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
在指定位置绘制文本。void
SynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset)
绘制图标和文本。protected void
SynthProgressBarUI. paintText(SynthContext context, Graphics g, String title)
绘制组件的文本。void
SynthPainter. paintTextAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本区域的背景。void
SynthPainter. paintTextAreaBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本区域的边框。void
SynthPainter. paintTextFieldBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本字段的背景。void
SynthPainter. paintTextFieldBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本字段的边框。void
SynthPainter. paintTextPaneBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本窗格的背景。void
SynthPainter. paintTextPaneBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制文本窗格的边框。protected void
SynthScrollBarUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
绘制滚动条拇指。protected void
SynthSliderUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
画滑块拇指。void
SynthPainter. paintToggleButtonBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制切换按钮的背景。void
SynthPainter. paintToggleButtonBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制切换按钮的边框。void
SynthPainter. paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具栏的背景。void
SynthPainter. paintToolBarBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制工具栏的背景。void
SynthPainter. paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具栏的边框。void
SynthPainter. paintToolBarBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制工具栏的边框。void
SynthPainter. paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具栏内容区域的背景。void
SynthPainter. paintToolBarContentBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制工具栏内容区域的背景。void
SynthPainter. paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具栏内容区域的边框。void
SynthPainter. paintToolBarContentBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
绘制工具栏内容区域的边框。void
SynthPainter. paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
当工具栏从主框架上拆下时,绘制包含工具栏的窗口的背景。void
SynthPainter. paintToolBarDragWindowBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
当工具栏从主框架上拆下时,绘制包含工具栏的窗口的背景。void
SynthPainter. paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
当工具栏从主框架上拆下时,绘制包含工具栏的窗口的边框。void
SynthPainter. paintToolBarDragWindowBorder(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation)
当工具栏从主框架上拆下时,绘制包含工具栏的窗口的边框。void
SynthPainter. paintToolTipBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具提示的背景。void
SynthPainter. paintToolTipBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制工具尖端的边框。protected void
SynthScrollBarUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
绘制滚动条轨道。protected void
SynthSliderUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
绘制滑块轨道。void
SynthPainter. paintTreeBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制树的背景。void
SynthPainter. paintTreeBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制树的边界。void
SynthPainter. paintTreeCellBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制包含树中单元格的行的背景。void
SynthPainter. paintTreeCellBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制包含树中单元格的行的边框。void
SynthPainter. paintTreeCellFocus(SynthContext context, Graphics g, int x, int y, int w, int h)
当焦点具有焦点时,为树中的单元格绘制焦点指示符。void
SynthPainter. paintViewportBackground(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制视口的背景。void
SynthPainter. paintViewportBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
绘制视口的边框。void
SynthButtonUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthColorChooserUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthComboBoxUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthDesktopIconUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthDesktopPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthEditorPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthInternalFrameUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthLabelUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthListUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthMenuBarUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthMenuItemUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthMenuUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthOptionPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthPanelUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthPopupMenuUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthProgressBarUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthRootPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthScrollBarUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthScrollPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthSeparatorUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthSliderUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthSpinnerUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthSplitPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTabbedPaneUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTableHeaderUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTableUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTextAreaUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTextFieldUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthToolBarUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthToolTipUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthTreeUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。void
SynthViewportUI. update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。 -
Uses of Graphics in javax.swing.text
Methods in javax.swing.text that return Graphics 变量和类型 方法 描述 Graphics
View. getGraphics()
获取Graphics
进行渲染。Methods in javax.swing.text with parameters of type Graphics 变量和类型 方法 描述 protected int
PasswordView. drawEchoCharacter(Graphics g, int x, int y, char c)
protected void
PlainView. drawLine(int lineIndex, Graphics g, int x, int y)
protected void
WrappedPlainView. drawLine(int p0, int p1, Graphics g, int x, int y)
protected int
PasswordView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)
protected int
PlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)
protected int
WrappedPlainView. drawSelectedText(Graphics g, int x, int y, int p0, int p1)
static int
Utilities. drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)
protected int
PasswordView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
protected int
PlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
protected int
WrappedPlainView. drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
void
AsyncBoxView. paint(Graphics g, Shape alloc)
使用给定的分配和渲染表面渲染视图。void
BoxView. paint(Graphics g, Shape allocation)
使用给定的渲染表面和该表面上的区域渲染BoxView
。void
Caret. paint(Graphics g)
呈现插入符号。void
ComponentView. paint(Graphics g, Shape a)
真实的绘制行为自然发生在组件与其父容器(托管此视图的同一容器)之间的关联中。void
DefaultCaret. paint(Graphics g)
将插入符呈现为垂直线。void
DefaultHighlighter.DefaultHighlightPainter. paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
画一个亮点。void
DefaultHighlighter. paint(Graphics g)
呈现亮点。void
FieldView. paint(Graphics g, Shape a)
使用给定的渲染表面和该表面上的区域进行渲染。abstract void
GlyphView.GlyphPainter. paint(GlyphView v, Graphics g, Shape a, int p0, int p1)
绘制代表给定范围的字形。void
GlyphView. paint(Graphics g, Shape a)
呈现文本样式运行的一部分。void
Highlighter.HighlightPainter. paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
呈现突出显示。void
Highlighter. paint(Graphics g)
呈现亮点。void
IconView. paint(Graphics g, Shape a)
绘制图标。void
ParagraphView. paint(Graphics g, Shape a)
使用给定的渲染表面和该表面上的区域进行渲染。void
PlainView. paint(Graphics g, Shape a)
使用给定的渲染表面和该表面上的区域进行渲染。abstract void
View. paint(Graphics g, Shape allocation)
使用给定的渲染表面和该表面上的区域进行渲染。void
WrappedPlainView. paint(Graphics g, Shape a)
使用给定的渲染表面和该表面上的区域进行渲染。protected void
BoxView. paintChild(Graphics g, Rectangle alloc, int index)
涂孩子。void
AsyncBoxView.ChildLocator. paintChildren(Graphics g)
绘制与剪辑区域相交的子项。Shape
DefaultHighlighter.DefaultHighlightPainter. paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
绘制亮点的一部分。abstract Shape
LayeredHighlighter.LayerPainter. paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
void
DefaultHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
当叶子视图(例如LabelView)呈现时,它们应调用此方法。abstract void
LayeredHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
当叶子视图(例如LabelView)呈现时,它们应调用此方法。 -
Uses of Graphics in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type Graphics 变量和类型 方法 描述 void
BlockView. paint(Graphics g, Shape allocation)
使用给定的渲染表面和该表面上的区域进行渲染。void
ImageView. paint(Graphics g, Shape a)
绘制视图。void
ListView. paint(Graphics g, Shape allocation)
使用给定的渲染表面和该表面上的区域进行渲染。void
ParagraphView. paint(Graphics g, Shape a)
使用给定的渲染表面和该表面上的区域进行渲染。void
StyleSheet.BoxPainter. paint(Graphics g, float x, float y, float w, float h, View v)
根据给定的属性绘制CSS框。void
StyleSheet.ListPainter. paint(Graphics g, float x, float y, float w, float h, View v, int item)
根据给定的属性绘制CSS列表装饰。protected void
ListView. paintChild(Graphics g, Rectangle alloc, int index)
给一个孩子画画; 由paint()调用。 -
Uses of Graphics in javax.swing.tree
Methods in javax.swing.tree with parameters of type Graphics 变量和类型 方法 描述 void
DefaultTreeCellEditor.EditorContainer. paint(Graphics g)
覆盖Container.paint
以绘制节点的图标并使用背景的选择颜色。void
DefaultTreeCellRenderer. paint(Graphics g)
塑造价值。
-