Uses of Class
java.awt.Insets
-
Packages that use Insets 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. -
-
Uses of Insets in java.awt
Fields in java.awt declared as Insets Modifier and Type Field Description InsetsGridBagConstraints. insetsThis field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.Methods in java.awt that return Insets Modifier and Type Method Description InsetsContainer. getInsets()Determines the insets of this container, which indicate the size of the container's border.InsetsToolkit. getScreenInsets(GraphicsConfiguration gc)Gets the insets of the screen.InsetsContainer. insets()Deprecated.As of JDK version 1.1, replaced bygetInsets().Constructors in java.awt with parameters of type Insets 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 aGridBagConstraintsobject with all of its fields set to the passed-in arguments. -
Uses of Insets in java.awt.dnd
Methods in java.awt.dnd that return Insets Modifier and Type Method Description InsetsAutoscroll. getAutoscrollInsets()This method returns theInsetsdescribing the autoscrolling region or border relative to the geometry of the implementing Component. -
Uses of Insets in javax.swing
Methods in javax.swing that return Insets Modifier and Type Method Description InsetsJComponent. getInsets()If a border has been set on this component, returns the border's insets; otherwise callssuper.getInsets.InsetsJComponent. getInsets(Insets insets)Returns anInsetsobject containing this component's inset values.InsetsJViewport. getInsets()Returns the insets (border) dimensions as (0,0,0,0), since borders are not supported on aJViewport.InsetsJViewport. getInsets(Insets insets)Returns anInsetsobject containing thisJViewports inset values.InsetsUIDefaults. getInsets(Object key)If the value ofkeyis anInsetsreturn it, otherwise returnnull.InsetsUIDefaults. getInsets(Object key, Locale l)If the value ofkeyfor the givenLocaleis anInsetsreturn it, otherwise returnnull.static InsetsUIManager. getInsets(Object key)Returns anInsetsobject from the defaults.static InsetsUIManager. getInsets(Object key, Locale l)Returns anInsetsobject from the defaults that is appropriate for the given locale.InsetsAbstractButton. getMargin()Returns the margin between the button's border and the label.InsetsJMenuBar. getMargin()Returns the margin between the menubar's border and its menus.InsetsJPopupMenu. getMargin()Returns the margin, in pixels, between the popup menu's border and its containers.InsetsJToolBar. getMargin()Returns the margin between the tool bar's border and its buttons.Methods in javax.swing with parameters of type Insets Modifier and Type Method Description InsetsJComponent. getInsets(Insets insets)Returns anInsetsobject containing this component's inset values.InsetsJViewport. getInsets(Insets insets)Returns anInsetsobject containing thisJViewports inset values.voidAbstractButton. setMargin(Insets m)Sets space for margin between the button's border and the label.voidJMenuBar. setMargin(Insets m)Sets the margin between the menubar's border and its menus.voidJToolBar. setMargin(Insets m)Sets the margin between the tool bar's border and its buttons. -
Uses of Insets in javax.swing.border
Methods in javax.swing.border that return Insets Modifier and Type Method Description InsetsAbstractBorder. getBorderInsets(Component c)This default implementation returns a newInsetsobject that is initialized by theAbstractBorder.getBorderInsets(Component,Insets)method.InsetsAbstractBorder. getBorderInsets(Component c, Insets insets)Reinitializes the insets parameter with this Border's current Insets.InsetsBevelBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsBorder. getBorderInsets(Component c)Returns the insets of the border.InsetsCompoundBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsEmptyBorder. getBorderInsets()Returns the insets of the border.InsetsEmptyBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsEtchedBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsLineBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsMatteBorder. getBorderInsets()Returns the insets of the border.InsetsMatteBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsSoftBevelBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsStrokeBorder. getBorderInsets(Component c, Insets insets)Reinitializes theinsetsparameter with this border's current insets.InsetsTitledBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.Methods in javax.swing.border with parameters of type Insets Modifier and Type Method Description InsetsAbstractBorder. getBorderInsets(Component c, Insets insets)Reinitializes the insets parameter with this Border's current Insets.InsetsBevelBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsCompoundBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsEmptyBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsEtchedBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsLineBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsMatteBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsSoftBevelBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.InsetsStrokeBorder. getBorderInsets(Component c, Insets insets)Reinitializes theinsetsparameter with this border's current insets.InsetsTitledBorder. getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets.Constructors in javax.swing.border with parameters of type 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. -
Uses of Insets in javax.swing.plaf
Subclasses of Insets in javax.swing.plaf Modifier and Type Class Description classInsetsUIResourceA subclass of Insets that implements UIResource.Constructors in javax.swing.plaf with parameters of type Insets Constructor Description EmptyBorderUIResource(Insets insets)Constructs anEmptyBorderUIResource. -
Uses of Insets in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Insets Modifier and Type Field Description protected InsetsBasicTabbedPaneUI. contentBorderInsetsContent border insetsprotected InsetsBasicSliderUI. focusInsetsFocus insetsprotected InsetsBasicSliderUI. insetCacheInset cacheprotected InsetsBasicComboBoxUI. paddingIf specified, these insets act as padding around the cell renderer when laying out and painting the "selected" item in the combo box.protected InsetsBasicTabbedPaneUI. selectedTabPadInsetsSelected tab insetsprotected InsetsBasicTabbedPaneUI. tabAreaInsetsTab area insetsprotected InsetsBasicTabbedPaneUI. tabInsetsTab insetsMethods in javax.swing.plaf.basic that return Insets Modifier and Type Method Description protected InsetsBasicTabbedPaneUI. getContentBorderInsets(int tabPlacement)Returns the content border insets.static InsetsBasicGraphicsUtils. getEtchedInsets()Returns the amount of space taken up by a border drawn bydrawEtchedRect()static InsetsBasicGraphicsUtils. getGrooveInsets()Returns the amount of space taken up by a border drawn bydrawGroove()protected InsetsBasicComboBoxUI. getInsets()Gets the insets from the JComboBox.InsetsBasicDesktopIconUI. getInsets(JComponent c)Returns the insets.InsetsBasicSplitPaneDivider. getInsets()If a border has been set on this component, returns the border's insets, else calls super.getInsets.InsetsBasicSplitPaneUI. getInsets(JComponent jc)Returns the insets.protected InsetsBasicTabbedPaneUI. getSelectedTabPadInsets(int tabPlacement)Returns the selected tab pad insets.protected InsetsBasicTabbedPaneUI. getTabAreaInsets(int tabPlacement)Returns the tab area insets.protected InsetsBasicTabbedPaneUI. getTabInsets(int tabPlacement, int tabIndex)Returns the tab insets.Methods in javax.swing.plaf.basic with parameters of type Insets Modifier and Type Method Description protected intBasicProgressBarUI. 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 intBasicSplitPaneUI.BasicHorizontalLayoutManager. getAvailableSize(Dimension containerSize, Insets insets)Returns the available width based on the container size andInsets.protected intBasicSplitPaneUI.BasicHorizontalLayoutManager. getInitialLocation(Insets insets)Returns the left inset, unless theInsetsare null in which case 0 is returned.protected voidBasicTreeUI. 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 voidBasicTreeUI. 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 voidBasicTreeUI. 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 voidBasicProgressBarUI. paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)Paints the progress string.protected voidBasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)Paints the vertical part of the leg.protected static voidBasicTabbedPaneUI. rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)Rotates the insets.protected voidBasicSplitPaneUI.BasicHorizontalLayoutManager. setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)Sets the width of the componentcto besize, placing its x location atlocation, y to theinsets.topand height to thecontainerSize.heightless the top and bottom insets. -
Uses of Insets in javax.swing.plaf.metal
Fields in javax.swing.plaf.metal declared as Insets Modifier and Type Field Description protected static InsetsMetalBorders.ButtonBorder. borderInsetsThe border insets.protected static InsetsMetalBorders.MenuBarBorder. borderInsetsThe border insets.protected static InsetsMetalBorders.MenuItemBorder. borderInsetsThe border insets.protected static InsetsMetalBorders.PopupMenuBorder. borderInsetsThe border insets.protected InsetsMetalBorders.TableHeaderBorder. editorBorderInsetsThe border insets.protected static InsetsMetalComboBoxEditor. editorBorderInsetsThe default editor borderInsets. -
Uses of Insets in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus that return Insets Modifier and Type Method Description InsetsNimbusStyle. getInsets(SynthContext ctx, Insets in)Returns the Insets that are used to calculate sizing information.Methods in javax.swing.plaf.nimbus with parameters of type Insets Modifier and Type Method Description InsetsNimbusStyle. getInsets(SynthContext ctx, Insets in)Returns the Insets that are used to calculate sizing information.Constructors in javax.swing.plaf.nimbus with parameters of type Insets 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. -
Uses of Insets in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return Insets Modifier and Type Method Description InsetsSynthStyle. getInsets(SynthContext context, Insets insets)Returns the Insets that are used to calculate sizing information.Methods in javax.swing.plaf.synth with parameters of type Insets Modifier and Type Method Description InsetsSynthStyle. getInsets(SynthContext context, Insets insets)Returns the Insets that are used to calculate sizing information. -
Uses of Insets in javax.swing.text
Methods in javax.swing.text that return Insets Modifier and Type Method Description InsetsJTextComponent. getMargin()Returns the margin between the text component's border and its text.Methods in javax.swing.text with parameters of type Insets Modifier and Type Method Description voidJTextComponent. setMargin(Insets m)Sets margin space between the text component's border and its text.
-