Uses of Class
java.awt.Insets
-
Packages that use Insets 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,它提供了一种在逻辑上与GUI中的表示元素相关联的实体之间传递信息的机制。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.border 提供用于绘制Swing组件周围特殊边框的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.nimbus 提供根据跨平台Nimbus外观构建的用户界面对象。javax.swing.plaf.synth 合成是一种可以让所有绘画委托的外观和感觉。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。 -
-
Uses of Insets in java.awt
Fields in java.awt declared as Insets Modifier and Type Field 描述 Insets
GridBagConstraints. insets
该字段指定组件的外部填充,组件与其显示区域的边缘之间的最小空间量。Methods in java.awt that return Insets Modifier and Type 方法 描述 Insets
Container. getInsets()
确定此容器的插入,这表示容器边框的大小。Insets
Toolkit. getScreenInsets(GraphicsConfiguration gc)
获取屏幕的插图。Insets
Container. insets()
已过时。从JDK 1.1版开始,替换为getInsets()
。Constructors in java.awt with parameters of type Insets Constructor 描述 GridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
创建一个GridBagConstraints
对象,其所有字段都设置为传入参数。 -
Uses of Insets in java.awt.dnd
Methods in java.awt.dnd that return Insets Modifier and Type 方法 描述 Insets
Autoscroll. getAutoscrollInsets()
此方法返回描述相对于实现组件几何的自动滚动区域或边框的Insets
。 -
Uses of Insets in javax.swing
Methods in javax.swing that return Insets Modifier and Type 方法 描述 Insets
JComponent. getInsets()
如果在此组件上设置了边框,则返回边框的插入; 否则拨打super.getInsets
。Insets
JComponent. getInsets(Insets insets)
返回一个包含该组件插入值的Insets
对象。Insets
JViewport. getInsets()
由于边框不支持JViewport
,因此将其作为(0,0,0,0)的尺寸返回。Insets
JViewport. getInsets(Insets insets)
返回一个包含这个JViewport
的插入值的Insets
对象。Insets
UIDefaults. getInsets(Object key)
如果key
的值是Insets
返回,否则返回null
。Insets
UIDefaults. getInsets(Object key, Locale l)
如果值key
对于给定Locale
是Insets
返回它,否则返回null
。static Insets
UIManager. getInsets(Object key)
从默认值返回一个Insets
对象。static Insets
UIManager. getInsets(Object key, Locale l)
从适用于给定语言环境的默认值返回一个Insets
对象。Insets
AbstractButton. getMargin()
返回按钮边框和标签之间的边距。Insets
JMenuBar. getMargin()
返回菜单边框和菜单之间的边距。Insets
JPopupMenu. getMargin()
返回弹出菜单的边框和容器之间的边距(以像素为单位)。Insets
JToolBar. getMargin()
返回工具栏边框与其按钮之间的边距。Methods in javax.swing with parameters of type Insets Modifier and Type 方法 描述 Insets
JComponent. getInsets(Insets insets)
返回包含此组件的插入值的Insets
对象。Insets
JViewport. getInsets(Insets insets)
返回一个Insets
对象,其中包含这个JViewport
的插入值。void
AbstractButton. setMargin(Insets m)
在按钮的边框和标签之间设置边距空间。void
JMenuBar. setMargin(Insets m)
设置菜单边界和菜单之间的边距。void
JToolBar. setMargin(Insets m)
X- 200 X- 200 200 X- 200 X- 200 200 X- 200 200 X- 200 200 X- 200 200 X- 200 200 X- 200 200 X- -
Uses of Insets in javax.swing.border
Methods in javax.swing.border that return Insets Modifier and Type 方法 描述 Insets
AbstractBorder. getBorderInsets(Component c)
此默认实现返回一个由AbstractBorder.getBorderInsets(Component,Insets)
方法初始化的新的Insets
对象。Insets
AbstractBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
BevelBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
Border. getBorderInsets(Component c)
返回边框的插入。Insets
CompoundBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
EmptyBorder. getBorderInsets()
返回边框的插入。Insets
EmptyBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
EtchedBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
LineBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
MatteBorder. getBorderInsets()
返回边框的插入。Insets
MatteBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
SoftBevelBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
StrokeBorder. getBorderInsets(Component c, Insets insets)
使用此边框的当前插图重新初始化insets
参数。Insets
TitledBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Methods in javax.swing.border with parameters of type Insets Modifier and Type 方法 描述 Insets
AbstractBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
BevelBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
CompoundBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
EmptyBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
EtchedBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
LineBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
MatteBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
SoftBevelBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
StrokeBorder. getBorderInsets(Component c, Insets insets)
使用此边框的当前插图重新初始化insets
参数。Insets
TitledBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Constructors in javax.swing.border with parameters of type Insets Constructor 描述 EmptyBorder(Insets borderInsets)
使用指定的插图创建空白边框。MatteBorder(Insets borderInsets, Color matteColor)
创建具有指定插图和颜色的无光泽边框。MatteBorder(Insets borderInsets, Icon tileIcon)
使用指定的插图和图块图标创建无光泽边框。 -
Uses of Insets in javax.swing.plaf
Subclasses of Insets in javax.swing.plaf Modifier and Type Class 描述 class
InsetsUIResource
Insets实现UIResource的子类。Methods in javax.swing.plaf that return Insets Modifier and Type 方法 描述 Insets
BorderUIResource. getBorderInsets(Component c)
Constructors in javax.swing.plaf with parameters of type Insets Constructor 描述 EmptyBorderUIResource(Insets insets)
构造一个EmptyBorderUIResource
。 -
Uses of Insets in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Insets Modifier and Type Field 描述 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
标签插入Methods in javax.swing.plaf.basic that return Insets Modifier and Type 方法 描述 Insets
BasicBorders.ButtonBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.FieldBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.MarginBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.MenuBarBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.RadioButtonBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.SplitPaneBorder. getBorderInsets(Component c)
Insets
BasicBorders.ToggleButtonBorder. 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
BasicDesktopIconUI. getInsets(JComponent c)
返回插图。Insets
BasicSplitPaneDivider. getInsets()
如果在此组件上设置了边框,则返回边框的插入,否则调用super.getInsets。Insets
BasicSplitPaneUI. getInsets(JComponent jc)
返回插图。Insets
BasicToolBarUI.DragWindow. getInsets()
protected Insets
BasicTabbedPaneUI. getSelectedTabPadInsets(int tabPlacement)
返回所选的选项卡垫插入。protected Insets
BasicTabbedPaneUI. getTabAreaInsets(int tabPlacement)
返回标签区域插入。protected Insets
BasicTabbedPaneUI. getTabInsets(int tabPlacement, int tabIndex)
返回标签插入。Methods in javax.swing.plaf.basic with parameters of type Insets Modifier and Type 方法 描述 protected int
BasicProgressBarUI. getAmountFull(Insets b, int width, int height)
这将根据从模型收集的百分比确定应填充的进度条的数量。protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager. getAvailableSize(Dimension containerSize, Insets insets)
根据容器大小和Insets
返回可用宽度。Insets
BasicBorders.ButtonBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.FieldBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.MarginBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.MenuBarBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.RadioButtonBorder. getBorderInsets(Component c, Insets insets)
Insets
BasicBorders.ToggleButtonBorder. getBorderInsets(Component c, Insets insets)
protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager. getInitialLocation(Insets insets)
返回左插图,除非Insets
为null,在这种情况下返回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
的宽度设置为size
,将其x位置设置为location
,y到insets.top
,高度为containerSize.height
减去顶部和底部的插入。 -
Uses of Insets in javax.swing.plaf.metal
Fields in javax.swing.plaf.metal declared as Insets Modifier and Type Field 描述 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
。Methods in javax.swing.plaf.metal that return Insets Modifier and Type 方法 描述 Insets
MetalBorders.ButtonBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.Flush3DBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.InternalFrameBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.MenuBarBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.MenuItemBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.OptionDialogBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.PaletteBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.PopupMenuBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.ScrollPaneBorder. getBorderInsets(Component c, Insets insets)
Insets
MetalBorders.TableHeaderBorder. getBorderInsets(Component c, Insets insets)
Insets
MetalBorders.ToolBarBorder. getBorderInsets(Component c, Insets newInsets)
Methods in javax.swing.plaf.metal with parameters of type Insets Modifier and Type 方法 描述 Insets
MetalBorders.ButtonBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.Flush3DBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.InternalFrameBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.MenuBarBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.MenuItemBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.OptionDialogBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.PaletteBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.PopupMenuBorder. getBorderInsets(Component c, Insets newInsets)
Insets
MetalBorders.ScrollPaneBorder. getBorderInsets(Component c, Insets insets)
Insets
MetalBorders.TableHeaderBorder. getBorderInsets(Component c, Insets insets)
Insets
MetalBorders.ToolBarBorder. getBorderInsets(Component c, Insets newInsets)
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)
-
Uses of Insets in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return Insets Modifier and Type 方法 描述 Insets
NimbusStyle. getInsets(SynthContext ctx, Insets in)
返回用于计算大小信息的Insets。Methods in javax.swing.plaf.nimbus with parameters of type Insets Modifier and Type 方法 描述 Insets
NimbusStyle. getInsets(SynthContext ctx, Insets in)
返回用于计算大小信息的Insets。Constructors in javax.swing.plaf.nimbus with parameters of type Insets Constructor 描述 PaintContext(Insets insets, Dimension canvasSize, boolean inverted)
创建一个新的PaintContext,它不会尝试缓存或缩放任何缓存的图像。PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
创建一个新的PaintContext。 -
Uses of Insets in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return Insets Modifier and Type 方法 描述 Insets
SynthStyle. getInsets(SynthContext context, Insets insets)
返回用于计算大小信息的Insets。protected Insets
SynthTabbedPaneUI. getTabInsets(int tabPlacement, int tabIndex)
返回标签插入。Methods in javax.swing.plaf.synth with parameters of type Insets Modifier and Type 方法 描述 Insets
SynthStyle. getInsets(SynthContext context, Insets 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)
涂上腿部的垂直部分。 -
Uses of Insets in javax.swing.text
Methods in javax.swing.text that return Insets Modifier and Type 方法 描述 Insets
JTextComponent. getMargin()
返回文本组件的边框和文本之间的边距。Methods in javax.swing.text with parameters of type Insets Modifier and Type 方法 描述 void
JTextComponent. setMargin(Insets m)
在文本组件的边框和文本之间设置边距空间。
-