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 提供根据Basic外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观(曾代号为 Metal )构建的用户界面对象,这是默认的外观。javax.swing.plaf.nimbus 提供根据跨平台Nimbus外观构建的用户界面对象。javax.swing.plaf.synth Synth是一种可换肤的外观和感觉,其中所有的绘画都被委派。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。 -
-
Uses of Insets in java.awt
Fields in java.awt declared as Insets 变量和类型 字段 描述 Insets
GridBagConstraints. insets
此字段指定组件的外部填充,组件与其显示区域边缘之间的最小空间量。Methods in java.awt that return Insets 变量和类型 方法 描述 Insets
Container. getInsets()
确定此容器的insets,它指示容器边框的大小。Insets
Toolkit. getScreenInsets(GraphicsConfiguration gc)
获取屏幕的插图。Insets
Container. insets()
已过时。截至JDK 1.1版,由getInsets()
取代。Constructors in java.awt with parameters of type Insets 构造器 描述 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 变量和类型 方法 描述 Insets
Autoscroll. getAutoscrollInsets()
此方法返回Insets
该Insets
描述相对于实现Component的几何的自动滚动区域或边框。 -
Uses of Insets in javax.swing
Methods in javax.swing that return Insets 变量和类型 方法 描述 Insets
JComponent. getInsets()
如果已在此组件上设置了边框,则返回边框的插入内容; 否则请致电super.getInsets
。Insets
JComponent. getInsets(Insets insets)
返回包含此组件的插入值的Insets
对象。Insets
JViewport. getInsets()
将insets(border)维返回为(0,0,0,0),因为JViewport
不支持JViewport
。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 变量和类型 方法 描述 Insets
JComponent. getInsets(Insets insets)
返回包含此组件的插入值的Insets
对象。Insets
JViewport. getInsets(Insets insets)
返回包含此JViewport
s插入值的Insets
对象。void
AbstractButton. setMargin(Insets m)
设置按钮边框和标签之间的边距空间。void
JMenuBar. setMargin(Insets m)
设置菜单栏边框与菜单之间的边距。void
JToolBar. setMargin(Insets m)
设置工具栏边框与其按钮之间的边距。 -
Uses of Insets in javax.swing.border
Methods in javax.swing.border that return Insets 变量和类型 方法 描述 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。Insets
CompoundBorder. getBorderInsets(Component c, Insets insets)
使用此Border的当前Insets重新初始化insets参数。Insets
EmptyBorder. getBorderInsets()
返回边框的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()
返回边框的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参数。Methods in javax.swing.border with parameters of type Insets 变量和类型 方法 描述 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 构造器 描述 EmptyBorder(Insets borderInsets)
使用指定的insets创建空边框。MatteBorder(Insets borderInsets, Color matteColor)
使用指定的insets和颜色创建遮罩边框。MatteBorder(Insets borderInsets, Icon tileIcon)
使用指定的insets和tile图标创建遮罩边框。 -
Uses of Insets in javax.swing.plaf
Subclasses of Insets in javax.swing.plaf 变量和类型 类 描述 class
InsetsUIResource
实现UIResource的Insets的子类。Constructors in javax.swing.plaf with parameters of type Insets 构造器 描述 EmptyBorderUIResource(Insets insets)
构造一个EmptyBorderUIResource
。 -
Uses of Insets in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Insets 变量和类型 字段 描述 protected Insets
BasicTabbedPaneUI. contentBorderInsets
内容边框插入protected Insets
BasicSliderUI. focusInsets
专注于内容protected Insets
BasicSliderUI. insetCache
插入缓存protected Insets
BasicComboBoxUI. padding
如果指定,则在布局和绘制组合框中的“selected”项时,这些insets充当单元格渲染器周围的填充。protected Insets
BasicTabbedPaneUI. selectedTabPadInsets
选定的选项卡插入protected Insets
BasicTabbedPaneUI. tabAreaInsets
标签区域插入protected Insets
BasicTabbedPaneUI. tabInsets
制表符插入Methods in javax.swing.plaf.basic that return Insets 变量和类型 方法 描述 protected Insets
BasicTabbedPaneUI. getContentBorderInsets(int tabPlacement)
返回内容边框insets。static Insets
BasicGraphicsUtils. getEtchedInsets()
返回由drawEtchedRect()
绘制的边框占用的空间量static Insets
BasicGraphicsUtils. getGrooveInsets()
返回由drawGroove()
绘制的边框占用的空间量protected Insets
BasicComboBoxUI. getInsets()
获取JComboBox的insets。Insets
BasicDesktopIconUI. getInsets(JComponent c)
返回insets。Insets
BasicSplitPaneDivider. getInsets()
如果已在此组件上设置了边框,则返回边框的insets,否则调用super.getInsets。Insets
BasicSplitPaneUI. getInsets(JComponent jc)
返回insets。protected Insets
BasicTabbedPaneUI. getSelectedTabPadInsets(int tabPlacement)
返回选定的制表符垫插图。protected Insets
BasicTabbedPaneUI. getTabAreaInsets(int tabPlacement)
返回选项卡区域insets。protected Insets
BasicTabbedPaneUI. getTabInsets(int tabPlacement, int tabIndex)
返回制表符insets。Methods in javax.swing.plaf.basic with parameters of type Insets 变量和类型 方法 描述 protected int
BasicProgressBarUI. getAmountFull(Insets b, int width, int height)
这将根据从模型中收集的完成百分比确定应填充的进度条的数量。protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager. getAvailableSize(Dimension containerSize, Insets 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 变量和类型 字段 描述 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
。 -
Uses of Insets in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return Insets 变量和类型 方法 描述 Insets
NimbusStyle. getInsets(SynthContext ctx, Insets in)
返回用于计算大小调整信息的Insets。Methods in javax.swing.plaf.nimbus with parameters of type Insets 变量和类型 方法 描述 Insets
NimbusStyle. getInsets(SynthContext ctx, Insets in)
返回用于计算大小调整信息的Insets。Constructors in javax.swing.plaf.nimbus with parameters of type Insets 构造器 描述 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 变量和类型 方法 描述 Insets
SynthStyle. getInsets(SynthContext context, Insets insets)
返回用于计算大小调整信息的Insets。Methods in javax.swing.plaf.synth with parameters of type Insets 变量和类型 方法 描述 Insets
SynthStyle. getInsets(SynthContext context, Insets insets)
返回用于计算大小调整信息的Insets。 -
Uses of Insets in javax.swing.text
Methods in javax.swing.text that return Insets 变量和类型 方法 描述 Insets
JTextComponent. getMargin()
返回文本组件边框与其文本之间的边距。Methods in javax.swing.text with parameters of type Insets 变量和类型 方法 描述 void
JTextComponent. setMargin(Insets m)
Sets margin space between the text component's border and its text.
-