mirror of https://github.com/rusefi/RomRaider.git
Rearrange 3D table labels
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@168 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
fcc97755b4
commit
011d3fefee
|
@ -28,7 +28,7 @@ public class Table3D extends Table {
|
|||
public Table3D(Settings settings) {
|
||||
super(settings);
|
||||
verticalOverhead += 39;
|
||||
horizontalOverhead += 5;
|
||||
horizontalOverhead += 10;
|
||||
}
|
||||
|
||||
public Table1D getXAxis() {
|
||||
|
@ -147,13 +147,16 @@ public class Table3D extends Table {
|
|||
GridLayout topLayout = new GridLayout(2, 1);
|
||||
JPanel topPanel = new JPanel(topLayout);
|
||||
this.add(topPanel, BorderLayout.NORTH);
|
||||
topPanel.add(new JLabel(name + " (" + scales.get(scaleIndex).getUnit() + ")", JLabel.CENTER), BorderLayout.NORTH);
|
||||
topPanel.add(new JLabel(name, JLabel.CENTER), BorderLayout.NORTH);
|
||||
topPanel.add(new JLabel(xAxis.getName() + " (" + xAxis.getScale().getUnit() + ")", JLabel.CENTER), BorderLayout.NORTH);
|
||||
|
||||
JLabel yLabel = new JLabel();
|
||||
yLabel.setFont(new Font("Arial", Font.BOLD, 12));
|
||||
VTextIcon icon = new VTextIcon(yLabel, yAxis.getName() + " (" + yAxis.getScale().getUnit() + ")", VTextIcon.ROTATE_LEFT);
|
||||
yLabel.setIcon(icon);
|
||||
this.add(yLabel, BorderLayout.WEST);
|
||||
add(yLabel, BorderLayout.WEST);
|
||||
|
||||
add(new JLabel(getScale().getUnit(), JLabel.CENTER), BorderLayout.SOUTH);
|
||||
}
|
||||
|
||||
public void colorize() {
|
||||
|
|
|
@ -16,17 +16,17 @@ public class TableFrame extends JInternalFrame implements InternalFrameListener
|
|||
|
||||
public TableFrame(Table table) {
|
||||
super(table.getRom().getFileName() + " - " + table.getName(), true, true);
|
||||
this.setTable(table);
|
||||
this.add(table);
|
||||
this.setFrameIcon(null);
|
||||
this.setBorder(BorderFactory.createBevelBorder(0));
|
||||
this.setVisible(false);
|
||||
setTable(table);
|
||||
add(table);
|
||||
setFrameIcon(null);
|
||||
setBorder(BorderFactory.createBevelBorder(0));
|
||||
setVisible(false);
|
||||
toolBar = new TableToolBar(table, this);
|
||||
this.add(toolBar, BorderLayout.NORTH);
|
||||
this.setJMenuBar(new TableMenuBar(table));
|
||||
this.setDefaultCloseOperation(HIDE_ON_CLOSE);
|
||||
add(toolBar, BorderLayout.NORTH);
|
||||
setJMenuBar(new TableMenuBar(table));
|
||||
setDefaultCloseOperation(HIDE_ON_CLOSE);
|
||||
table.setFrame(this);
|
||||
this.addInternalFrameListener(this);
|
||||
addInternalFrameListener(this);
|
||||
}
|
||||
|
||||
public TableToolBar getToolBar() {
|
||||
|
|
Loading…
Reference in New Issue