Uses of Class
java.awt.Insets
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
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.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Insets in java.awt
Modifier and TypeFieldDescriptionGridBagConstraints.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 TypeMethodDescriptionContainer.getInsets()
Determines the insets of this container, which indicate the size of the container's border.Toolkit.getScreenInsets(GraphicsConfiguration gc)
Gets the insets of the screen.Container.insets()
Deprecated.ModifierConstructorDescriptionGridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets, int ipadx, int ipady)
Creates aGridBagConstraints
object with all of its fields set to the passed-in arguments. -
Uses of Insets in java.awt.dnd
Modifier and TypeMethodDescriptionAutoscroll.getAutoscrollInsets()
This method returns theInsets
describing the autoscrolling region or border relative to the geometry of the implementing Component. -
Uses of Insets in javax.swing
Modifier and TypeMethodDescriptionJComponent.getInsets()
If a border has been set on this component, returns the border's insets; otherwise callssuper.getInsets
.Returns anInsets
object containing this component's inset values.JViewport.getInsets()
Returns the insets (border) dimensions as (0,0,0,0), since borders are not supported on aJViewport
.Returns anInsets
object containing thisJViewport
s inset values.If the value ofkey
is anInsets
return it, otherwise returnnull
.If the value ofkey
for the givenLocale
is anInsets
return it, otherwise returnnull
.static Insets
Returns anInsets
object from the defaults.static Insets
Returns anInsets
object from the defaults that is appropriate for the given locale.AbstractButton.getMargin()
Returns the margin between the button's border and the label.JMenuBar.getMargin()
Returns the margin between the menubar's border and its menus.JPopupMenu.getMargin()
Returns the margin, in pixels, between the popup menu's border and its containers.JToolBar.getMargin()
Returns the margin between the tool bar's border and its buttons.Modifier and TypeMethodDescriptionReturns anInsets
object containing this component's inset values.Returns anInsets
object containing thisJViewport
s inset values.void
Sets space for margin between the button's border and the label.void
Sets the margin between the menubar's border and its menus.void
Sets the margin between the tool bar's border and its buttons. -
Uses of Insets in javax.swing.border
Modifier and TypeMethodDescriptionAbstractBorder.getBorderInsets(Component c)
This default implementation returns a newInsets
object that is initialized by theAbstractBorder.getBorderInsets(Component,Insets)
method.AbstractBorder.getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.BevelBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.Border.getBorderInsets(Component c)
Returns the insets of the border.CompoundBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.EmptyBorder.getBorderInsets()
Returns the insets of the border.EmptyBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.EtchedBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.LineBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.MatteBorder.getBorderInsets()
Returns the insets of the border.MatteBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.SoftBevelBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.StrokeBorder.getBorderInsets(Component c, Insets insets)
Reinitializes theinsets
parameter with this border's current insets.TitledBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.Modifier and TypeMethodDescriptionAbstractBorder.getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.BevelBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.CompoundBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.EmptyBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.EtchedBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.LineBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.MatteBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.SoftBevelBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.StrokeBorder.getBorderInsets(Component c, Insets insets)
Reinitializes theinsets
parameter with this border's current insets.TitledBorder.getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.ModifierConstructorDescriptionEmptyBorder(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. -
Uses of Insets in javax.swing.plaf
Modifier and TypeClassDescriptionclass
A subclass of Insets that implements UIResource.ModifierConstructorDescriptionEmptyBorderUIResource(Insets insets)
Constructs anEmptyBorderUIResource
. -
Uses of Insets in javax.swing.plaf.basic
Modifier and TypeFieldDescriptionprotected Insets
BasicTabbedPaneUI.contentBorderInsets
Content border insetsprotected Insets
BasicSliderUI.focusInsets
Focus insetsprotected Insets
BasicSliderUI.insetCache
Inset cacheprotected 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 insetsprotected Insets
BasicTabbedPaneUI.tabAreaInsets
Tab area insetsprotected Insets
BasicTabbedPaneUI.tabInsets
Tab insetsModifier and TypeMethodDescriptionBasicBorders.SplitPaneBorder.getBorderInsets(Component c)
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 bydrawEtchedRect()
static Insets
BasicGraphicsUtils.getGrooveInsets()
Returns the amount of space taken up by a border drawn bydrawGroove()
protected Insets
BasicComboBoxUI.getInsets()
Gets the insets from the JComboBox.BasicDesktopIconUI.getInsets(JComponent c)
Returns the insets.BasicSplitPaneDivider.getInsets()
If a border has been set on this component, returns the border's insets, else calls super.getInsets.BasicSplitPaneUI.getInsets(JComponent jc)
Returns the insets.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 TypeMethodDescriptionprotected 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 andInsets
.protected int
BasicSplitPaneUI.BasicHorizontalLayoutManager.getInitialLocation(Insets insets)
Returns the left inset, unless theInsets
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 componentc
to besize
, placing its x location atlocation
, y to theinsets.top
and height to thecontainerSize.height
less the top and bottom insets. -
Uses of Insets in javax.swing.plaf.metal
Modifier and TypeFieldDescriptionprotected 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 borderInsets
. -
Uses of Insets in javax.swing.plaf.nimbus
Modifier and TypeMethodDescriptionNimbusStyle.getInsets(SynthContext ctx, Insets in)
Returns the Insets that are used to calculate sizing information.Modifier and TypeMethodDescriptionNimbusStyle.getInsets(SynthContext ctx, Insets in)
Returns the Insets that are used to calculate sizing information.ModifierConstructorDescriptionPaintContext(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. -
Uses of Insets in javax.swing.plaf.synth
Modifier and TypeMethodDescriptionSynthStyle.getInsets(SynthContext context, Insets insets)
Returns the Insets that are used to calculate sizing information.Modifier and TypeMethodDescriptionSynthStyle.getInsets(SynthContext context, Insets insets)
Returns the Insets that are used to calculate sizing information. -
Uses of Insets in javax.swing.text
Modifier and TypeMethodDescriptionJTextComponent.getMargin()
Returns the margin between the text component's border and its text.
getInsets()
.