mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
added since 1.1
This commit is contained in:
@@ -499,6 +499,9 @@ public abstract class FlatLaf
|
|||||||
return (font instanceof FontUIResource) ? (FontUIResource) font : new FontUIResource( font );
|
return (font instanceof FontUIResource) ? (FontUIResource) font : new FontUIResource( font );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
public static ActiveValue createActiveFontValue( float scaleFactor ) {
|
public static ActiveValue createActiveFontValue( float scaleFactor ) {
|
||||||
return new ActiveFont( scaleFactor );
|
return new ActiveFont( scaleFactor );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ import com.formdev.flatlaf.util.SystemInfo;
|
|||||||
* Support for custom window decorations with native window border.
|
* Support for custom window decorations with native window border.
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatNativeWindowBorder
|
public class FlatNativeWindowBorder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -815,6 +815,9 @@ debug*/
|
|||||||
|
|
||||||
//---- class FlatTitleLabelUI ---------------------------------------------
|
//---- class FlatTitleLabelUI ---------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
protected class FlatTitleLabelUI
|
protected class FlatTitleLabelUI
|
||||||
extends FlatLabelUI
|
extends FlatLabelUI
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,6 +122,9 @@ public class FlatUIUtils
|
|||||||
return (color != null) ? color : UIManager.getColor( defaultKey );
|
return (color != null) ? color : UIManager.getColor( defaultKey );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
public static boolean getUIBoolean( String key, boolean defaultValue ) {
|
public static boolean getUIBoolean( String key, boolean defaultValue ) {
|
||||||
Object value = UIManager.get( key );
|
Object value = UIManager.get( key );
|
||||||
return (value instanceof Boolean) ? (Boolean) value : defaultValue;
|
return (value instanceof Boolean) ? (Boolean) value : defaultValue;
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ import com.formdev.flatlaf.util.SystemInfo;
|
|||||||
* https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
|
* https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
class FlatWindowsNativeWindowBorder
|
class FlatWindowsNativeWindowBorder
|
||||||
implements FlatNativeWindowBorder.Provider
|
implements FlatNativeWindowBorder.Provider
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
package com.formdev.flatlaf.util;
|
package com.formdev.flatlaf.util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
public interface LoggingFacade
|
public interface LoggingFacade
|
||||||
{
|
{
|
||||||
LoggingFacade INSTANCE = new LoggingFacadeImpl();
|
LoggingFacade INSTANCE = new LoggingFacadeImpl();
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ import com.formdev.flatlaf.FlatLaf;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
class LoggingFacadeImpl
|
class LoggingFacadeImpl
|
||||||
implements LoggingFacade
|
implements LoggingFacade
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import java.nio.file.StandardCopyOption;
|
|||||||
* Copies native library to users temporary folder before loading it.
|
* Copies native library to users temporary folder before loading it.
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class NativeLibrary
|
public class NativeLibrary
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class SystemInfo
|
|||||||
public static final boolean isMacOS_10_15_Catalina_orLater;
|
public static final boolean isMacOS_10_15_Catalina_orLater;
|
||||||
|
|
||||||
// OS architecture
|
// OS architecture
|
||||||
public static final boolean isX86_64;
|
/** @since 1.1 */ public static final boolean isX86_64;
|
||||||
|
|
||||||
// Java versions
|
// Java versions
|
||||||
public static final long javaVersion;
|
public static final long javaVersion;
|
||||||
@@ -55,7 +55,7 @@ public class SystemInfo
|
|||||||
public static final boolean isKDE;
|
public static final boolean isKDE;
|
||||||
|
|
||||||
// other
|
// other
|
||||||
public static final boolean isProjector;
|
/** @since 1.1 */ public static final boolean isProjector;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// platforms
|
// platforms
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ package com.formdev.flatlaf.util;
|
|||||||
|
|
||||||
import com.formdev.flatlaf.FlatLaf;
|
import com.formdev.flatlaf.FlatLaf;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
class LoggingFacadeImpl
|
class LoggingFacadeImpl
|
||||||
implements LoggingFacade
|
implements LoggingFacade
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import com.jidesoft.plaf.basic.BasicJideButtonUI;
|
|||||||
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideButton}.
|
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideButton}.
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatJideButtonUI
|
public class FlatJideButtonUI
|
||||||
extends BasicJideButtonUI
|
extends BasicJideButtonUI
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import com.jidesoft.plaf.basic.BasicJideLabelUI;
|
|||||||
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideLabel}.
|
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideLabel}.
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatJideLabelUI
|
public class FlatJideLabelUI
|
||||||
extends BasicJideLabelUI
|
extends BasicJideLabelUI
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import com.jidesoft.swing.JideSplitButton;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatJidePainter
|
public class FlatJidePainter
|
||||||
extends BasicPainter
|
extends BasicPainter
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ import com.jidesoft.swing.JideSwingUtilities;
|
|||||||
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideSplitButton}.
|
* Provides the Flat LaF UI delegate for {@link com.jidesoft.swing.JideSplitButton}.
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatJideSplitButtonUI
|
public class FlatJideSplitButtonUI
|
||||||
extends BasicJideSplitButtonUI
|
extends BasicJideSplitButtonUI
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ import com.sun.jna.win32.W32APIOptions;
|
|||||||
* https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
|
* https://support.microsoft.com/en-us/windows/snap-your-windows-885a9b1e-a983-a3b1-16cd-c531795e6241
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
public class FlatWindowsNativeWindowBorder
|
public class FlatWindowsNativeWindowBorder
|
||||||
implements FlatNativeWindowBorder.Provider
|
implements FlatNativeWindowBorder.Provider
|
||||||
|
|||||||
Reference in New Issue
Block a user