/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** * Resizes the given Paint. By default, only Gradients, LinearGradients, and RadialGradients are resized * in this method. If you have special resizing needs, override this method. This * method is mainly used to make gradient paints resize with the component this * painter is attached to. This method is internal to the painter api and should * not be called elsewhere. It is used by the paintStretched property and * painter subclasses. In the future it may be made public for use by other classes. * If this happens it should probably be turned into a static utility method. */ Paint calculateSnappedPaint(Paint p, int width, int height) { return PaintUtils.resizeGradient(p, width, height); }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isWindows() && !OS.isUsingWindowsVisualStyles(); } }
/** * Creates a new {@code Paint} that is a checkered effect using the colors {@link Color#GRAY * gray} and {@link Color#WHITE}. * * @return a the checkered paint */ public static Paint getCheckerPaint() { return getCheckerPaint(Color.WHITE, Color.GRAY, 20); }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isMacOSX(); } }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isLinux(); }
public void resetSizes(int minWidth, int minHeight) { this.minWidth = minWidth; this.minHeight = minHeight; adjustIfNeeded(window); }
/** * Instantitates a predicate with the given compare class. * * @param compareValue the fixed class to compare the * adapter's column class against, must not be null * * @throws NullPointerException if the class is null. * */ public ColumnTypeHighlightPredicate(Class<?> compareValue) { this.clazz = Contract.asNotNull(compareValue, "compare class must not be null"); }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isWindows() && OS.isUsingWindowsVisualStyles(); }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isLinux(); }
/** Test whether NetBeans is running on some variant of Windows. * @return <code>true</code> if Windows, <code>false</code> if some other manner of operating system */ public static boolean isWindows() { return (getOperatingSystem() & OS_WINDOWS_MASK) != 0; }
/** * Instantitates a predicate with the given compare class. * * @param compareValue the fixed class to compare the * adapter's column class against, must not be null * * @throws NullPointerException if the class is null. * */ public ColumnTypeHighlightPredicate(Class<?> compareValue) { this.clazz = Contract.asNotNull(compareValue, "compare class must not be null"); }
/** * {@inheritDoc} */ @Override protected boolean isSystemAddon() { return OS.isLinux(); }
/** Test whether the operating system supports icons on frames (windows). * @return <code>true</code> if it does <em>not</em> * */ public static boolean isLargeFrameIcons() { return (getOperatingSystem() == OS_SOLARIS) || (getOperatingSystem() == OS_HP); }
/** * Instantiates a Searchable for the given JTree. * * @param tree the JTree to search, must not be null. */ public TreeSearchable(JXTree tree) { this.tree = Contract.asNotNull(tree, "tree must not be null"); }
/** Test whether NetBeans is running on some variant of Unix. * Linux is included as well as the commercial vendors, and Mac OS X. * @return <code>true</code> some sort of Unix, <code>false</code> if some other manner of operating system */ public static boolean isUnix() { return (getOperatingSystem() & OS_UNIX_MASK) != 0; }
/** * Creates a new forwarding manager that forwards all calls to the delegate. * * @param delegate * the manager backing this {@code ForwardingRepaintManager} * @throws NullPointerException * if {@code delegate} is {@code null} */ public ForwardingRepaintManager(RepaintManager delegate) { this.delegate = Contract.asNotNull(delegate, "delegate is null"); }
/** * Creates a new forwarding manager that forwards all calls to the delegate. * * @param delegate * the manager backing this {@code ForwardingRepaintManager} * @throws NullPointerException * if {@code delegate} is {@code null} */ public ForwardingRepaintManager(RepaintManager delegate) { this.delegate = Contract.asNotNull(delegate, "delegate is null"); }
/** * Instantiates a Searchable for the given JTree. * * @param tree the JTree to search, must not be null. */ public TreeSearchable(JXTree tree) { this.tree = Contract.asNotNull(tree, "tree must not be null"); }