软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.border |
提供用于绘图的类和接口,以绘制一个摆动组件的专门边框。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
javax.swing.plaf.nimbus |
提供用户界面对象建立跨平台的灵气的外观和感觉。
|
javax.swing.plaf.synth |
它是一个可更换皮肤的外观和感觉的绘画是授。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Field and Description |
---|---|
Insets |
GridBagConstraints.insets
该字段指定组件的外部填充,组件和显示区域的边缘之间的最小空间量。
|
Modifier and Type | Method and Description |
---|---|
Insets |
Container.getInsets()
决定这个容器的插图,这表示容器边框的大小。
|
Insets |
Toolkit.getScreenInsets(GraphicsConfiguration gc)
获取屏幕的插图。
|
Insets |
Container.insets()
过时的。
作为JDK 1.1版本,取而代之的
getInsets() 。
|
Constructor and Description |
---|
GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
创建一个与它的所有字段设置为传入的参数
GridBagConstraints 对象。
|
Modifier and Type | Method and Description |
---|---|
Insets |
Autoscroll.getAutoscrollInsets()
此方法返回描述自动滚动区域或边界相对于执行组件的几何
Insets 。
|
Modifier and Type | Method and Description |
---|---|
Insets |
JViewport.getInsets()
返回的插图(境)尺寸为(0,0,0,0),由于边界不支持在一个
JViewport 。
|
Insets |
JComponent.getInsets()
如果一个边界已设置该组件,返回边境的插图;否则称
super.getInsets 。
|
Insets |
JViewport.getInsets(Insets insets)
返回包含这一
Insets
JViewport s对象嵌入值。
|
Insets |
JComponent.getInsets(Insets insets)
返回包含此组件的插入值的
Insets 对象。
|
Insets |
UIDefaults.getInsets(Object key)
如果
key 值是一个
Insets 返回,否则返回
null 。
|
static Insets |
UIManager.getInsets(Object key)
返回默认的
Insets 对象。
|
Insets |
UIDefaults.getInsets(Object key, Locale l)
如果
key 对于给定的
Locale 值是一个
Insets 返回,否则返回
null 。
|
static Insets |
UIManager.getInsets(Object key, Locale l)
返回默认值,对于给定的区域是适当的
Insets 对象。
|
Insets |
JMenuBar.getMargin()
返回菜单栏的边框和菜单之间的差距。
|
Insets |
JPopupMenu.getMargin()
返回在像素的边缘,弹出菜单的边框和容器之间。
|
Insets |
AbstractButton.getMargin()
返回按钮的边框和标签之间的边缘。
|
Insets |
JToolBar.getMargin()
返回工具栏边框和它的按钮之间的边缘。
|
Modifier and Type | Method and Description |
---|---|
Insets |
JViewport.getInsets(Insets insets)
返回包含这一
Insets
JViewport s对象嵌入值。
|
Insets |
JComponent.getInsets(Insets insets)
返回包含此组件的插入值的
Insets 对象。
|
void |
JMenuBar.setMargin(Insets m)
设置菜单栏的边框和菜单之间的差距。
|
void |
AbstractButton.setMargin(Insets m)
设置按钮的边框和标签之间的间隔空间。
|
void |
JToolBar.setMargin(Insets m)
设置工具栏边框和它的按钮之间的边缘。
|
Modifier and Type | Method and Description |
---|---|
Insets |
MatteBorder.getBorderInsets()
返回边境的插图。
|
Insets |
EmptyBorder.getBorderInsets()
返回边境的插图。
|
Insets |
Border.getBorderInsets(Component c)
返回边境的插图。
|
Insets |
AbstractBorder.getBorderInsets(Component c)
此默认实现返回一个新的
Insets 对象是由
AbstractBorder.getBorderInsets(Component,Insets) 方法初始化。
|
Insets |
BevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
TitledBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
StrokeBorder.getBorderInsets(Component c, Insets insets)
重新初始化这个边境的插图
insets 参数。
|
Insets |
MatteBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
LineBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
AbstractBorder.getBorderInsets(Component c, Insets insets)
重新初始化插入参数与本边境目前的插图。
|
Insets |
SoftBevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
CompoundBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EmptyBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EtchedBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Modifier and Type | Method and Description |
---|---|
Insets |
BevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
TitledBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
StrokeBorder.getBorderInsets(Component c, Insets insets)
重新初始化这个边境的插图
insets 参数。
|
Insets |
MatteBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
LineBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
AbstractBorder.getBorderInsets(Component c, Insets insets)
重新初始化插入参数与本边境目前的插图。
|
Insets |
SoftBevelBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
CompoundBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EmptyBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Insets |
EtchedBorder.getBorderInsets(Component c, Insets insets)
初始化参数和边界的插图插图。
|
Constructor and Description |
---|
EmptyBorder(Insets borderInsets)
创建具有指定插入一个空的边界。
|
MatteBorder(Insets borderInsets, Color matteColor)
创建一个具有指定的插图和彩色磨砂边框。
|
MatteBorder(Insets borderInsets, Icon tileIcon)
创建一个磨砂边框与指定的插图和图标。
|
Modifier and Type | Class and Description |
---|---|
class |
InsetsUIResource |
Modifier and Type | Method and Description |
---|---|
Insets |
BorderUIResource.getBorderInsets(Component c) |
Constructor and Description |
---|
EmptyBorderUIResource(Insets insets) |
Modifier and Type | Field and Description |
---|---|
protected Insets |
BasicTabbedPaneUI.contentBorderInsets |
protected Insets |
BasicSliderUI.focusInsets |
protected Insets |
BasicSliderUI.insetCache |
protected Insets |
BasicComboBoxUI.padding
如果指定,这些插图作为填充在细胞渲染时铺设和绘画的“选择”项中的组合框。
|
protected Insets |
BasicTabbedPaneUI.selectedTabPadInsets |
protected Insets |
BasicTabbedPaneUI.tabAreaInsets |
protected Insets |
BasicTabbedPaneUI.tabInsets |
Modifier and Type | Method and Description |
---|---|
Insets |
BasicBorders.SplitPaneBorder.getBorderInsets(Component c) |
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets) |
protected Insets |
BasicTabbedPaneUI.getContentBorderInsets(int tabPlacement) |
static Insets |
BasicGraphicsUtils.getEtchedInsets()
返回占用的空间边界被
drawEtchedRect()
|
static Insets |
BasicGraphicsUtils.getGrooveInsets()
返回占用的空间边界被
drawGroove()
|
protected Insets |
BasicComboBoxUI.getInsets()
从JComboBox获取插图。
|
Insets |
BasicToolBarUI.DragWindow.getInsets() |
Insets |
BasicSplitPaneDivider.getInsets()
如果一个边界已设置该组件,返回边境的插图,叫其他super.getinsets。
|
Insets |
BasicSplitPaneUI.getInsets(JComponent jc)
返回的插图。
|
Insets |
BasicDesktopIconUI.getInsets(JComponent c) |
protected Insets |
BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement) |
protected Insets |
BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement) |
protected Insets |
BasicTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex) |
Modifier and Type | Method and Description |
---|---|
protected int |
BasicProgressBarUI.getAmountFull(Insets b, int width, int height)
这就决定了基于模型所收集的百分比来填充进度条的数量。
|
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets)
返回基于容器的大小和插入有效宽度。
|
Insets |
BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets) |
Insets |
BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets) |
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets insets)
返回左上角的小图是无效的,除非在这种情况下,返回0。
|
protected void |
BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
油漆扩展(切换)的一部分的一行。
|
protected void |
BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
油漆腿的水平部分。
|
protected void |
BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
油漆一行的输出部分。
|
protected void |
BasicProgressBarUI.paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) |
protected void |
BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
油漆腿的垂直部分。
|
protected static void |
BasicTabbedPaneUI.rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement) |
protected void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
将大小的组分C的宽度,将其定位在位置x,Y的insets.top和高度的containersize.height更少的顶部和底部的插图。
|
Modifier and Type | Field and Description |
---|---|
protected static Insets |
MetalBorders.ButtonBorder.borderInsets |
protected static Insets |
MetalBorders.MenuBarBorder.borderInsets |
protected static Insets |
MetalBorders.MenuItemBorder.borderInsets |
protected static Insets |
MetalBorders.PopupMenuBorder.borderInsets |
protected Insets |
MetalBorders.TableHeaderBorder.editorBorderInsets |
protected static Insets |
MetalComboBoxEditor.editorBorderInsets
默认的编辑器的边境
Insets 。
|
Modifier and Type | Method and Description |
---|---|
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c, Insets insets) |
Insets |
MetalBorders.TableHeaderBorder.getBorderInsets(Component c, Insets insets) |
Modifier and Type | Method and Description |
---|---|
Insets |
MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets |
MetalBorders.ScrollPaneBorder.getBorderInsets(Component c, Insets insets) |
Insets |
MetalBorders.TableHeaderBorder.getBorderInsets(Component c, Insets insets) |
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.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) |
Modifier and Type | Method and Description |
---|---|
Insets |
NimbusStyle.getInsets(SynthContext ctx, Insets in)
返回用于计算尺寸信息的插图。
|
Modifier and Type | Method and Description |
---|---|
Insets |
NimbusStyle.getInsets(SynthContext ctx, Insets in)
返回用于计算尺寸信息的插图。
|
Constructor and Description |
---|
PaintContext(Insets insets, Dimension canvasSize, boolean inverted)
创建一个新的paintcontext不尝试缓存或任何规模的缓存图像。
|
PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
创建一个新的paintcontext。
|
Modifier and Type | Method and Description |
---|---|
Insets |
SynthStyle.getInsets(SynthContext context, Insets insets)
返回用于计算尺寸信息的插图。
|
protected Insets |
SynthTabbedPaneUI.getTabInsets(int tabPlacement, int tabIndex) |
Modifier and Type | Method and Description |
---|---|
Insets |
SynthStyle.getInsets(SynthContext context, Insets insets)
返回用于计算尺寸信息的插图。
|
protected void |
SynthTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
油漆扩展(切换)的一部分的一行。
|
protected void |
SynthTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
油漆腿的水平部分。
|
protected void |
SynthTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
油漆腿的垂直部分。
|
Modifier and Type | Method and Description |
---|---|
Insets |
JTextComponent.getMargin()
返回文本组件之间的边界和它的文本之间的界限。
|
Modifier and Type | Method and Description |
---|---|
void |
JTextComponent.setMargin(Insets m)
在文本组件的边框和它的文本之间设置边缘空间。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.