ij.plugin
Class ScaleBar
java.lang.Object
ij.plugin.ScaleBar
- All Implemented Interfaces:
- PlugIn
public class ScaleBar
- extends java.lang.Object
- implements PlugIn
This plugin implements the Analyze/Tools/Draw Scale Bar command.
Divakar Ramachandran added options to draw a background
and use a serif font on 23 April 2006.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locations
static final java.lang.String[] locations
UPPER_RIGHT
static final int UPPER_RIGHT
- See Also:
- Constant Field Values
LOWER_RIGHT
static final int LOWER_RIGHT
- See Also:
- Constant Field Values
LOWER_LEFT
static final int LOWER_LEFT
- See Also:
- Constant Field Values
UPPER_LEFT
static final int UPPER_LEFT
- See Also:
- Constant Field Values
AT_SELECTION
static final int AT_SELECTION
- See Also:
- Constant Field Values
colors
static final java.lang.String[] colors
bcolors
static final java.lang.String[] bcolors
checkboxLabels
static final java.lang.String[] checkboxLabels
barWidth
static double barWidth
defaultBarHeight
static int defaultBarHeight
barHeightInPixels
static int barHeightInPixels
location
static java.lang.String location
color
static java.lang.String color
bcolor
static java.lang.String bcolor
boldText
static boolean boldText
hideText
static boolean hideText
defaultFontSize
static int defaultFontSize
fontSize
static int fontSize
labelAll
static boolean labelAll
imp
ImagePlus imp
imageWidth
double imageWidth
mag
double mag
xloc
int xloc
yloc
int yloc
barWidthInPixels
int barWidthInPixels
roiX
int roiX
roiY
int roiY
roiWidth
int roiWidth
roiHeight
int roiHeight
serifFont
boolean serifFont
checkboxStates
boolean[] checkboxStates
ScaleBar
public ScaleBar()
run
public void run(java.lang.String arg)
- Description copied from interface:
PlugIn
- This method is called when the plugin is loaded.
'arg', which may be blank, is the argument specified
for this plugin in IJ_Props.txt.
- Specified by:
run
in interface PlugIn
labelSlices
void labelSlices(ImagePlus imp)
showDialog
boolean showDialog(ImagePlus imp)
drawScaleBar
void drawScaleBar(ImagePlus imp)
updateLocation
boolean updateLocation()
getColor
java.awt.Color getColor()
getBColor
java.awt.Color getBColor()
updateScalebar
void updateScalebar()