Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
|
javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
javax.swing.border |
Provides classes and interface for drawing specialized borders around a Swing
component.
|
javax.swing.plaf |
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
|
javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
|
javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
|
javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
Modifier and Type | Field | Description |
---|---|---|
Insets |
GridBagConstraints.insets |
This field specifies the external padding of the component, the
minimum amount of space between the component and the edges of its
display area.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
Container.getInsets() |
Determines the insets of this container, which indicate the size
of the container's border.
|
Insets |
Toolkit.getScreenInsets(GraphicsConfiguration gc) |
Gets the insets of the screen.
|
Insets |
Container.insets() |
Deprecated.
As of JDK version 1.1,
replaced by
getInsets() . |
Constructor | Description |
---|---|
GridBagConstraints(int gridx,
int gridy,
int gridwidth,
int gridheight,
double weightx,
double weighty,
int anchor,
int fill,
Insets insets,
int ipadx,
int ipady) |
Creates a
GridBagConstraints object with
all of its fields set to the passed-in arguments. |
Modifier and Type | Method | Description |
---|---|---|
Insets |
Autoscroll.getAutoscrollInsets() |
This method returns the
Insets describing
the autoscrolling region or border relative
to the geometry of the implementing Component. |
Modifier and Type | Method | Description |
---|---|---|
Insets |
JComponent.getInsets() |
If a border has been set on this component, returns the
border's insets; otherwise calls
super.getInsets . |
Insets |
JComponent.getInsets(Insets insets) |
Returns an
Insets object containing this component's inset
values. |
Insets |
JViewport.getInsets() |
Returns the insets (border) dimensions as (0,0,0,0), since borders
are not supported on a
JViewport . |
Insets |
JViewport.getInsets(Insets insets) |
Returns an
Insets object containing this
JViewport s inset values. |
Insets |
UIDefaults.getInsets(Object key) |
If the value of
key is an Insets return it,
otherwise return null . |
Insets |
UIDefaults.getInsets(Object key,
Locale l) |
If the value of
key for the given Locale
is an Insets return it, otherwise return null . |
static Insets |
UIManager.getInsets(Object key) |
Returns an
Insets object from the defaults. |
static Insets |
UIManager.getInsets(Object key,
Locale l) |
Returns an
Insets object from the defaults that is
appropriate for the given locale. |
Insets |
AbstractButton.getMargin() |
Returns the margin between the button's border and
the label.
|
Insets |
JMenuBar.getMargin() |
Returns the margin between the menubar's border and
its menus.
|
Insets |
JPopupMenu.getMargin() |
Returns the margin, in pixels, between the popup menu's border and
its containers.
|
Insets |
JToolBar.getMargin() |
Returns the margin between the tool bar's border and
its buttons.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
JComponent.getInsets(Insets insets) |
Returns an
Insets object containing this component's inset
values. |
Insets |
JViewport.getInsets(Insets insets) |
Returns an
Insets object containing this
JViewport s inset values. |
void |
AbstractButton.setMargin(Insets m) |
Sets space for margin between the button's border and
the label.
|
void |
JMenuBar.setMargin(Insets m) |
Sets the margin between the menubar's border and
its menus.
|
void |
JToolBar.setMargin(Insets m) |
Sets the margin between the tool bar's border and
its buttons.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
AbstractBorder.getBorderInsets(Component c) |
This default implementation returns a new
Insets object
that is initialized by the AbstractBorder.getBorderInsets(Component,Insets)
method. |
Insets |
AbstractBorder.getBorderInsets(Component c,
Insets insets) |
Reinitializes the insets parameter with this Border's current Insets.
|
Insets |
BevelBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
Border.getBorderInsets(Component c) |
Returns the insets of the border.
|
Insets |
CompoundBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EmptyBorder.getBorderInsets() |
Returns the insets of the border.
|
Insets |
EmptyBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EtchedBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
LineBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
MatteBorder.getBorderInsets() |
Returns the insets of the border.
|
Insets |
MatteBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
SoftBevelBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
StrokeBorder.getBorderInsets(Component c,
Insets insets) |
Reinitializes the
insets parameter
with this border's current insets. |
Insets |
TitledBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
AbstractBorder.getBorderInsets(Component c,
Insets insets) |
Reinitializes the insets parameter with this Border's current Insets.
|
Insets |
BevelBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
CompoundBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EmptyBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
EtchedBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
LineBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
MatteBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
SoftBevelBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Insets |
StrokeBorder.getBorderInsets(Component c,
Insets insets) |
Reinitializes the
insets parameter
with this border's current insets. |
Insets |
TitledBorder.getBorderInsets(Component c,
Insets insets) |
Reinitialize the insets parameter with this Border's current Insets.
|
Constructor | Description |
---|---|
EmptyBorder(Insets borderInsets) |
Creates an empty border with the specified insets.
|
MatteBorder(Insets borderInsets,
Color matteColor) |
Creates a matte border with the specified insets and color.
|
MatteBorder(Insets borderInsets,
Icon tileIcon) |
Creates a matte border with the specified insets and tile icon.
|
Modifier and Type | Class | Description |
---|---|---|
class |
InsetsUIResource |
A subclass of Insets that implements UIResource.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
BorderUIResource.getBorderInsets(Component c) |
Constructor | Description |
---|---|
EmptyBorderUIResource(Insets insets) |
Constructs an
EmptyBorderUIResource . |
Modifier and Type | Field | Description |
---|---|---|
protected Insets |
BasicTabbedPaneUI.contentBorderInsets |
Content border insets
|
protected Insets |
BasicSliderUI.focusInsets |
Focus insets
|
protected Insets |
BasicSliderUI.insetCache |
Inset cache
|
protected Insets |
BasicComboBoxUI.padding |
If specified, these insets act as padding around the cell renderer when
laying out and painting the "selected" item in the combo box.
|
protected Insets |
BasicTabbedPaneUI.selectedTabPadInsets |
Selected tab insets
|
protected Insets |
BasicTabbedPaneUI.tabAreaInsets |
Tab area insets
|
protected Insets |
BasicTabbedPaneUI.tabInsets |
Tab insets
|
Modifier and Type | Method | Description |
---|---|---|
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) |
Returns the content border insets.
|
static Insets |
BasicGraphicsUtils.getEtchedInsets() |
Returns the amount of space taken up by a border drawn by
drawEtchedRect() |
static Insets |
BasicGraphicsUtils.getGrooveInsets() |
Returns the amount of space taken up by a border drawn by
drawGroove() |
protected Insets |
BasicComboBoxUI.getInsets() |
Gets the insets from the JComboBox.
|
Insets |
BasicDesktopIconUI.getInsets(JComponent c) |
Returns the insets.
|
Insets |
BasicSplitPaneDivider.getInsets() |
If a border has been set on this component, returns the
border's insets, else calls super.getInsets.
|
Insets |
BasicSplitPaneUI.getInsets(JComponent jc) |
Returns the insets.
|
Insets |
BasicToolBarUI.DragWindow.getInsets() |
|
protected Insets |
BasicTabbedPaneUI.getSelectedTabPadInsets(int tabPlacement) |
Returns the selected tab pad insets.
|
protected Insets |
BasicTabbedPaneUI.getTabAreaInsets(int tabPlacement) |
Returns the tab area insets.
|
protected Insets |
BasicTabbedPaneUI.getTabInsets(int tabPlacement,
int tabIndex) |
Returns the tab insets.
|
Modifier and Type | Method | Description |
---|---|---|
protected int |
BasicProgressBarUI.getAmountFull(Insets b,
int width,
int height) |
This determines the amount of the progress bar that should be filled
based on the percent done gathered from the model.
|
protected int |
BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize,
Insets insets) |
Returns the available width based on the container size and
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) |
Returns the left inset, unless the
Insets are null in which case
0 is returned. |
protected void |
BasicTreeUI.paintExpandControl(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
Paints the expand (toggle) part of a row.
|
protected void |
BasicTreeUI.paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
Paints the horizontal part of the leg.
|
protected void |
BasicTreeUI.paintRow(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
Paints the renderer part of a row.
|
protected void |
BasicProgressBarUI.paintString(Graphics g,
int x,
int y,
int width,
int height,
int amountFull,
Insets b) |
Paints the progress string.
|
protected void |
BasicTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path) |
Paints the vertical part of the leg.
|
protected static void |
BasicTabbedPaneUI.rotateInsets(Insets topInsets,
Insets targetInsets,
int targetPlacement) |
Rotates the insets.
|
protected void |
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c,
int size,
int location,
Insets insets,
Dimension containerSize) |
Sets the width of the component
c to be size , placing its
x location at location , y to the insets.top and height
to the containerSize.height less the top and bottom insets. |
Modifier and Type | Field | Description |
---|---|---|
protected static Insets |
MetalBorders.ButtonBorder.borderInsets |
The border insets.
|
protected static Insets |
MetalBorders.MenuBarBorder.borderInsets |
The border insets.
|
protected static Insets |
MetalBorders.MenuItemBorder.borderInsets |
The border insets.
|
protected static Insets |
MetalBorders.PopupMenuBorder.borderInsets |
The border insets.
|
protected Insets |
MetalBorders.TableHeaderBorder.editorBorderInsets |
The border insets.
|
protected static Insets |
MetalComboBoxEditor.editorBorderInsets |
The default editor border
Insets . |
Modifier and Type | Method | Description |
---|---|---|
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) |
Modifier and Type | Method | Description |
---|---|---|
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) |
Modifier and Type | Method | Description |
---|---|---|
Insets |
NimbusStyle.getInsets(SynthContext ctx,
Insets in) |
Returns the Insets that are used to calculate sizing information.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
NimbusStyle.getInsets(SynthContext ctx,
Insets in) |
Returns the Insets that are used to calculate sizing information.
|
Constructor | Description |
---|---|
PaintContext(Insets insets,
Dimension canvasSize,
boolean inverted) |
Creates a new PaintContext which does not attempt to cache or scale any cached
images.
|
PaintContext(Insets insets,
Dimension canvasSize,
boolean inverted,
AbstractRegionPainter.PaintContext.CacheMode cacheMode,
double maxH,
double maxV) |
Creates a new PaintContext.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
SynthStyle.getInsets(SynthContext context,
Insets insets) |
Returns the Insets that are used to calculate sizing information.
|
protected Insets |
SynthTabbedPaneUI.getTabInsets(int tabPlacement,
int tabIndex) |
Returns the tab insets.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
SynthStyle.getInsets(SynthContext context,
Insets insets) |
Returns the Insets that are used to calculate sizing information.
|
protected void |
SynthTreeUI.paintExpandControl(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
Paints the expand (toggle) part of a row.
|
protected void |
SynthTreeUI.paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
Paints the horizontal part of the leg.
|
protected void |
SynthTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path) |
Paints the vertical part of the leg.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
JTextComponent.getMargin() |
Returns the margin between the text component's border and
its text.
|
Modifier and Type | Method | Description |
---|---|---|
void |
JTextComponent.setMargin(Insets m) |
Sets margin space between the text component's border
and its text.
|
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps