mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-12-01 09:50:32 +00:00
tidying
This commit is contained in:
parent
a707fb8648
commit
f520126aeb
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user