Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
TrimmedButton.java
1
package
ij.gui;
2
import
java.awt.*;
3
5
public
class
TrimmedButton
extends
Button {
6
private
int
trim = 0;
7
8
public
TrimmedButton
(String title,
int
trim) {
9
super(title);
10
this.trim = trim;
11
}
12
13
public
Dimension getMinimumSize() {
14
return
new
Dimension(super.getMinimumSize().width-trim, super.getMinimumSize().height);
15
}
16
17
public
Dimension getPreferredSize() {
18
return
getMinimumSize();
19
}
20
21
}
squiz_matrix
fudge
image_editor
src
ij
gui
TrimmedButton.java
Generated on Tue Jan 29 2013 14:04:51 for Squiz Matrix by
1.8.3.1