mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -06:00
Accent color: changed javadoc since version from 1.6 to 2
This commit is contained in:
@@ -792,7 +792,7 @@ public abstract class FlatLaf
|
|||||||
/**
|
/**
|
||||||
* Gets global extra UI defaults; or {@code null}.
|
* Gets global extra UI defaults; or {@code null}.
|
||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public static Map<String, String> getGlobalExtraDefaults() {
|
public static Map<String, String> getGlobalExtraDefaults() {
|
||||||
return globalExtraDefaults;
|
return globalExtraDefaults;
|
||||||
@@ -815,7 +815,7 @@ public abstract class FlatLaf
|
|||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* @see #setExtraDefaults(Map)
|
* @see #setExtraDefaults(Map)
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public static void setGlobalExtraDefaults( Map<String, String> globalExtraDefaults ) {
|
public static void setGlobalExtraDefaults( Map<String, String> globalExtraDefaults ) {
|
||||||
FlatLaf.globalExtraDefaults = globalExtraDefaults;
|
FlatLaf.globalExtraDefaults = globalExtraDefaults;
|
||||||
@@ -824,7 +824,7 @@ public abstract class FlatLaf
|
|||||||
/**
|
/**
|
||||||
* Gets extra UI defaults; or {@code null}.
|
* Gets extra UI defaults; or {@code null}.
|
||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public Map<String, String> getExtraDefaults() {
|
public Map<String, String> getExtraDefaults() {
|
||||||
return extraDefaults;
|
return extraDefaults;
|
||||||
@@ -848,7 +848,7 @@ public abstract class FlatLaf
|
|||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* @see #setGlobalExtraDefaults(Map)
|
* @see #setGlobalExtraDefaults(Map)
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public void setExtraDefaults( Map<String, String> extraDefaults ) {
|
public void setExtraDefaults( Map<String, String> extraDefaults ) {
|
||||||
this.extraDefaults = extraDefaults;
|
this.extraDefaults = extraDefaults;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class ColorFunctions
|
|||||||
* @param weight the weight (in range 0-1) to mix the two colors.
|
* @param weight the weight (in range 0-1) to mix the two colors.
|
||||||
* Larger weight uses more of first color, smaller weight more of second color.
|
* Larger weight uses more of first color, smaller weight more of second color.
|
||||||
* @return mixture of colors
|
* @return mixture of colors
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public static Color tint( Color color, float weight ) {
|
public static Color tint( Color color, float weight ) {
|
||||||
return mix( Color.white, color, weight );
|
return mix( Color.white, color, weight );
|
||||||
@@ -104,7 +104,7 @@ public class ColorFunctions
|
|||||||
* @param weight the weight (in range 0-1) to mix the two colors.
|
* @param weight the weight (in range 0-1) to mix the two colors.
|
||||||
* Larger weight uses more of first color, smaller weight more of second color.
|
* Larger weight uses more of first color, smaller weight more of second color.
|
||||||
* @return mixture of colors
|
* @return mixture of colors
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public static Color shade( Color color, float weight ) {
|
public static Color shade( Color color, float weight ) {
|
||||||
return mix( Color.black, color, weight );
|
return mix( Color.black, color, weight );
|
||||||
@@ -120,7 +120,7 @@ public class ColorFunctions
|
|||||||
* @return the luma (in range 0-1)
|
* @return the luma (in range 0-1)
|
||||||
*
|
*
|
||||||
* @see <a href="https://en.wikipedia.org/wiki/Luma_(video)">https://en.wikipedia.org/wiki/Luma_(video)</a>
|
* @see <a href="https://en.wikipedia.org/wiki/Luma_(video)">https://en.wikipedia.org/wiki/Luma_(video)</a>
|
||||||
* @since 1.6
|
* @since 2
|
||||||
*/
|
*/
|
||||||
public static float luma( Color color ) {
|
public static float luma( Color color ) {
|
||||||
// see https://en.wikipedia.org/wiki/Luma_(video)
|
// see https://en.wikipedia.org/wiki/Luma_(video)
|
||||||
|
|||||||
Reference in New Issue
Block a user