Class GoogleMapsColor
java.lang.Object
org.deltava.util.color.GoogleColor
org.deltava.util.color.GoogleMapsColor
A class to define Google Maps colors.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.util.color.GoogleColor
_alpha, _blue, _green, _red
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapsColor
(int red, int green, int blue) Creates a Google Maps color with default opacity (255).GoogleMapsColor
(String colors) Creates a Google Maps color from an RGB string. -
Method Summary
-
Constructor Details
-
GoogleMapsColor
public GoogleMapsColor(int red, int green, int blue) Creates a Google Maps color with default opacity (255).- Parameters:
red
- the RGB red valuegreen
- the RGB green valueblue
- the RGB blue value
-
GoogleMapsColor
Creates a Google Maps color from an RGB string.- Parameters:
colors
- a dash-delimited string, in format R-G-B- Throws:
NumberFormatException
- if the string is invalid- See Also:
-
-
Method Details
-
toString
-