ui: Access levels

This commit is contained in:
sdburns1998
2019-07-07 22:03:47 +02:00
parent 0cfb6f8d99
commit ca6fc2525a
7 changed files with 10 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ public class FontManager
}
}
public static Font getFontOffCorrectSize(Font f)
private static Font getFontOffCorrectSize(Font f)
{
// Size of the font is already set
if (f.getSize2D() > 1)

View File

@@ -54,8 +54,8 @@ public class RuneLiteSplashScreen
{
private final RuneLiteProperties runeLiteProperties = new RuneLiteProperties();
public JFrame frame;
public final JPanel panel = new JPanel();
private JFrame frame;
private final JPanel panel = new JPanel();
private JLabel messageLabel;
private JLabel subMessageLabel;
private final JProgressBar progressBar = new JProgressBar();

View File

@@ -76,7 +76,7 @@ public class CustomScrollBarUI extends BasicScrollBarUI
/**
* Creates an empty JButton to be used as the scroll bar's arrows (to disable the arrows).
*/
protected JButton createEmptyButton()
private JButton createEmptyButton()
{
JButton button = new JButton();
Dimension zeroDim = new Dimension(0, 0);

View File

@@ -159,7 +159,7 @@ public class ProgressBar extends DimmableJPanel
centerLabel.setText(isDimmed() ? txt : centerLabelText);
}
public int getPercentage()
private int getPercentage()
{
if (value == 0)
{

View File

@@ -43,7 +43,7 @@ import javax.swing.text.DocumentFilter;
import net.runelite.client.ui.ColorScheme;
import net.runelite.client.util.ColorUtil;
public class ColorValuePanel extends JPanel
class ColorValuePanel extends JPanel
{
private static final int DEFAULT_VALUE = ColorUtil.MAX_RGB_VALUE;

View File

@@ -341,7 +341,7 @@ public class TableComponent implements LayoutableRenderableEntity
defaultColor);
}
public void setColumnAlignment(final int col, final TableAlignment alignment)
private void setColumnAlignment(final int col, final TableAlignment alignment)
{
assert columns.size() > col;
columns.get(col).setAlignment(alignment);
@@ -409,7 +409,7 @@ public class TableComponent implements LayoutableRenderableEntity
this.rows.add(row);
}
public void addRows(@Nonnull final String[]... rows)
private void addRows(@Nonnull final String[]... rows)
{
for (String[] row : rows)
{
@@ -434,7 +434,7 @@ public class TableComponent implements LayoutableRenderableEntity
this.rows.addAll(Arrays.asList(elements));
}
public void addColumn(@Nonnull final String col)
private void addColumn(@Nonnull final String col)
{
this.columns.add(TableElement.builder().content(col).build());
}

View File

@@ -46,7 +46,7 @@ import org.pushingpixels.substance.api.painter.overlay.TopLineOverlayPainter;
import org.pushingpixels.substance.api.shaper.ClassicButtonShaper;
import org.pushingpixels.substance.internal.utils.SubstanceColorUtilities;
public class ObsidianSkin extends SubstanceSkin
class ObsidianSkin extends SubstanceSkin
{
/**
* Display name for <code>this</code> skin.