public class RulerSettings extends Object
Modifier and Type | Field and Description |
---|---|
static int |
UNIT_CENTIMETERS
Show rulers/grids in centimeters.
|
static int |
UNIT_INCHES
Show rulers/grids in inches.
|
Constructor and Description |
---|
RulerSettings()
Construct a RulerSettings object with all settings set to defaults.
|
RulerSettings(int units)
Construct a RulerSettings object and initialize the units to the given argument.
|
Modifier and Type | Method and Description |
---|---|
int |
getUnits()
Returns the units that this ruler is using when displaying.
|
void |
setUnits(int units)
Sets the units to use when displaying the ruler.
|
public static final int UNIT_INCHES
public static final int UNIT_CENTIMETERS
public RulerSettings()
public RulerSettings(int units)
units
- One of RulerSettings.UNIT_INCHES or RulerSettings.UNIT_CENTIMETERS;public void setUnits(int units)
units
- public int getUnits()