< prev index next >
src/java.desktop/share/classes/java/awt/GridBagLayoutInfo.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 40,63 ****
*/
private static final long serialVersionUID = -4899416460737170217L;
int width, height; /* number of cells: horizontal and vertical */
int startx, starty; /* starting point for layout */
! int minWidth[]; /* largest minWidth in each column */
! int minHeight[]; /* largest minHeight in each row */
! double weightX[]; /* largest weight in each column */
! double weightY[]; /* largest weight in each row */
boolean hasBaseline; /* Whether or not baseline layout has been
* requested and one of the components
* has a valid baseline. */
// These are only valid if hasBaseline is true and are indexed by
// row.
! short baselineType[]; /* The type of baseline for a particular
* row. A mix of the BaselineResizeBehavior
* constants (1 << ordinal()) */
! int maxAscent[]; /* Max ascent (baseline). */
! int maxDescent[]; /* Max descent (height - baseline) */
/**
* Creates an instance of GridBagLayoutInfo representing {@code GridBagLayout}
* grid cells with it's own parameters.
* @param width the columns
--- 40,63 ----
*/
private static final long serialVersionUID = -4899416460737170217L;
int width, height; /* number of cells: horizontal and vertical */
int startx, starty; /* starting point for layout */
! int[] minWidth; /* largest minWidth in each column */
! int[] minHeight; /* largest minHeight in each row */
! double[] weightX; /* largest weight in each column */
! double[] weightY; /* largest weight in each row */
boolean hasBaseline; /* Whether or not baseline layout has been
* requested and one of the components
* has a valid baseline. */
// These are only valid if hasBaseline is true and are indexed by
// row.
! short[] baselineType; /* The type of baseline for a particular
* row. A mix of the BaselineResizeBehavior
* constants (1 << ordinal()) */
! int[] maxAscent; /* Max ascent (baseline). */
! int[] maxDescent; /* Max descent (height - baseline) */
/**
* Creates an instance of GridBagLayoutInfo representing {@code GridBagLayout}
* grid cells with it's own parameters.
* @param width the columns
< prev index next >