Interface SwingConstants
- All Known Implementing Classes:
AbstractButton,AsyncBoxView,BasicArrowButton,BasicComboBoxRenderer,BasicComboBoxRenderer.UIResource,BasicInternalFrameUI.BorderListener,BasicScrollBarUI,BasicTabbedPaneUI,BasicToolBarUI,BlockView,BoxView,ComponentView,CompositeView,DefaultListCellRenderer,DefaultListCellRenderer.UIResource,DefaultTableCellRenderer,DefaultTableCellRenderer.UIResource,DefaultTreeCellEditor.DefaultTextField,DefaultTreeCellRenderer,FieldView,FlowView,FormView,GlyphView,IconView,ImageView,InlineView,JButton,JCheckBox,JCheckBoxMenuItem,JFormattedTextField,JLabel,JMenu,JMenuItem,JPasswordField,JPopupMenu.Separator,JProgressBar,JRadioButton,JRadioButtonMenuItem,JSeparator,JSlider,JTabbedPane,JTextField,JToggleButton,JToolBar,JToolBar.Separator,LabelView,ListView,MetalBorders.ToolBarBorder,MetalComboBoxButton,MetalFileChooserUI.FileRenderer,MetalFileChooserUI.FilterComboBoxRenderer,MetalScrollBarUI,MetalScrollButton,MetalTabbedPaneUI,MetalToolBarUI,ObjectView,ParagraphView,ParagraphView,PasswordView,PlainView,SwingUtilities,SynthScrollBarUI,SynthTabbedPaneUI,SynthToolBarUI,TableView,TableView.TableCell,TableView.TableRow,View,WrappedPlainView,ZoneView
public interface SwingConstants
A collection of constants generally used for positioning and orienting
components on the screen.
- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBox-orientation constant used to specify the bottom of a box.static final intThe central position in an area.static final intCompass-direction east (right).static final intHorizontal orientation.static final intIdentifies the leading edge of text for use with left-to-right and right-to-left languages.static final intBox-orientation constant used to specify the left side of a box.static final intIdentifies the next direction in a sequence.static final intCompass-direction North (up).static final intCompass-direction north-east (upper right).static final intCompass-direction north west (upper left).static final intIdentifies the previous direction in a sequence.static final intBox-orientation constant used to specify the right side of a box.static final intCompass-direction south (down).static final intCompass-direction south-east (lower right).static final intCompass-direction south-west (lower left).static final intBox-orientation constant used to specify the top of a box.static final intIdentifies the trailing edge of text for use with left-to-right and right-to-left languages.static final intVertical orientation.static final intCompass-direction west (left).
-
Field Details
-
CENTER
static final int CENTERThe central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).- See Also:
-
TOP
static final int TOPBox-orientation constant used to specify the top of a box.- See Also:
-
LEFT
static final int LEFTBox-orientation constant used to specify the left side of a box.- See Also:
-
BOTTOM
static final int BOTTOMBox-orientation constant used to specify the bottom of a box.- See Also:
-
RIGHT
static final int RIGHTBox-orientation constant used to specify the right side of a box.- See Also:
-
NORTH
static final int NORTHCompass-direction North (up).- See Also:
-
NORTH_EAST
static final int NORTH_EASTCompass-direction north-east (upper right).- See Also:
-
EAST
static final int EASTCompass-direction east (right).- See Also:
-
SOUTH_EAST
static final int SOUTH_EASTCompass-direction south-east (lower right).- See Also:
-
SOUTH
static final int SOUTHCompass-direction south (down).- See Also:
-
SOUTH_WEST
static final int SOUTH_WESTCompass-direction south-west (lower left).- See Also:
-
WEST
static final int WESTCompass-direction west (left).- See Also:
-
NORTH_WEST
static final int NORTH_WESTCompass-direction north west (upper left).- See Also:
-
HORIZONTAL
static final int HORIZONTALHorizontal orientation. Used for scrollbars and sliders.- See Also:
-
VERTICAL
static final int VERTICALVertical orientation. Used for scrollbars and sliders.- See Also:
-
LEADING
static final int LEADINGIdentifies the leading edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.- See Also:
-
TRAILING
static final int TRAILINGIdentifies the trailing edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.- See Also:
-
NEXT
static final int NEXTIdentifies the next direction in a sequence.- Since:
- 1.4
- See Also:
-
PREVIOUS
static final int PREVIOUSIdentifies the previous direction in a sequence.- Since:
- 1.4
- See Also:
-