| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| protected PlaceableShape | |
| private static final Color |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Color | applyColorTransform(ColorStyle color)
Convert color transformations in |
| private static void | applyHslModOff(double[]
the hsl values hsl, int the hsl part to modify [0..2] hslPart, int the modulation adjustment mod, int the offset adjustment off)Apply the modulation and offset adjustments to the given HSL part Example for lumMod/lumOff: The lumMod value is the percent luminance. |
| private static void | applyShade(double[] scRGB, ColorStyle fc)
Apply the shade For a shade, the equation is luminance * %tint. |
| private static void | |
| private static BufferedImage | Returns: the original image if no duotone was found, otherwise the colorized patternIn case a duotone element is specified, handle image as pattern and replace its color values with the corresponding percentile / linear value between fore- and background color |
| protected Paint | |
| protected Paint | |
| protected Paint | |
| public static PaintStyle. | |
| public static PaintStyle. | |
| pack-priv static void | |
| private static double | |
| private static double | |
| protected Paint | |
| public Paint | |
| public Paint | |
| private static double | |
| protected Paint | getSolidPaint(PaintStyle.
|
| protected Paint | |
| public static Color | Returns: the RGB Color objectHue is specified as degrees in the range 0 - 360. h, double Saturation is specified as a percentage in the range 1 - 100. s, double Luminance is specified as a percentage in the range 1 - 100. l, double the alpha value between 0 - 1 alpha)Convert HSL values to a RGB Color. |
| private static double | |
| private static int[] | |
| public static double[] | |
| public static double[] | |
| private Paint | |
| private static void | |
| public static Color | |
| private static float[] |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| shape | back to summary |
|---|---|
| protected PlaceableShape<?, ?> shape | |
| TRANSPARENT | back to summary |
|---|---|
| private static final Color TRANSPARENT | |
| DrawPaint | back to summary |
|---|---|
| public DrawPaint(PlaceableShape<?, ?> shape) | |
| applyColorTransform | back to summary |
|---|---|
| public static Color applyColorTransform(ColorStyle color) Convert color transformations in | |
| applyHslModOff | back to summary |
|---|---|
| private static void applyHslModOff(double[] hsl, int hslPart, int mod, int off) Apply the modulation and offset adjustments to the given HSL part
Example for lumMod/lumOff:
The lumMod value is the percent luminance. A lumMod value of "60000",
is 60% of the luminance of the original color.
When the color is a shade of the original theme color, the lumMod
attribute is the only one of the tags shown here that appears.
The the hsl values
the hsl part to modify [0..2]
the modulation adjustment
the offset adjustment
| |
| applyShade | back to summary |
|---|---|
| private static void applyShade(double[] scRGB, ColorStyle fc) Apply the shade For a shade, the equation is luminance * %tint. | |
| applyTint | back to summary |
|---|---|
| private static void applyTint(double[] scRGB, ColorStyle fc) Apply the tint | |
| colorizePattern | back to summary |
|---|---|
| private static BufferedImage colorizePattern(PaintStyle. In case a duotone element is specified, handle image as pattern and replace its color values with the corresponding percentile / linear value between fore- and background color
| |
| createLinearGradientPaint | back to summary |
|---|---|
protected Paint createLinearGradientPaint(PaintStyle.
| |
| createPathGradientPaint | back to summary |
|---|---|
protected Paint createPathGradientPaint(PaintStyle.
| |
| createRadialGradientPaint | back to summary |
|---|---|
protected Paint createRadialGradientPaint(PaintStyle.
| |
| createSolidPaint | back to summary |
|---|---|
| public static PaintStyle. | |
| createSolidPaint | back to summary |
|---|---|
| public static PaintStyle. | |
| fillPaintWorkaround | back to summary |
|---|---|
| pack-priv static void fillPaintWorkaround(Graphics2D graphics, Shape shape) | |
| getAlpha | back to summary |
|---|---|
| private static double getAlpha(Color c, ColorStyle fc) | |
| getCenterVal | back to summary |
|---|---|
| private static double getCenterVal(double absMin, double absMax, double relMin, double relMax) | |
| getGradientPaint | back to summary |
|---|---|
protected Paint getGradientPaint(PaintStyle.
| |
| getPaint | back to summary |
|---|---|
| public Paint getPaint(Graphics2D graphics, PaintStyle paint) | |
| getPaint | back to summary |
|---|---|
| public Paint getPaint(Graphics2D graphics, PaintStyle paint, PaintStyle. | |
| getScale | back to summary |
|---|---|
| private static double getScale(double absMin, double absMax, double relMin, double relMax) | |
| getSolidPaint | back to summary |
|---|---|
protected Paint getSolidPaint(PaintStyle.
| |
| getTexturePaint | back to summary |
|---|---|
protected Paint getTexturePaint(PaintStyle.
| |
| HSL2RGB | back to summary |
|---|---|
| public static Color HSL2RGB(double h, double s, double l, double alpha) Convert HSL values to a RGB Color.
| |
| HUE2RGB | back to summary |
|---|---|
| private static double HUE2RGB(double p, double q, double h) | |
| linearBlendedColors | back to summary |
|---|---|
| private static int[] linearBlendedColors(List<ColorStyle> duoTone, final int blendShades) | |
| RGB2HSL | back to summary |
|---|---|
| public static double[] RGB2HSL(Color color) Convert a RGB Color to it corresponding HSL values.
| |
| RGB2SCRGB | back to summary |
|---|---|
| public static double[] RGB2SCRGB(Color color) Convert sRGB Color to scRGB [0..1] (0:red,1:green,2:blue). Alpha needs to be handled separately.
| |
| safeFractions | back to summary |
|---|---|
| private Paint safeFractions(BiFunction<float[], Color[], Paint> init, PaintStyle. | |
| scaleShades | back to summary |
|---|---|
| private static void scaleShades(int[] samples, double ratio) | |
| SCRGB2RGB | back to summary |
|---|---|
| public static Color SCRGB2RGB(double... scRGB) Convert scRGB [0..1] components (0:red,1:green,2:blue) to sRGB Color. Alpha needs to be handled separately.
| |
| toArray | back to summary |
|---|---|
| private static float[] toArray(Collection<Float> floatList) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ColorStyle |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public ColorStyle | |
| public int |
| solidColor | back to summary |
|---|---|
| private final ColorStyle solidColor | |
| SimpleSolidPaint | back to summary |
|---|---|
| pack-priv SimpleSolidPaint(final Color color) | |
| SimpleSolidPaint | back to summary |
|---|---|
| pack-priv SimpleSolidPaint(ColorStyle color) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getSolidColor | back to summary |
|---|---|
| public ColorStyle getSolidColor() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |