public class QuimpToolsCollection extends Object
Modifier and Type | Field and Description |
---|---|
static String |
defNote
Message returned by
getQuimPBuildInfo() if info is not found in jar. |
Constructor and Description |
---|
QuimpToolsCollection() |
Modifier and Type | Method and Description |
---|---|
static double |
areaToScale(double value,
double scale)
Area to scale.
|
static Vert |
closestFloor(Outline o,
double target)
Closest floor.
|
static String |
dateAsString()
Date as string.
|
static double |
distanceFromScale(double value,
double scale)
Distance from scale.
|
static double |
distanceToScale(double value,
double scale)
Distance to scale.
|
static double |
distanceToScale(int value,
double scale)
Distance to scale.
|
static String |
getFileExtension(String filename)
Get file extension.
|
static String |
getFormattedQuimPversion(QuimpVersion quimpBuildInfo)
Prepare info plate for QuimP.
|
QuimpVersion |
getQuimPBuildInfo()
Get build info read from jar file.
|
String |
getQuimPversion()
Prepare info plate for QuimP.
|
static String |
implementationDateConverter(String dateString)
Reformat date from jar (put there by Maven).
|
static String |
removeExtension(String filename)
Get file name without extension.
|
static double |
s2d(String s)
S 2 d.
|
static double[] |
setLimitsEqual(double[] migLimits)
Sets the limits equal.
|
static double |
speedToScale(double value,
double scale,
double frameInterval)
Speed to scale.
|
static double |
speedToScale(int value,
double scale,
double frameInterval)
Speed to scale.
|
static String |
stringWrap(String in)
Insert \n character after default number of chars trying to not break words.
|
static String |
stringWrap(String in,
int len)
Insert \n character after given number of chars trying to not break words.
|
static String |
stringWrap(String in,
int len,
String brek)
Insert any symbol after given number of chars trying to not break words.
|
public static final String defNote
getQuimPBuildInfo()
if info is not found in jar.public String getQuimPversion()
getFormattedQuimPversion(QuimpVersion)
public static String getFormattedQuimPversion(QuimpVersion quimpBuildInfo)
It contains version, names, etc. By general QuimpToolsCollection class is static. These methods can not be so they must be called:
LOGGER.debug(new Tool().getQuimPversion());
quimpBuildInfo
- info read from jargetQuimPBuildInfo()
public QuimpVersion getQuimPBuildInfo()
public static String implementationDateConverter(String dateString)
dateString
- string in format "2017-02-24T08:55:44+0000"public static double s2d(String s)
s
- the spublic static String removeExtension(String filename)
filename
- name of the filepublic static String getFileExtension(String filename)
filename
- Name of filepublic static Vert closestFloor(Outline o, double target)
o
- the otarget
- the targetpublic static double distanceToScale(double value, double scale)
value
- the valuescale
- the scalepublic static double distanceToScale(int value, double scale)
value
- the valuescale
- the scalepublic static double areaToScale(double value, double scale)
value
- the valuescale
- the scalepublic static double speedToScale(double value, double scale, double frameInterval)
value
- the valuescale
- the scaleframeInterval
- the frame intervalpublic static double speedToScale(int value, double scale, double frameInterval)
value
- the valuescale
- the scaleframeInterval
- the frame intervalpublic static double distanceFromScale(double value, double scale)
value
- the valuescale
- the scalepublic static String dateAsString()
public static double[] setLimitsEqual(double[] migLimits)
migLimits
- the mig limitspublic static String stringWrap(String in, int len)
in
- Input stringlen
- line lengthpublic static String stringWrap(String in)
in
- Input stringpublic static String stringWrap(String in, int len, String brek)
It preserve position of new line symbol if present in text.
in
- Input stringlen
- line lengthbrek
- symbol to insert on line breakCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.