public class DimensionTool extends Object
DimensionController
.
The Tool's property values can be retrieved and initialized with the methods
toXMLString()
and setFromXML()
in the
AnnotationTools
class. Please see
AnnotationTools
.
Constructor and Description |
---|
DimensionTool() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultScaleDisplayUnits()
Returns the default scale display units to use when creating new measurements.
|
static String |
getDefaultScaleDisplayUnitsY()
Returns the default scale display units units for vertical scaling to use when creating new measurements.
|
static String |
getDefaultScaleDisplayValue()
Returns the default scale display value to use when creating new measurements.
|
static String |
getDefaultScaleDisplayValueY()
Returns the default scale display value units for vertical scaling to use when creating new measurements.
|
static String |
getDefaultScalePageUnits()
Returns the default scale page units to use when creating new measurements.
|
static String |
getDefaultScalePageUnitsY()
Returns the default scale page units units for vertical scaling to use when creating new measurements.
|
static String |
getDefaultScalePageValue()
Returns the default scale page value to use when creating new measurements.
|
static String |
getDefaultScalePageValueY()
Returns the default scale page value for vertical scaling used when creating new measurements.
|
static String |
getDefaultScalePrecision()
Returns the default scale precision used when creating new measurements
|
static boolean |
isShiftKeyPressed()
Returns the value of the flag that controls whether the Shift key should
be simulated when creating dimension annotations (distance, perimeter, area).
|
static boolean |
isShowDimensionDialog()
Returns the value of the show dimension dialog flag.
|
static boolean |
isSnapEnabled()
Returns the value of the snap to content enabled flag.
|
static void |
setDefaultScaleDisplayUnits(String defaultScaleDisplayUnits)
Sets the default scale display units to use when creating new measurements.
|
static void |
setDefaultScaleDisplayUnitsY(String defaultScaleDisplayUnits)
Sets the default scale display units for vertical scaling to use when creating new measurements.
|
static void |
setDefaultScaleDisplayValue(String defaultScaleDisplayValue)
Sets the default scale display value to use when creating new measurements.
|
static void |
setDefaultScaleDisplayValueY(String defaultScaleDisplayValue)
Sets the default scale display value units for vertical scaling to use when creating new measurements.
|
static void |
setDefaultScalePageUnits(String defaultScalePageUnits)
Sets the default scale page units to use when creating new measurements.
|
static void |
setDefaultScalePageUnitsY(String defaultScalePageUnits)
Sets the default scale page units units for vertical scaling to use when creating new measurements.
|
static void |
setDefaultScalePageValue(String defaultScalePageValue)
Sets the default scale page value to use when creating new measurements.
|
static void |
setDefaultScalePageValueY(String defaultScalePageValue)
Sets the default scale page value units for vertical scaling to use when creating new measurements.
|
static void |
setDefaultScalePrecision(String defaultScalePrecision)
Sets the default scale precision to use when creating new measurements.
|
static void |
setShiftKeyPressed(boolean shiftKeyPressed)
Sets a flag to indicate whether the Shift key should be simulated when
creating dimension annotations (distance, perimeter, area).
|
static void |
setSnapToContent(boolean snap)
Sets a flag to indicate whether snapping to content should be enabled
when drawing dimension annotations.
|
static void |
setUseSeparateVerticalScale(boolean useSeparateVerticalScale)
Sets a flag to indicate whether separate vertical scaling should be used
when creating dimension annotations.
|
static void |
showDimensionDialog(boolean show)
Sets a flag to indicate whether to show the dimension dialog when
creating dimension annotations (distance, perimeter, area).
|
static boolean |
useSeparateVerticalScale()
Returns the value of the flag that controls whether separate vertical
scaling should be used by default when creating dimension annotations.
|
public static void setSnapToContent(boolean snap)
snap
- The new value of the snap to content flagpublic static boolean isSnapEnabled()
public static void showDimensionDialog(boolean show)
show
- The new value of the show dimension dialog flag.public static boolean isShowDimensionDialog()
public static boolean isShiftKeyPressed()
public static void setShiftKeyPressed(boolean shiftKeyPressed)
shiftKeyPressed
- The new value of the flagpublic static String getDefaultScalePageValue()
useSeparateVerticalScale()
returns true, this is used for the X scale only.public static void setDefaultScalePageValue(String defaultScalePageValue)
useSeparateVerticalScale()
returns true, this is used for the X scale only.defaultScalePageValue
- The new value of the default scale page valuepublic static String getDefaultScalePageUnits()
useSeparateVerticalScale()
returns true, this is used for the X scale only.public static void setDefaultScalePageUnits(String defaultScalePageUnits)
useSeparateVerticalScale()
returns true, this is used for the X scale only.defaultScalePageUnits
- The new value of the default scale page unitspublic static String getDefaultScaleDisplayValue()
useSeparateVerticalScale()
returns true, this is used for the X scale only.public static void setDefaultScaleDisplayValue(String defaultScaleDisplayValue)
useSeparateVerticalScale()
returns true, this is used for the X scale only.defaultScaleDisplayValue
- the new value of the default scale display valuepublic static String getDefaultScaleDisplayUnits()
useSeparateVerticalScale()
returns true, this is used for the X scale only.public static void setDefaultScaleDisplayUnits(String defaultScaleDisplayUnits)
useSeparateVerticalScale()
returns true, this is used for the X scale only.defaultScaleDisplayUnits
- the new value for the default scale display unitspublic static String getDefaultScalePrecision()
public static void setDefaultScalePrecision(String defaultScalePrecision)
defaultScalePrecision
- the new value of the default scale precisionpublic static String getDefaultScalePageValueY()
useSeparateVerticalScale()
returns true.public static void setDefaultScalePageValueY(String defaultScalePageValue)
useSeparateVerticalScale()
returns true.defaultScalePageValue
- The new value of the default scale page valuepublic static String getDefaultScalePageUnitsY()
useSeparateVerticalScale()
returns true.public static void setDefaultScalePageUnitsY(String defaultScalePageUnits)
useSeparateVerticalScale()
returns true.defaultScalePageUnits
- The new value of the default scale page unitspublic static String getDefaultScaleDisplayValueY()
useSeparateVerticalScale()
returns true.public static void setDefaultScaleDisplayValueY(String defaultScaleDisplayValue)
useSeparateVerticalScale()
returns true.defaultScaleDisplayValue
- the new value of the default scale display valuepublic static String getDefaultScaleDisplayUnitsY()
useSeparateVerticalScale()
returns true.public static void setDefaultScaleDisplayUnitsY(String defaultScaleDisplayUnits)
useSeparateVerticalScale()
returns true.defaultScaleDisplayUnits
- the new value for the default scale display unitspublic static boolean useSeparateVerticalScale()
public static void setUseSeparateVerticalScale(boolean useSeparateVerticalScale)
useSeparateVerticalScale
- new value of the flag