Uses of Interface
javax.swing.border.Border
-
Packages that use Border 软件包 描述 javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。javax.swing.border 提供用于在Swing组件周围绘制专用边框的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing使用它们来提供其可插入的外观功能。javax.swing.plaf.basic 提供根据Basic外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观(曾代号为 Metal )构建的用户界面对象,这是默认的外观。javax.swing.table 提供用于处理javax.swing.JTable类和接口。javax.swing.tree 提供用于处理javax.swing.JTree类和接口。 -
-
Uses of Border in javax.swing
Fields in javax.swing declared as Border 变量和类型 字段 描述 protected static BorderDefaultListCellRenderer. noFocusBorder没有焦点边界Methods in javax.swing that return Border 变量和类型 方法 描述 static BorderBorderFactory. createBevelBorder(int type)创建指定类型的斜面边框,使用组件当前背景颜色的较亮阴影进行突出显示,使用较暗的阴影阴影。static BorderBorderFactory. createBevelBorder(int type, Color highlight, Color shadow)使用指定的突出显示和阴影创建指定类型的斜面边框。static BorderBorderFactory. createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)使用内部和外部高光和阴影区域的指定颜色创建指定类型的斜面边框。static BorderBorderFactory. createDashedBorder(Paint paint)创建指定的paint的虚线边框。static BorderBorderFactory. createDashedBorder(Paint paint, float length, float spacing)创建指定的paint,相对length和相对spacing的虚线边框。static BorderBorderFactory. createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)创建指定的paint,thickness,相对length和相对spacing的虚线边框。static BorderBorderFactory. createEmptyBorder()创建一个不占空间的空边框。static BorderBorderFactory. createEmptyBorder(int top, int left, int bottom, int right)创建一个占用空间但没有绘图的空边框,指定顶部,左侧,底部和右侧的宽度。static BorderBorderFactory. createEtchedBorder()使用组件的当前背景颜色创建具有“蚀刻”外观的边框,以突出显示和着色。static BorderBorderFactory. createEtchedBorder(int type)使用组件的当前背景颜色创建具有“蚀刻”外观的边框,以突出显示和着色。static BorderBorderFactory. createEtchedBorder(int type, Color highlight, Color shadow)使用指定的突出显示和阴影颜色创建具有“蚀刻”外观的边框。static BorderBorderFactory. createEtchedBorder(Color highlight, Color shadow)使用指定的突出显示和阴影颜色创建具有“蚀刻”外观的边框。static BorderBorderFactory. createLineBorder(Color color)创建具有指定颜色的线条边框。static BorderBorderFactory. createLineBorder(Color color, int thickness)创建具有指定颜色和宽度的线条边框。static BorderBorderFactory. createLineBorder(Color color, int thickness, boolean rounded)创建具有指定颜色,粗细和角形的线条边框。static BorderBorderFactory. createLoweredBevelBorder()创建具有降低的斜边的边框,使用组件当前背景颜色的较亮阴影进行突出显示,使用较暗的阴影阴影。static BorderBorderFactory. createLoweredSoftBevelBorder()使用较暗的边缘和较软的边角创建斜面边框,使用组件当前背景颜色的较亮色调进行高亮显示,使用较暗的阴影着色。static BorderBorderFactory. createRaisedBevelBorder()使用凸起的斜面边缘创建边框,使用组件当前背景颜色的较亮阴影进行突出显示,使用较暗的阴影阴影。static BorderBorderFactory. createRaisedSoftBevelBorder()使用凸起的边缘和柔化的边角创建斜面边框,使用组件当前背景颜色的较亮色调进行高亮显示,使用较暗的阴影着色。static BorderBorderFactory. createSoftBevelBorder(int type)使用柔化的角创建指定类型的斜面边框,使用组件当前背景颜色的较亮阴影进行突出显示,使用较暗的阴影阴影。static BorderBorderFactory. createSoftBevelBorder(int type, Color highlight, Color shadow)使用指定的突出显示和阴影,使用柔化的角创建指定类型的斜面边框。static BorderBorderFactory. createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner)使用指定颜色为高光和阴影区域的内边缘和外边缘创建具有柔化角的指定类型的斜面边框。static BorderBorderFactory. createStrokeBorder(BasicStroke stroke)创建指定的stroke。static BorderBorderFactory. createStrokeBorder(BasicStroke stroke, Paint paint)创建指定的stroke和paint。BorderJComponent. getBorder()如果当前未设置边框,则返回此组件的边框或null。BorderJLayer. getBorder()如果视图组件是javax.swing.JComponent的实例,javax.swing.JComponent其功能委托给getView().getBorder()方法,否则返回null。BorderUIDefaults. getBorder(Object key)如果值key是Border返回它,否则返回null。BorderUIDefaults. getBorder(Object key, Locale l)如果值key对于给定的Locale是Border返回它,否则返回null。static BorderUIManager. getBorder(Object key)从默认值返回边框。static BorderUIManager. getBorder(Object key, Locale l)返回适合给定语言环境的默认值的边框。BorderJScrollPane. getViewportBorder()返回围绕视口的Border对象。Methods in javax.swing with parameters of type Border 变量和类型 方法 描述 static CompoundBorderBorderFactory. createCompoundBorder(Border outsideBorder, Border insideBorder)创建复合边框,指定要用于外边和内边的边框对象。static TitledBorderBorderFactory. createTitledBorder(Border border)创建一个新的标题边框,其中包含空标题,指定的边框对象,默认文本位置(由当前外观确定),默认对齐(前导)以及默认字体和文本颜色(由当前外观和感觉)。static TitledBorderBorderFactory. createTitledBorder(Border border, String title)为现有边框添加标题,默认定位(由当前外观确定),默认对齐(前导)以及默认字体和文本颜色(由当前外观确定)。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition)使用指定的定位并使用默认字体和文本颜色(由当前外观确定)向现有边框添加标题。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)使用指定的定位和字体以及使用默认文本颜色(由当前外观确定)向现有边框添加标题。static TitledBorderBorderFactory. createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)使用指定的定位,字体和颜色向现有边框添加标题。protected StringJComponent.AccessibleJComponent. getBorderTitle(Border b)递归搜索具有非空标题的TitledBorder的边界层次结构(如果存在)。voidJComponent. setBorder(Border border)设置此组件的边框。voidJLayer. setBorder(Border border)如果视图组件是javax.swing.JComponent的实例,javax.swing.JComponent其功能委托给getView().setBorder(Border)方法,否则此方法是无操作。voidJViewport. setBorder(Border border)视口通过正常的父/子剪辑“滚动”其子(称为“视图”)(通常视图在滚动的相反方向上移动)。voidJScrollPane. setViewportBorder(Border viewportBorder)在视口周围添加边框。 -
Uses of Border in javax.swing.border
Classes in javax.swing.border that implement Border 变量和类型 类 描述 classAbstractBorder实现没有大小的空边框的类。classBevelBorder实现简单的两行斜角边框的类。classCompoundBorder一个复合Border类,用于通过将内部Border对象嵌套在外部Border对象的insets中,将两个Border对象组合成单个边框。classEmptyBorder提供空白透明边框的类,占用空间但不绘制。classEtchedBorder一种实现简单蚀刻边界的类,可以蚀刻或蚀刻掉。classLineBorder实现任意厚度和单色的线边框的类。classMatteBorder提供纯色或平铺图标的类似哑光边框的类。classSoftBevelBorder一种实现带有软化角的凸起或下降斜面的类。classStrokeBorder实现任意笔划边框的类。classTitledBorder一个实现任意边框的类,在指定位置和对齐中添加String标题。Fields in javax.swing.border declared as Border 变量和类型 字段 描述 protected BorderTitledBorder. border边界。protected BorderCompoundBorder. insideBorder内部边界。protected BorderCompoundBorder. outsideBorder外边界。Methods in javax.swing.border that return Border 变量和类型 方法 描述 static BorderLineBorder. createBlackLineBorder()获取厚度为1的Color.black LineBorder的便捷方法。static BorderLineBorder. createGrayLineBorder()获取厚度为1的Color.gray LineBorder的便捷方法。BorderTitledBorder. getBorder()返回标题边框的边框。BorderCompoundBorder. getInsideBorder()返回内部边框对象。BorderCompoundBorder. getOutsideBorder()返回外部边框对象。Methods in javax.swing.border with parameters of type Border 变量和类型 方法 描述 static RectangleAbstractBorder. getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)使用参数减去边框的插入返回一个矩形。voidTitledBorder. setBorder(Border border)设置标题边框的边框。Constructors in javax.swing.border with parameters of type Border 构造器 描述 CompoundBorder(Border outsideBorder, Border insideBorder)使用指定的外边框和内边框创建复合边框。TitledBorder(Border border)创建具有指定边框和空标题的TitledBorder实例。TitledBorder(Border border, String title)创建具有指定边框和标题的TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition)使用指定的border,title,title-justification和title-position创建TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont)使用指定的边框,标题,标题对齐,标题位置和标题字体创建TitledBorder实例。TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)使用指定的边框,标题,标题对齐,标题位置,标题字体和标题颜色创建TitledBorder实例。 -
Uses of Border in javax.swing.plaf
Classes in javax.swing.plaf that implement Border 变量和类型 类 描述 classBorderUIResource实现UIResource的Border包装器类。static classBorderUIResource.BevelBorderUIResource斜角边框UI资源。static classBorderUIResource.CompoundBorderUIResource复合边框UI资源。static classBorderUIResource.EmptyBorderUIResource空边框UI资源。static classBorderUIResource.EtchedBorderUIResource蚀刻的边框UI资源。static classBorderUIResource.LineBorderUIResource线条边界UI资源。static classBorderUIResource.MatteBorderUIResource一个遮罩边框UI资源。static classBorderUIResource.TitledBorderUIResource标题边框UI资源。Methods in javax.swing.plaf that return Border 变量和类型 方法 描述 static BorderBorderUIResource. getBlackLineBorderUIResource()返回黑色边框UI资源。static BorderBorderUIResource. getEtchedBorderUIResource()返回蚀刻的边框UI资源。static BorderBorderUIResource. getLoweredBevelBorderUIResource()返回降低的斜角边框UI资源。static BorderBorderUIResource. getRaisedBevelBorderUIResource()返回凸起的斜角边框UI资源。Constructors in javax.swing.plaf with parameters of type Border 构造器 描述 BorderUIResource(Border delegate)创建一个包装现有Border实例的UIResource边框对象。CompoundBorderUIResource(Border outsideBorder, Border insideBorder)构造一个CompoundBorderUIResource。TitledBorderUIResource(Border border)构造一个TitledBorderUIResource。TitledBorderUIResource(Border border, String title)构造一个TitledBorderUIResource。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)构造一个TitledBorderUIResource。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)构造一个TitledBorderUIResource。TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)构造一个TitledBorderUIResource。 -
Uses of Border in javax.swing.plaf.basic
Classes in javax.swing.plaf.basic that implement Border 变量和类型 类 描述 static classBasicBorders.ButtonBorder在按钮周围绘制边框。static classBasicBorders.FieldBorder绘制字段周围的边框。static classBasicBorders.MarginBorder在支持边距的组件周围绘制边框。static classBasicBorders.MenuBarBorder在菜单栏周围绘制边框。static classBasicBorders.RadioButtonBorder在单选按钮周围绘制边框。static classBasicBorders.RolloverButtonBorder用于翻转工具栏按钮的特殊薄边框。static classBasicBorders.SplitPaneBorder在splitpane周围绘制边框。static classBasicBorders.ToggleButtonBorder在切换按钮周围绘制边框。Fields in javax.swing.plaf.basic declared as Border 变量和类型 字段 描述 protected static BorderBasicComboBoxRenderer. noFocusBorder空Border。Methods in javax.swing.plaf.basic that return Border 变量和类型 方法 描述 protected BorderBasicToolBarUI. createNonRolloverBorder()为工具栏组件创建非翻转边框。protected BorderBasicToolBarUI. createRolloverBorder()为工具栏组件创建翻转边框。BorderBasicSplitPaneDivider. getBorder()返回此组件的边框,如果当前未设置边框,则返回null。static BorderBasicBorders. getButtonBorder()返回JButton的边框实例。static BorderBasicBorders. getInternalFrameBorder()返回JInternalFrame的边框实例。static BorderBasicBorders. getMenuBarBorder()返回JMenuBar的边框实例。protected BorderBasicToolBarUI. getNonRolloverBorder(AbstractButton b)返回按钮的非翻转边框。static BorderBasicBorders. getProgressBarBorder()返回JProgressBar的边框实例。static BorderBasicBorders. getRadioButtonBorder()返回JRadioButton的边框实例。protected BorderBasicToolBarUI. getRolloverBorder(AbstractButton b)返回按钮的翻转边框。static BorderBasicBorders. getSplitPaneBorder()返回JSplitPane的边框实例。static BorderBasicBorders. getSplitPaneDividerBorder()返回JSplitPane分隔符的边框实例。static BorderBasicBorders. getTextFieldBorder()返回JTextField的边框实例。static BorderBasicBorders. getToggleButtonBorder()返回JToggleButton的边框实例。Methods in javax.swing.plaf.basic with parameters of type Border 变量和类型 方法 描述 voidBasicSplitPaneDivider. setBorder(Border border)设置此组件的边框。 -
Uses of Border in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal that implement Border 变量和类型 类 描述 static classMetalBorders.ButtonBorder该类代表JButton的边界。static classMetalBorders.Flush3DBorder该类表示3D边框。static classMetalBorders.InternalFrameBorder该类表示JInternalFrame的边界。static classMetalBorders.MenuBarBorder该类代表JMenuBar的边界。static classMetalBorders.MenuItemBorder该类代表JMenuItem的边界。static classMetalBorders.OptionDialogBorder该类表示选项对话框的边框。static classMetalBorders.PaletteBorder调色板的边框。static classMetalBorders.PopupMenuBorder该类代表JPopupMenu的边界。static classMetalBorders.RolloverButtonBorder该类表示翻转Button的边界。static classMetalBorders.ScrollPaneBorder该类代表JScrollPane的边界。static classMetalBorders.TableHeaderBorder表头的边框static classMetalBorders.TextFieldBorder该类表示JTestField的边界。static classMetalBorders.ToggleButtonBorderstatic classMetalBorders.ToolBarBorder该类代表JToolBar的边界。Methods in javax.swing.plaf.metal that return Border 变量和类型 方法 描述 static BorderMetalBorders. getButtonBorder()返回JButton的边框实例。static BorderMetalBorders. getDesktopIconBorder()返回桌面图标的边框实例。static BorderMetalBorders. getTextBorder()返回文本组件的边框实例。static BorderMetalBorders. getTextFieldBorder()返回JTextField的边框实例。static BorderMetalBorders. getToggleButtonBorder()返回JToggleButton的边框实例。 -
Uses of Border in javax.swing.table
Fields in javax.swing.table declared as Border 变量和类型 字段 描述 protected static BorderDefaultTableCellRenderer. noFocusBorder没有焦点的边框。 -
Uses of Border in javax.swing.tree
Fields in javax.swing.tree declared as Border 变量和类型 字段 描述 protected BorderDefaultTreeCellEditor.DefaultTextField. border要使用的边框。Methods in javax.swing.tree that return Border 变量和类型 方法 描述 BorderDefaultTreeCellEditor.DefaultTextField. getBorder()覆盖JComponent.getBorder以返回当前边框。Methods in javax.swing.tree with parameters of type Border 变量和类型 方法 描述 voidDefaultTreeCellEditor.DefaultTextField. setBorder(Border border)设置此组件的边框。Constructors in javax.swing.tree with parameters of type Border 构造器 描述 DefaultTextField(Border border)构造一个DefaultTreeCellEditor.DefaultTextField对象。
-