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) intThe index of the marked bin.(package private) StringThe color of the marker.(package private) StringThe description of the marker.(package private) int[]The linestyle of the marker.(package private) doubleThex-coordinate of the marker. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new marker for the histogram atxwith colorcolorand descriptiondescr.Create a new marker for the histogram atxwith 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 tonullfor a solid line or to an array of integers defining the dash pattern.
-
-
Constructor Details
-
Marker
Create a new marker for the histogram atxwith colorcolorand 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 atxwith 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
-