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)
{
LayoutDetails layout = new LayoutDetails (disk);
image.setDisk (disk, layout);
legendPanel.layoutDetails = layout;
legendPanel.repaint ();
image.setDisk (disk, layout);
legendPanel.setDisk (disk, layout);
verticalRuler.setLayout (layout);
horizontalRuler.setLayout (layout);

View File

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