Uses of Class
java.awt.Graphics
-
Packages that use Graphics 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.image 提供创建和修改图像的类。java.awt.print 提供通用打印API的类和接口。java.beans 包含与开发 bean相关的类 - 基于JavaBeans架构的组件。javafx.embed.swing 提供一组在Swing应用程序中使用JavaFX的类。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.border 提供用于绘制Swing组件周围特殊边框的类和接口。javax.swing.colorchooser 包含JColorChooser
组件使用的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.plaf.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 Modifier and Type Class 描述 class
Graphics2D
这个Graphics2D
类扩展了Graphics
类,以提供对几何,坐标变换,颜色管理和文本布局的更复杂的控制。Methods in java.awt that return Graphics Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 void
PropertyEditor. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕不动产的给定区域。void
PropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕不动产的给定区域。 -
Uses of Graphics in javafx.embed.swing
Methods in javafx.embed.swing with parameters of type Graphics Modifier and Type 方法 描述 protected void
JFXPanel. paintComponent(Graphics g)
覆盖JComponent.paintComponent(Graphics)
方法来绘制附加到此JFXpanel
的JavaFX场景的内容。 -
Uses of Graphics in javax.swing
Subclasses of Graphics in javax.swing Modifier and Type Class 描述 class
DebugGraphics
图形子类支持图形调试。Methods in javax.swing that return Graphics Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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)
Subclassed消息的UI与finishedPaintingChildren
之后,超级已经被消息,以及画边框。protected void
Box.Filler. paintComponent(Graphics g)
Filler
这Filler
。protected void
Box. paintComponent(Graphics g)
Box
这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)
在图形对象上绘制单元格渲染器组件c。void
CellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)
调用this.paintComponent()与矩形x,y,width,height字段。protected void
JComponent. paintComponent(Graphics g)
调用UInull
的paint方法,如果UInull
。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 Constructor 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 void
AbstractColorChooserPanel. paint(Graphics g)
画面板。 -
Uses of Graphics in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type Graphics Modifier and Type 方法 描述 abstract void
SplitPaneUI. finishedPaintingChildren(JSplitPane jc, Graphics g)
在JSplitPane之后,接收器为其孩子提供了油漆的外观和感觉。void
ComponentUI. paint(Graphics g, JComponent c)
适当地涂抹指定的组件的外观和感觉。void
LayerUI. paint(Graphics g, JComponent c)
绘制指定的组件。void
BorderUIResource. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
IconUIResource. paintIcon(Component c, Graphics g, int x, int y)
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 Modifier and Type 方法 描述 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)
绘制一个字符串的图形g
在位置(x,y)就像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
BasicArrowButton. paint(Graphics g)
void
BasicButtonUI. paint(Graphics g, JComponent c)
void
BasicComboBoxUI. paint(Graphics g, JComponent c)
void
BasicDesktopPaneUI. paint(Graphics g, JComponent c)
void
BasicInternalFrameTitlePane.SystemMenuBar. paint(Graphics g)
void
BasicLabelUI. paint(Graphics g, JComponent c)
用前景颜色绘制标签文本,如果标签不透明,则使用背景颜色绘制整个背景。void
BasicListUI. paint(Graphics g, JComponent c)
绘制与Graphics对象clipRect相交的行。void
BasicMenuItemUI. paint(Graphics g, JComponent c)
void
BasicPopupMenuSeparatorUI. paint(Graphics g, JComponent c)
void
BasicProgressBarUI. paint(Graphics g, JComponent c)
代表绘画为两种方法之一:paintDeterminate或paintIndeterminate。void
BasicRadioButtonUI. paint(Graphics g, JComponent c)
画单选按钮void
BasicScrollBarUI. paint(Graphics g, JComponent c)
void
BasicScrollPaneUI. paint(Graphics g, JComponent c)
void
BasicSeparatorUI. paint(Graphics g, JComponent c)
void
BasicSliderUI. paint(Graphics g, JComponent c)
void
BasicSplitPaneDivider. paint(Graphics g)
涂抹分隔线。void
BasicSplitPaneUI. paint(Graphics g, JComponent jc)
适当地涂抹指定的组件的外观和感觉。void
BasicTabbedPaneUI. paint(Graphics g, JComponent c)
void
BasicTableHeaderUI. paint(Graphics g, JComponent c)
void
BasicTableUI. paint(Graphics g, JComponent c)
绘制在installUI()中设置的table
实例的表示。void
BasicTextUI. paint(Graphics g, JComponent c)
绘制界面。void
BasicToggleButtonUI. paint(Graphics g, JComponent c)
void
BasicToolBarSeparatorUI. paint(Graphics g, JComponent c)
void
BasicToolBarUI.DragWindow. paint(Graphics g)
void
BasicToolTipUI. paint(Graphics g, JComponent c)
void
BasicTreeUI. paint(Graphics g, JComponent c)
protected void
BasicMenuItemUI. paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
绘制菜单项的背景。protected void
BasicTextUI. paintBackground(Graphics g)
绘制视图的背景。void
BasicBorders.ButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
BasicBorders.FieldBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
BasicBorders.MenuBarBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
BasicBorders.RadioButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
BasicBorders.RolloverButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
BasicBorders.SplitPaneBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
void
BasicBorders.ToggleButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int width, int height)
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
进行绘制。void
BasicInternalFrameTitlePane. paintComponent(Graphics g)
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,textY与background.lighter(),然后向下移动并向右移动一个像素与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上绘制clippedText,textY带有标签前景色。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)
Superclass以不可控制的方式绘制背景(即可能需要将图像平铺到背景中)。 -
Uses of Graphics in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type Graphics Modifier and Type 方法 描述 protected void
MetalCheckBoxIcon. drawCheck(Component c, Graphics g, int x, int y)
油漆MetalCheckBoxIcon
。void
MetalComboBoxUI. paint(Graphics g, JComponent c)
void
MetalPopupMenuSeparatorUI. paint(Graphics g, JComponent c)
void
MetalRadioButtonUI. paint(Graphics g, JComponent c)
void
MetalScrollButton. paint(Graphics g)
void
MetalSeparatorUI. paint(Graphics g, JComponent c)
void
MetalTabbedPaneUI. paint(Graphics g, JComponent c)
void
MetalToolTipUI. paint(Graphics g, JComponent c)
void
MetalTreeUI. paint(Graphics g, JComponent c)
void
MetalBorders.ButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.Flush3DBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.InternalFrameBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.MenuBarBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.MenuItemBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.OptionDialogBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.PaletteBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.PopupMenuBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.RolloverButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.ScrollPaneBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.TableHeaderBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.TextFieldBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.ToggleButtonBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
void
MetalBorders.ToolBarBorder. paintBorder(Component c, Graphics g, int x, int y, int w, int h)
protected void
MetalTabbedPaneUI. paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制底部标签边框。protected void
MetalButtonUI. paintButtonPressed(Graphics g, AbstractButton b)
protected void
MetalToggleButtonUI. paintButtonPressed(Graphics g, AbstractButton b)
void
MetalComboBoxButton. paintComponent(Graphics g)
void
MetalInternalFrameTitlePane. paintComponent(Graphics g)
protected void
MetalTabbedPaneUI. paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void
MetalTabbedPaneUI. paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void
MetalTabbedPaneUI. paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void
MetalTabbedPaneUI. paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
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
MetalButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void
MetalRadioButtonUI. paintFocus(Graphics g, Rectangle t, Dimension d)
void
MetalSliderUI. paintFocus(Graphics g)
protected void
MetalToggleButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void
MetalTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
protected void
MetalTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
protected void
MetalTreeUI. paintHorizontalSeparators(Graphics g, JComponent c)
绘制水平分隔符。void
MetalCheckBoxIcon. paintIcon(Component c, Graphics g, int x, int y)
void
MetalComboBoxIcon. paintIcon(Component c, Graphics g, int x, int y)
涂上水平条void
MetalIconFactory.FileIcon16. paintIcon(Component c, Graphics g, int x, int y)
void
MetalIconFactory.FolderIcon16. paintIcon(Component c, Graphics g, int x, int y)
void
MetalIconFactory.PaletteCloseIcon. paintIcon(Component c, Graphics g, int x, int y)
void
MetalIconFactory.TreeControlIcon. 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)
画左标签边框。protected void
MetalSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void
MetalSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
void
MetalIconFactory.TreeControlIcon. paintMe(Component c, Graphics g, int x, int y)
TreeControlIcon
。protected void
MetalSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void
MetalSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
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. paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void
MetalTabbedPaneUI. paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void
MetalButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
protected void
MetalToggleButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
protected void
MetalScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
void
MetalSliderUI. paintThumb(Graphics g)
protected void
MetalTabbedPaneUI. paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
绘制顶部标签边框。protected void
MetalScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
void
MetalSliderUI. paintTrack(Graphics g)
protected void
MetalTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
void
MetalButtonUI. update(Graphics g, JComponent c)
如果需要,则绘制组件的背景,然后调用paint
。void
MetalMenuBarUI. update(Graphics g, JComponent c)
如果需要,则绘制组件的背景,然后调用paint
。void
MetalTabbedPaneUI. update(Graphics g, JComponent c)
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 Modifier and Type 方法 描述 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)
新新新新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 Modifier and Type 方法 描述 protected void
SynthTreeUI. drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)
以(x,y)为中心绘制icon
。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
SynthSplitPaneUI. finishedPaintingChildren(JSplitPane jc, Graphics g)
当指定的拆分窗格绘制其子项时调用。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
SynthEditorPaneUI. paintBackground(Graphics g)
绘制视图的背景。protected void
SynthTextAreaUI. paintBackground(Graphics g)
绘制视图的背景。protected void
SynthTextFieldUI. paintBackground(Graphics g)
绘制视图的背景。void
SynthButtonUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthCheckBoxMenuItemUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthCheckBoxUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthColorChooserUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthComboBoxUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthDesktopIconUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthDesktopPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthEditorPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthFormattedTextFieldUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthInternalFrameUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthLabelUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthListUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthMenuBarUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthMenuItemUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthMenuUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthOptionPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthPanelUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthPasswordFieldUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthPopupMenuUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthProgressBarUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthRadioButtonMenuItemUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthRadioButtonUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthRootPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthScrollBarUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthScrollPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthSeparatorUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthSliderUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthSpinnerUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthSplitPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTabbedPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTableHeaderUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTableUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTextAreaUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTextFieldUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTextPaneUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthToggleButtonUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthToolBarUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthToolTipUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框void
SynthTreeUI. paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框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)
绘制桌面窗格的背景。protected void
SynthToolBarUI. paintDragWindow(Graphics g)
绘制用于拖动的窗口的内容。protected void
SynthTreeUI. paintDropLine(Graphics g)
画下线。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)
绘制编辑器窗格的边框。protected void
SynthTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的展开(切换)部分。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)
绘制格式化文本字段的边框。protected void
SynthTreeUI. paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
画一条水平线。protected void
SynthTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
涂抹腿部的水平部分。static void
SynthGraphicsUtils. paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height)
画图标。default void
SynthIcon. paintIcon(Component c, Graphics g, int x, int y)
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)
当用户拖动分隔线时,绘制分割窗格的分隔线。protected void
SynthTabbedPaneUI. paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
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)
在树中具有焦点时,绘制单元格的焦点指示符。protected void
SynthTreeUI. paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
画一条垂直线。protected void
SynthTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
涂上腿部的垂直部分。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 Modifier and Type 方法 描述 Graphics
View. getGraphics()
获取Graphics
进行渲染。Methods in javax.swing.text with parameters of type Graphics Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 void
DefaultTreeCellEditor.EditorContainer. paint(Graphics g)
覆盖Container.paint
以绘制节点的图标,并使用背景的选择颜色。void
DefaultTreeCellRenderer. paint(Graphics g)
绘制价值。
-