This commit is contained in:
Denis Molony 2016-07-30 08:06:41 +10:00
parent a707fb8648
commit f520126aeb
2 changed files with 7 additions and 9 deletions

View File

@ -110,10 +110,9 @@ class DiskLayoutPanel extends JPanel
public void actionPerformed (ActionEvent e) public void actionPerformed (ActionEvent e)
{ {
LayoutDetails layout = new LayoutDetails (disk); LayoutDetails layout = new LayoutDetails (disk);
image.setDisk (disk, layout);
legendPanel.layoutDetails = layout; image.setDisk (disk, layout);
legendPanel.repaint (); legendPanel.setDisk (disk, layout);
verticalRuler.setLayout (layout); verticalRuler.setLayout (layout);
horizontalRuler.setLayout (layout); horizontalRuler.setLayout (layout);

View File

@ -16,17 +16,16 @@ import com.bytezone.diskbrowser.gui.DiskLayoutPanel.LayoutDetails;
class DiskLegendPanel extends JPanel class DiskLegendPanel extends JPanel
{ {
static final int LEFT = 10; private static final int LEFT = 10;
static final int TOP = 10; private static final int TOP = 10;
FormattedDisk disk; private FormattedDisk disk;
LayoutDetails layoutDetails; private LayoutDetails layoutDetails;
Font font; private final Font font;
private boolean retina; private boolean retina;
public DiskLegendPanel () public DiskLegendPanel ()
{ {
// font = new Font ("SansSerif", Font.PLAIN, 12);
font = Platform.getFont (FontType.SANS_SERIF, FontSize.BASE); font = Platform.getFont (FontType.SANS_SERIF, FontSize.BASE);
setBackground (Color.WHITE); setBackground (Color.WHITE);
} }