54 |
protected static final int MAXGRIDSIZE = 512; |
protected static final int MAXGRIDSIZE = 512; |
55 |
|
|
56 |
protected Hashtable comptable; |
protected Hashtable comptable; |
57 |
protected GridBagConstraints layoutInfo; |
protected GridBagLayoutInfo layoutInfo; |
58 |
protected GridBagConstraints defaultConstraints = new GridBagConstraints(); |
protected GridBagConstraints defaultConstraints = new GridBagConstraints(); |
59 |
|
|
60 |
|
|
61 |
public double[] columnWeights; |
public double[] columnWeights; |
62 |
public int[] columnWidths; |
public int[] columnWidths; |
63 |
public double[] rowWeights; |
public double[] rowWeights; |
64 |
public int[] rowHeights; |
public int[] rowHeights; |
65 |
|
|
|
// FIXME: How should this class look like ? |
|
|
//protected GridBagLayoutInfo layoutInfo; |
|
66 |
public GridBagLayout () |
public GridBagLayout () |
67 |
{ |
{ |
68 |
// Do nothing here. |
// Do nothing here. |
114 |
|
|
115 |
public float getLayoutAlignmentX (Container target) |
public float getLayoutAlignmentX (Container target) |
116 |
{ |
{ |
117 |
throw new Error ("Not implemented"); |
return Component.CENTER_ALIGNMENT; |
118 |
} |
} |
119 |
|
|
120 |
public float getLayoutAlignmentY (Container target) |
public float getLayoutAlignmentY (Container target) |
121 |
{ |
{ |
122 |
throw new Error ("Not implemented"); |
return Component.CENTER_ALIGNMENT; |
123 |
} |
} |
124 |
|
|
125 |
public void invalidateLayout (Container target) |
public void invalidateLayout (Container target) |
127 |
this.layoutInfo = null; |
this.layoutInfo = null; |
128 |
} |
} |
129 |
|
|
130 |
|
/** |
131 |
|
* @since 1.4 |
132 |
|
*/ |
133 |
protected void adjustForGravity (GridBagConstraints gbc, Rectangle rect) |
protected void adjustForGravity (GridBagConstraints gbc, Rectangle rect) |
134 |
{ |
{ |
135 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
140 |
adjustForGravity (gbc, rect); |
adjustForGravity (gbc, rect); |
141 |
} |
} |
142 |
|
|
143 |
|
/** |
144 |
|
* @since 1.4 |
145 |
|
*/ |
146 |
protected void arrangeGrid (Container parent) |
protected void arrangeGrid (Container parent) |
147 |
{ |
{ |
148 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
174 |
return (GridBagConstraints) comptable.get (component); |
return (GridBagConstraints) comptable.get (component); |
175 |
} |
} |
176 |
|
|
177 |
|
/** |
178 |
|
* @since 1.1 |
179 |
|
*/ |
180 |
public int[][] getLayoutDimensions () |
public int[][] getLayoutDimensions () |
181 |
{ |
{ |
182 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
183 |
} |
} |
184 |
|
|
185 |
|
/** |
186 |
|
* @since 1.1 |
187 |
|
*/ |
188 |
public Point getLayoutOrigin () |
public Point getLayoutOrigin () |
189 |
{ |
{ |
190 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
195 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
196 |
} |
} |
197 |
|
|
198 |
|
/** |
199 |
|
* @since 1.1 |
200 |
|
*/ |
201 |
public Point location (int x, int y) |
public Point location (int x, int y) |
202 |
{ |
{ |
203 |
throw new Error ("Not implemented"); |
throw new Error ("Not implemented"); |
204 |
} |
} |
205 |
|
|
206 |
|
/** |
207 |
|
* @since 1.4 |
208 |
|
*/ |
209 |
|
protected GridBagLayoutInfo getLayoutInfo (Container parent, int sizeflag) |
210 |
|
{ |
211 |
|
throw new Error ("Not implemented"); |
212 |
|
} |
213 |
|
|
214 |
|
protected GridBagLayoutInfo GetLayoutInfo (Container parent, int sizeflag) |
215 |
|
{ |
216 |
|
return getLayoutInfo (parent, sizeflag); |
217 |
|
} |
218 |
|
|
219 |
|
/** |
220 |
|
* @since 1.4 |
221 |
|
*/ |
222 |
|
protected Dimension getMinSize (Container parent, GridBagLayoutInfo info) |
223 |
|
{ |
224 |
|
throw new Error ("Not implemented"); |
225 |
|
} |
226 |
|
|
227 |
|
protected Dimension GetMinSize (Container parent, GridBagLayoutInfo info) |
228 |
|
{ |
229 |
|
throw new Error ("Not implemented"); |
230 |
|
} |
231 |
} |
} |