Skip to content
Snippets Groups Projects
Commit 6a23498e authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Merge remote-tracking branch 'origin/pr/33' into merges

# Conflicts:
#	src/main/java/bdv/viewer/ViewerPanel.java
parents 8020eb38 dc5c477d
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,36 @@ public class Prefs ...@@ -67,6 +67,36 @@ public class Prefs
return getInstance().scaleBarBgColor; return getInstance().scaleBarBgColor;
} }
public static void showScaleBar( final boolean show )
{
getInstance().showScaleBar = show;
}
public static void showMultibox( final boolean show )
{
getInstance().showMultibox = show;
}
public static void showTextOverlay( final boolean show )
{
getInstance().showTextOverlay = show;
}
public static void showScaleBarInMovie( final boolean show )
{
getInstance().showScaleBarInMovie = show;
}
public static void scaleBarColor( final int color )
{
getInstance().scaleBarColor = color;
}
public static void scaleBarBgColor( final int color )
{
getInstance().scaleBarBgColor = color;
}
private static Prefs instance; private static Prefs instance;
public static Prefs getInstance() public static Prefs getInstance()
...@@ -85,12 +115,12 @@ public class Prefs ...@@ -85,12 +115,12 @@ public class Prefs
private static final String SCALE_BAR_COLOR = "scale-bar-color"; private static final String SCALE_BAR_COLOR = "scale-bar-color";
private static final String SCALE_BAR_BG_COLOR = "scale-bar-bg-color"; private static final String SCALE_BAR_BG_COLOR = "scale-bar-bg-color";
private final boolean showScaleBar; private boolean showScaleBar;
private final boolean showMultibox; private boolean showMultibox;
private final boolean showTextOverlay; private boolean showTextOverlay;
private final boolean showScaleBarInMovie; private boolean showScaleBarInMovie;
private final int scaleBarColor; private int scaleBarColor;
private final int scaleBarBgColor; private int scaleBarBgColor;
private Prefs( final Properties p ) private Prefs( final Properties p )
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment