Package org.evoludo.graphics
Class HistoGraph.Marker
Object
Marker
- Enclosing class:
HistoGraph
Marker for highlighting a specific bin in the histogram. The marker is
defined by its
x
-coordinate, color, and description. The linestyle
can be set to null
for a solid line or to an array of integers
defining the dash pattern.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
The index of the marked bin.(package private) String
The color of the marker.(package private) String
The description of the marker.(package private) int[]
The linestyle of the marker.(package private) double
Thex
-coordinate of the marker. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new marker for the histogram atx
with colorcolor
and descriptiondescr
.Create a new marker for the histogram atx
with colorcolor
, descriptiondescr
, and linestylelinestyle
. -
Method Summary
-
Field Details
-
x
double xThex
-coordinate of the marker. -
bin
int binThe index of the marked bin. -
color
String colorThe color of the marker. -
descr
String descrThe description of the marker. This is shown on the tolltip when hovering over the marked bin. -
linestyle
int[] linestyleThe linestyle of the marker. This can be set tonull
for a solid line or to an array of integers defining the dash pattern.
-
-
Constructor Details
-
Marker
Create a new marker for the histogram atx
with colorcolor
and descriptiondescr
.- Parameters:
x
- thex
-coordinate of the markercolor
- the color of the markerdescr
- the description of the marker
-
Marker
Create a new marker for the histogram atx
with colorcolor
, descriptiondescr
, and linestylelinestyle
.- Parameters:
x
- thex
-coordinate of the markercolor
- the color of the markerdescr
- the description of the markerlinestyle
- the linestyle of the marker
-