public class CoordinateSystemPainters
extends java.lang.Object
CoordinateSystemPainter instances| Modifier and Type | Method and Description |
|---|---|
static java.util.function.DoubleFunction<java.lang.String> |
createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
Calls
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing only the date |
static java.util.function.DoubleFunction<java.lang.String> |
createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit,
java.time.format.DateTimeFormatter formatter)
Create a function that converts a
double value
x into a date string, by computing
zero + x * unit and formatting the resulting
date with the given formatter. |
static java.util.function.DoubleFunction<java.lang.String> |
createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit,
java.lang.String pattern)
Calls
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a a formatter that was created from
the given pattern |
static java.util.function.DoubleFunction<java.lang.String> |
createDateTimeLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
Calls
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing the date and the time |
static CoordinateSystemPainter |
createFixed(Viewer viewer)
Create a coordinate system painter for the given viewer, using a
fixed screen layout, with unspecified margins
|
static CoordinateSystemPainter |
createFixed(Viewer viewer,
int left,
int right,
int top,
int bottom)
Create a coordinate system painter for the given viewer, using a
fixed screen layout, with the given margins
|
static java.util.function.DoubleFunction<java.lang.String> |
createTimeLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
Calls
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing only the time |
public static java.util.function.DoubleFunction<java.lang.String> createTimeLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing only the timezero - The zero-dateunit - The time unitpublic static java.util.function.DoubleFunction<java.lang.String> createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing only the datezero - The zero-dateunit - The time unitpublic static java.util.function.DoubleFunction<java.lang.String> createDateTimeLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit)
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a predefined (but unspecified) pattern
for the formatter, containing the date and the timezero - The zero-dateunit - The time unitpublic static java.util.function.DoubleFunction<java.lang.String> createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit,
java.lang.String pattern)
createDateLabelFormatter(OffsetDateTime, Duration,
DateTimeFormatter) with a a formatter that was created from
the given patternzero - The zero-dateunit - The time unitpattern - The patternjava.lang.IllegalArgumentException - if the pattern is invalidpublic static java.util.function.DoubleFunction<java.lang.String> createDateLabelFormatter(java.time.OffsetDateTime zero,
java.time.Duration unit,
java.time.format.DateTimeFormatter formatter)
double value
x into a date string, by computing
zero + x * unit and formatting the resulting
date with the given formatter. The resulting date will
be rounded to microseconds.zero - The zero-dateunit - The time unitformatter - The formatterpublic static CoordinateSystemPainter createFixed(Viewer viewer)
viewer - The viewerpublic static CoordinateSystemPainter createFixed(Viewer viewer, int left, int right, int top, int bottom)
viewer - The viewerleft - The left marginright - The right margintop - The top marginbottom - The bottom marginCopyright © 2019. All Rights Reserved.