Class HistogramBound
java.lang.Object
org.eclipse.dawnsci.plotting.api.histogram.HistogramBound
Immutable HistogramBound class. Keep immutable so that static
bound defaults cannot be modified.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Numberprotected int[]static final HistogramBoundstatic final HistogramBoundstatic final HistogramBound -
Constructor Summary
ConstructorsConstructorDescriptionHistogramBound(double bound, int r, int g, int b) Constructor used from py4j to create a histogram boundHistogramBound(Number bound, int... color) RGB may be null.HistogramBound(String bound, int r, int g, int b) Constructor used from py4j to create a histogram bound -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HistogramBoundfromString(String encoded) getBound()int[]getColor()Used for bound values in python commands.booleanhasColor()inthashCode()toString()
-
Field Details
-
DEFAULT_MAXIMUM
-
DEFAULT_MINIMUM
-
DEFAULT_NAN
-
bound
-
color
protected int[] color
-
-
Constructor Details
-
HistogramBound
Constructor used from py4j to create a histogram bound- Parameters:
bound-r-g-b-
-
HistogramBound
public HistogramBound(double bound, int r, int g, int b) Constructor used from py4j to create a histogram bound- Parameters:
bound-r-g-b-
-
HistogramBound
RGB may be null. If it is the last three colours in the palette are used for the bound directly. For instance RGBs can be set to null to avoid special cut bounds colors at all.- Parameters:
bound-color-
-
-
Method Details
-
getBound
-
getColor
public int[] getColor() -
hasColor
public boolean hasColor() -
hashCode
public int hashCode() -
equals
-
toString
-
fromString
-
getStringBound
Used for bound values in python commands.- Returns:
-