Index

A B C D E F G H I K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ACCEPTED - Static variable in interface nl.colorize.util.http.HttpStatus
 
AccordionPanel<K> - Class in nl.colorize.util.swing
Panel that contains a number of vertically stacked sub-panels, which can be expanded or collapsed when clicking on them.
AccordionPanel(boolean) - Constructor for class nl.colorize.util.swing.AccordionPanel
 
add(Date, ChronoUnit, int) - Static method in class nl.colorize.util.DateParser
Returns a new date that is created by adding the specified time unit to the original date.
add(L, R) - Method in class nl.colorize.util.stats.TupleList
 
addActionListener(ActionListener) - Method in class nl.colorize.util.swing.Table
 
addBoldRow(String) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that only consists of a single text label with a bold font that spans the entire width of the row.
addDescription(String...) - Method in class nl.colorize.util.cli.CommandLineArgumentParser
Extends the usage description with the specified line.
addEllipsesRow(Supplier<String>, Runnable) - Method in class nl.colorize.util.swing.FormPanel
Adds a row with a text label and an ellipsis button (...) that when invoked will trigger a callback action, which will in turn update the label.
addEmptyRow() - Method in class nl.colorize.util.swing.FormPanel
Adds an empty row that takes vertical space, but does not have any components in it.
addKeyFrame(float, float) - Method in class nl.colorize.util.animation.Timeline
Adds a key frame with the specified position (in seconds) and value.
addKeyFrame(float, Color) - Method in class nl.colorize.util.swing.AnimatedColor
Adds a key frame that describes the RGBA values of this color at the specified point in time.
addKeyFrame(KeyFrame) - Method in class nl.colorize.util.animation.Timeline
Adds a key frame to this timeline.
addLayoutComponent(String, Component) - Method in class nl.colorize.util.swing.AccordionPanel
 
addLayoutComponent(String, Component) - Method in class nl.colorize.util.swing.FormPanel
 
addLeading(String, String) - Static method in class nl.colorize.util.TextUtils
Adds the specified prefix string to the start of another string, but only if it is not already there.
addPadding(BufferedImage, int) - Static method in class nl.colorize.util.swing.Utils2D
Returns a new image that contains the original in the center, but is surrounded by the specified amount of empty padding.
addRow() - Method in class nl.colorize.util.swing.FormPanel
Deprecated.
Use the more clearly named FormPanel.addEmptyRow() instead.
addRow(String) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that only consists of a single text label that spans the entire width of the row.
addRow(String, String) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label and a value label.
addRow(String, String, String, Callable<String>) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label, a value label, and a button.
addRow(String, String, Callable<String>) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label and a button.
addRow(String, JComponent) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of the specified text label and value cells.
addRow(String, JComponent, JComponent) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label in the left column, and two components in the right column.
addRow(String, JRadioButton...) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label in and a number of radio buttons.
addRow(String, JSlider, boolean) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a text label and a slider.
addRow(JButton, boolean) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that consists of a single button.
addRow(JComponent) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that contains a single component that will use the entire available width.
addRow(JComponent, int) - Method in class nl.colorize.util.swing.FormPanel
Adds a row that contains a single component that will use the entire available width and the specified height.
addRow(JComponent, JComponent) - Method in class nl.colorize.util.swing.FormPanel
Adda a row that consists of the specified label and value cells.
addRow(R, String, Object...) - Method in class nl.colorize.util.swing.Table
Adds a row to this table.
addRow(R, List<?>) - Method in class nl.colorize.util.swing.Table
Adds a row to this table.
addSpacerRow(int) - Method in class nl.colorize.util.swing.FormPanel
Adds an empty row that takes the specified amount of vertical space.
addSubPanel(K, JComponent, JComponent) - Method in class nl.colorize.util.swing.AccordionPanel
 
addTableModelListener(TableModelListener) - Method in class nl.colorize.util.swing.Table
 
addTrailing(String, String) - Static method in class nl.colorize.util.TextUtils
Adds the specified suffix string to the end of another string, but only if it is not already there.
addTranslation(Locale, TranslationBundle) - Method in class nl.colorize.util.TranslationBundle
Adds a translation for the specified locale.
Aggregate - Class in nl.colorize.util.stats
Utility class for aggregating numerical data sets.
allowErrorStatus() - Method in class nl.colorize.util.http.URLLoader
Allows response error codes (HTTP status 4xx and 5xx).
ANDROID - Enum constant in enum class nl.colorize.util.Platform
 
Animatable - Interface in nl.colorize.util.animation
Animated object that expects to receive frame updates for as long as the animation is active.
animateBackgroundColor(JComponent, Color, float) - Method in class nl.colorize.util.swing.SwingAnimator
 
AnimatedColor - Class in nl.colorize.util.swing
Color with red, green, blue, and alpha components that change over time.
AnimatedColor(Color) - Constructor for class nl.colorize.util.swing.AnimatedColor
Creates a new AnimatedColor that will start out with the RGBA values of startColor.
AnimatedColor(Color, Color, float) - Constructor for class nl.colorize.util.swing.AnimatedColor
Creates a new color with the specified RGBA values.
AnimatedColor(Color, Interpolation) - Constructor for class nl.colorize.util.swing.AnimatedColor
 
animateForegroundColor(JComponent, Color, float) - Method in class nl.colorize.util.swing.SwingAnimator
 
animateHeight(JComponent, int, float) - Method in class nl.colorize.util.swing.SwingAnimator
 
animateWidth(JComponent, int, float) - Method in class nl.colorize.util.swing.SwingAnimator
 
AnsiColor - Class in nl.colorize.util.cli
ANSI escape codes to format command line output in a more human-readable way.
append(L, R) - Method in class nl.colorize.util.stats.TupleList
Adds a tuple to the list, then returns this TupleList instance.
ApplicationMenuListener - Interface in nl.colorize.util.swing
Interface for receiving events from the macOS application menu.
applyDropShadow(BufferedImage, Color, int, int) - Static method in class nl.colorize.util.swing.Utils2D
Applies a drop shadow filter to the specified image, and returns the result as a new image.
applyGaussianBlur(BufferedImage, int) - Static method in class nl.colorize.util.swing.Utils2D
Applies a Gaussian blur filter to the specified image, and returns the result as a new image.
applyTint(BufferedImage, Color) - Static method in class nl.colorize.util.swing.Utils2D
Creates a new image by applying a color tint to an existing image.
AQUA_BUTTON - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_BUTTON_SEGMENT_POS - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_PROGRESSBAR - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_SIZE - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_TEXTFIELD - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_CIRCULAR - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_FIRST - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_LAST - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_MIDDLE - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_SEARCH - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_SEGMENTED - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_SMALL - Static variable in class nl.colorize.util.swing.MacIntegration
 
AQUA_VALUE_TEXTURED - Static variable in class nl.colorize.util.swing.MacIntegration
 
Arg - Annotation Interface in nl.colorize.util.cli
Annotates a field to represent one of the arguments in a command line interface.
attachPseudoActionListener(JComponent, ActionListener) - Static method in class nl.colorize.util.swing.SwingUtils
Attaches a MouseListener to a Swing component and forwards "click" events to a ActionListener.
attempt(String, Class<T>) - Method in class nl.colorize.util.PropertyDeserializer
Attempts to deserialize a text-based property to the specified type, but returns an empty optional when parsing results in an exception or when the value is null.
augmentLookAndFeel() - Static method in class nl.colorize.util.swing.MacIntegration
Augments the Swing look-and-feel to look more like native macOS applications.
average(Collection<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
 

B

BAD_GATEWAY - Static variable in interface nl.colorize.util.http.HttpStatus
 
BAD_REQUEST - Static variable in interface nl.colorize.util.http.HttpStatus
 
BLUE - Static variable in class nl.colorize.util.cli.AnsiColor
 
BLUE_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 
bounceDockIcon() - Static method in class nl.colorize.util.swing.MacIntegration
Notifies the user of an event by bouncing the application's dock icon.
bundle - Variable in class nl.colorize.util.swing.ComboFileDialog
 

C

Cache<K,V> - Class in nl.colorize.util.stats
Data structure for key/value pairs, where the value for each key is based on an underlying compute function.
calculateLevenshteinDistance(String, String) - Static method in class nl.colorize.util.TextUtils
Calculates the Levenshtein distance between two strings.
calculateLongestCommonPrefix(String[], String[]) - Static method in class nl.colorize.util.TextUtils
Returns the longest possible list of strings that is a prefix for both a and b.
calculateLongestCommonPrefix(String, String) - Static method in class nl.colorize.util.TextUtils
Returns the longest possible string that is a prefix for both a and b.
calculateLongestCommonPrefix(List<String>, List<String>) - Static method in class nl.colorize.util.TextUtils
Returns the longest possible list of strings that is a prefix for both a and b.
calculateRelativeLevenshteinDistance(String, String) - Static method in class nl.colorize.util.TextUtils
Calculates the Levenshtein distance between two strings, but returns the result relative to the length of the longest input string.
callMethod(Object, String, Object...) - Static method in class nl.colorize.util.ReflectionUtils
Calls the object's method with the specified name using reflection.
cancel(Animatable) - Method in class nl.colorize.util.swing.SwingAnimator
Cancels an animation that is currently playing.
cancelAll() - Method in class nl.colorize.util.swing.SwingAnimator
Cancels all animations that are currently playing.
canParse(String) - Static method in class nl.colorize.util.Version
Returns true if versionString represents a version number that can be represented by this class.
CircularLoader - Class in nl.colorize.util.swing
A circular progressbar commonly used in web based AJAX applications.
CircularLoader(int) - Constructor for class nl.colorize.util.swing.CircularLoader
Creates a new CircularLoader of the specified size.
clearSubPanels() - Method in class nl.colorize.util.swing.AccordionPanel
 
combine(List<L>, List<R>) - Static method in class nl.colorize.util.stats.TupleList
Creates a TupleList by combining two lists.
ComboFileDialog - Class in nl.colorize.util.swing
A wrapper around both AWT's FileDialog and Swing's JFileChooser.
ComboFileDialog() - Constructor for class nl.colorize.util.swing.ComboFileDialog
Creates a file dialog with the platform's default dialog title and start directory.
ComboFileDialog(String, File) - Constructor for class nl.colorize.util.swing.ComboFileDialog
Creates a file dialog with the specified title and start directory.
CommandLineArgumentParser - Class in nl.colorize.util.cli
Define supported arguments for a command line interface, then parse the provided arguments accordingly.
CommandLineArgumentParser(Class<?>) - Constructor for class nl.colorize.util.cli.CommandLineArgumentParser
 
CommandLineArgumentParser(String) - Constructor for class nl.colorize.util.cli.CommandLineArgumentParser
 
CommandLineArgumentParser(String, PrintWriter, boolean) - Constructor for class nl.colorize.util.cli.CommandLineArgumentParser
 
CommandLineInterfaceException - Exception Class in nl.colorize.util.cli
Exception that indicates invalid or missing input was provided to an application's command line interface.
CommandLineInterfaceException(String) - Constructor for exception class nl.colorize.util.cli.CommandLineInterfaceException
 
CommandLineInterfaceException(String, Throwable) - Constructor for exception class nl.colorize.util.cli.CommandLineInterfaceException
 
CompactFormatter - Class in nl.colorize.util
Creates a log message formatter that uses a compact format with log records only taking up a single line.
CompactFormatter() - Constructor for class nl.colorize.util.CompactFormatter
 
CompactFormatter(boolean) - Constructor for class nl.colorize.util.CompactFormatter
 
compareTo(KeyFrame) - Method in record class nl.colorize.util.animation.KeyFrame
 
compareTo(DateRange) - Method in record class nl.colorize.util.stats.DateRange
 
compareTo(Version) - Method in class nl.colorize.util.Version
Compares this version number to other.
compareTo(Version, int) - Method in class nl.colorize.util.Version
Compares this version number to other, considering only the first N digits.
complete() - Method in class nl.colorize.util.Subscribable
Marks this Subscribable as completed, meaning that no new events or errors will be published to subscribers.
concat(TupleList<L, R>) - Method in class nl.colorize.util.stats.TupleList
Returns a new TupleList that will contain all tuples from this list, followed by all tuples from other.
confirmMessage(JFrame, String) - Static method in class nl.colorize.util.swing.Popups
Shows a simple pop-up window that displays a text message and contains default "OK" and "cancel" buttons.
confirmMessage(JFrame, String, JComponent) - Static method in class nl.colorize.util.swing.Popups
Shows a simple pop-up window that displays a text message and contains default "OK" and "cancel" buttons.
CONFLICT - Static variable in interface nl.colorize.util.http.HttpStatus
 
CONNECT - Enum constant in enum class nl.colorize.util.http.Method
 
contains(Object) - Method in record class nl.colorize.util.stats.Tuple
Returns true if element is one of this tuple's elements.
contains(String) - Method in class nl.colorize.util.http.PostData
Returns true if this PostData contains at least one parameter with the specified name.
contains(String, Collection<String>) - Static method in class nl.colorize.util.TextUtils
 
contains(Date) - Method in record class nl.colorize.util.stats.DateRange
Returns true if this date range contains the specified date.
CONTINUE - Static variable in interface nl.colorize.util.http.HttpStatus
 
convertDate(Date) - Static method in class nl.colorize.util.DateParser
Converts the specified Date instance to a LocalDate.
convertDateTime(Date) - Static method in class nl.colorize.util.DateParser
Converts the specified Date instance to a LocalDateTime.
copyDirectory(File, File) - Static method in class nl.colorize.util.FileUtils
Copies a directory to the specified location.
copyOf(List<Tuple<L, R>>) - Static method in class nl.colorize.util.stats.TupleList
Factory method that creates a mutable TupleList from an existing list of tuples.
copyToClipboard(String) - Static method in class nl.colorize.util.swing.SwingUtils
Copies the specified text to the system clipboard.
correlation(List<? extends Number>, List<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
Calculates the Pearson correlation for the specified two data sets.
count(B, String) - Method in class nl.colorize.util.stats.Histogram
Adds the specified frequency to this histogram.
count(B, String, int) - Method in class nl.colorize.util.stats.Histogram
Adds the specified frequency to this histogram.
countDirectorySize(File) - Static method in class nl.colorize.util.FileUtils
Returns the size of the specified directory, in bytes.
countIndent(String) - Static method in class nl.colorize.util.TextUtils
Counts the indent for the specified line.
countOccurrences(String, String) - Static method in class nl.colorize.util.TextUtils
Returns the number of occurrences of the string needle within the string haystack.
create() - Static method in class nl.colorize.util.stats.TupleList
Factory method that creates a TupleList that is mutable and initially empty.
create(String...) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Creates an individual CSV record from the specified array of cells.
create(String, String, String...) - Static method in class nl.colorize.util.http.PostData
Creates a PostData instance from a number of key/value pairs.
create(List<String>) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Creates an indivudual CSV record from the specified list of cells, with no column headers.
create(List<String>, List<String>) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Creates an indivudual CSV record from the specified list of cells and column headers.
create(Map<String, ?>) - Static method in class nl.colorize.util.http.PostData
Creates a PostData instance from existing key/value pairs.
createAddRemoveItemsPanel(Supplier<List<String>>, String, Consumer<String>, Consumer<String>) - Static method in class nl.colorize.util.swing.SwingUtils
Deprecated.
Use PropertyEditor instead.
createAnimation(int, Color, Stroke) - Static method in class nl.colorize.util.swing.CircularLoader
Returns an array of frame images.
createCallbackHandler(Consumer<Throwable>) - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will invoke the specified callback function for every log message that contains an attached Throwable.
createComboBox(Collection<T>, T) - Static method in class nl.colorize.util.swing.SwingUtils
 
createComboBox(T[], T) - Static method in class nl.colorize.util.swing.SwingUtils
 
createCompactFormatter() - Static method in class nl.colorize.util.LogHelper
Creates a log message formatter that uses a compact format with log records only taking up a single line.
createConsoleHandler() - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will log to stderr.
createCustomGraphicsPanel(BiConsumer<Graphics2D, Dimension>) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a JPanel that uses the supplied callback function to draw its background graphics.
CREATED - Static variable in interface nl.colorize.util.http.HttpStatus
 
createFileHandler(File) - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will log to the specified file using the platform's default character encoding.
createFileHandler(File, Charset) - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will log to the specified file.
createGraphics(Graphics, boolean, boolean) - Static method in class nl.colorize.util.swing.Utils2D
Convenience method that casts an AWT Graphics instance to Graphics2D, then configures its rendering hints based on the provided parameters.
createGraphics(BufferedImage, boolean, boolean) - Static method in class nl.colorize.util.swing.Utils2D
Returns a Graphics2D instance for the specified image's graphics, configuring its rendering hints based on the provided parameters.
createHoverButton(String, Color) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a button that does not follow the platform's UI conventions and changes foreground color on hover.
createImagePanel(BufferedImage) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a new panel with contents consisting of the specified image.
createKeyPressedListener(Consumer<KeyEvent>) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a KeyListener that will only listen to key pressed events, and will invoke the specified callback when such events occur.
createKeyReleasedListener(Consumer<KeyEvent>) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a KeyListener that will only listen to key released events, and will invoke the specified callback when such events occur.
createLabel(String, Font, Color) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a label with the specified font and color.
createMenuItem(JMenu, String, int) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a new JMenuItem with the specified label and (optional) keyboard shortcut, and adds it to a menu.
createNumericTextField(float) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a text field that always returns a valid float when its getText() method is called.
createNumericTextField(int) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a text field that always returns a valid integer when its getText() method is called.
createOutlineButton(String, Color, Color) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a button that does not follow the platform's UI conventions, but only consists of a text label and an outline.
createPlainConsoleHandler() - Static method in class nl.colorize.util.LogHelper
Deprecated.
Use LogHelper.createConsoleHandler() in combination with a CompactFormatter instead.
createResizeListener(Runnable) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a ComponentListener that will only listen to component resize events, and will invoke the specified callback when such events occur.
createSpacerPanel(int, int) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a JPanel without any visible contents and a transparent background.
createSpacerPanel(int, int, Color) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a JPanel without any visible contents and a colored background.
createStringHandler(StringWriter) - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will write log messages to the specified StringWriter and uses a compact formatter.
createStringHandler(StringWriter, Formatter) - Static method in class nl.colorize.util.LogHelper
Creates a log handler that will write log messages to the specified StringWriter.
createStripedList(List<E>) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a JTree that paints rows in alternating background colors, if allowed by the platform's UI conventions.
createStripedTree(DefaultTreeModel) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a JTree that paints rows in alternating background colors, if allowed by the platform's UI conventions.
createTempDir() - Static method in class nl.colorize.util.FileUtils
Creates a temporary directory within the platform's default location for storing temporary files.
createTempDir(String) - Static method in class nl.colorize.util.FileUtils
Creates a temporary directory with the specified name.
createTempFile(byte[]) - Static method in class nl.colorize.util.FileUtils
Creates a temporary file with the specified contents.
createTempFile(String, Charset) - Static method in class nl.colorize.util.FileUtils
Creates a temporary file with the specified text as contents.
createTestImage(int, int) - Static method in class nl.colorize.util.swing.Utils2D
Returns an image that consists of a red circle with the specified width and height.
createTestImage(int, int, Color) - Static method in class nl.colorize.util.swing.Utils2D
Returns an image that consists of a circle using the specified color.
createTextButton(String, Font, Color, Color) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a button that does not use the platform's normal look-and-feel, and instead only consists of a text link in the specified color.
createToolBarButton(String, BufferedImage) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a button suitable for usage in a toolbar.
createToolBarButton(String, ImageIcon) - Static method in class nl.colorize.util.swing.SwingUtils
Creates a button suitable for usage in a toolbar.
CSVRecord - Class in nl.colorize.util
Deprecated.
This class is intended for quick-and-dirty CSV support. Applications interacting with CSV files should prefer using a full-blown CSV library such as Apache Commons CSV or FastCSV.
CUBIC - Static variable in interface nl.colorize.util.animation.Interpolation
Cubic easing interpolation.
CYAN - Static variable in class nl.colorize.util.cli.AnsiColor
 
CYAN_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 

D

DateParser - Class in nl.colorize.util
Convenience functions for parsing, formatting, and working with dates.
DateRange - Record Class in nl.colorize.util.stats
Defines a range between two Dates, with the start date being inclusive and the end date being exclusive.
DateRange(String, String) - Constructor for record class nl.colorize.util.stats.DateRange
Secondary constructor that uses DateParser.parse(String) to parse dates from strings.
DateRange(Date, Date) - Constructor for record class nl.colorize.util.stats.DateRange
Creates an instance of a DateRange record class.
DEFAULT_FRAMERATE - Static variable in class nl.colorize.util.swing.SwingAnimator
 
defaultValue() - Element in annotation interface nl.colorize.util.cli.Arg
The command line argument's default value that is used when no value for the argument has been provided.
delegate() - Method in class nl.colorize.util.stats.TupleList
 
delete(File) - Static method in class nl.colorize.util.FileUtils
Deletes a file.
delete(String) - Static method in class nl.colorize.util.http.URLLoader
Factory method that creates a DELETE request to the specified URL.
DELETE - Enum constant in enum class nl.colorize.util.http.Method
 
deleteDirectory(File) - Static method in class nl.colorize.util.FileUtils
Deletes a directory and all of its contents.
delta(Date, Date, ChronoUnit) - Static method in class nl.colorize.util.DateParser
Returns the difference between two dates, expressed in the specified time unit.
disableCertificateValidation() - Method in class nl.colorize.util.http.URLLoader
Disables SSL certificate validation performed for HTTPS connections, ignoring any errors or warnings that may occur while checking the certificate.
disableColor() - Method in class nl.colorize.util.cli.CommandLineArgumentParser
By default, command line output uses ANSI color to improve readability.
DISCRETE - Static variable in interface nl.colorize.util.animation.Interpolation
Discrete interpolation.
display(BufferedImage) - Method in class nl.colorize.util.swing.ImageViewer
 
doInBackground(Runnable, Runnable) - Static method in class nl.colorize.util.swing.SwingUtils
Performs task in a background thread, and when done calls swingCallback on the Swing thread.
drawCircle(Graphics2D, int, int, int) - Static method in class nl.colorize.util.swing.Utils2D
Convenience method for drawing a circle from its center, rather than from its top left corner.
drawMultiLineString(Graphics2D, String, int, int, int) - Static method in class nl.colorize.util.swing.Utils2D
Draws a string that will word-wrap around a set width.
drawStringCentered(Graphics2D, String, int, int) - Static method in class nl.colorize.util.swing.Utils2D
 
drawStringRight(Graphics2D, String, int, int) - Static method in class nl.colorize.util.swing.Utils2D
 

E

EASE - Static variable in interface nl.colorize.util.animation.Interpolation
Easing interpolation.
empty() - Static method in class nl.colorize.util.http.PostData
Utility method that returns a PostData instance that indicates no parameters have been specified.
empty() - Static method in class nl.colorize.util.stats.TupleList
Creates a new TupleList that is initially empty, and will throw an UnsupportedOperationException when trying to modify it.
emulateUnicodeProperties(String, Properties) - Static method in class nl.colorize.util.PropertyUtils
Emulates loading .properties files that contain non-ASCII characters, on platforms that do not support loading such files natively.
enableApplicationMenuBar() - Static method in class nl.colorize.util.swing.MacIntegration
Enables the application menu bar for Swing applications.
encode() - Method in class nl.colorize.util.http.PostData
Encodes this PostData into a string that follows the application/x-www-form-urlencoded notation, using the UTF-8 character encoding.
encode(Charset) - Method in class nl.colorize.util.http.PostData
Encodes this PostData into a string that follows the application/x-www-form-urlencoded notation.
end() - Method in class nl.colorize.util.animation.Timeline
Moves the playhead to the end of the timeline.
end() - Method in record class nl.colorize.util.stats.DateRange
Returns the value of the end record component.
end() - Method in class nl.colorize.util.swing.AnimatedColor
 
endsWith(String, Collection<String>) - Static method in class nl.colorize.util.TextUtils
 
equals(Object) - Method in record class nl.colorize.util.animation.KeyFrame
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class nl.colorize.util.http.PostData
 
equals(Object) - Method in record class nl.colorize.util.ResourceFile
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class nl.colorize.util.stats.DateRange
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class nl.colorize.util.stats.Tuple
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class nl.colorize.util.Version
 
exists() - Method in record class nl.colorize.util.ResourceFile
Returns true if the resource file exists in one of the searched locations.
expandSubPanel(K) - Method in class nl.colorize.util.swing.AccordionPanel
 
expandUser(String) - Static method in class nl.colorize.util.FileUtils
Expands a file path that contains a reference to the user's home directory.
EXPECTATION_FAILED - Static variable in interface nl.colorize.util.http.HttpStatus
 

F

FileUtils - Class in nl.colorize.util
Utility class for loading data from and saving data to files.
filter(Predicate<T>) - Method in class nl.colorize.util.Subscribable
Returns a new Subscribable that will forward events to its own subscribers, but only if the event matches the specified predicate.
filterPrefix(Properties, String) - Static method in class nl.colorize.util.PropertyUtils
Returns a new Properties object that only includes properties from the original that have a name matching the specified prefix.
findAvailableFontFamily(String...) - Static method in class nl.colorize.util.swing.SwingUtils
Looks through the available font families and returns the first match from requestedFontFamilies which is available on the system.
FORBIDDEN - Static variable in interface nl.colorize.util.http.HttpStatus
 
FORCE_LEGACY_HTTP_CLIENT_SYSTEM_PROPERTY - Static variable in class nl.colorize.util.http.URLLoader
Deprecated.
Applications should prefer automatic detection, to avoid ending up with a HTTP client that is not actually supported on the current platform.
forEach(BiConsumer<String, String>) - Method in class nl.colorize.util.http.Headers
 
forEach(BiConsumer<L, R>) - Method in class nl.colorize.util.stats.TupleList
 
forget(K) - Method in class nl.colorize.util.stats.Cache
Forgets a cached key/value pairs in this cache.
forgetAll() - Method in class nl.colorize.util.stats.Cache
Forgets all cached key/value pairs in this cache.
format(String) - Method in class nl.colorize.util.cli.AnsiColor
Formats the specified text using this color and styling.
format(Date, String) - Static method in class nl.colorize.util.DateParser
Convenience method that wraps around SimpleDateFormat.format and formats a date using the default time zone.
format(Date, String, String) - Static method in class nl.colorize.util.DateParser
Convenience method that wraps around SimpleDateFormat.format and formats a date in the time zone with the specified name.
format(LogRecord) - Method in class nl.colorize.util.CompactFormatter
 
formatFileSize(long) - Static method in class nl.colorize.util.FileUtils
Returns a human-readable description of the specified file size in bytes.
formatFileSize(File) - Static method in class nl.colorize.util.FileUtils
Returns a human-readable description of the specified file's size.
formatRelative(Date) - Static method in class nl.colorize.util.DateParser
Formats a date relative to the current date, with the precision being decided by the distance between the two dates.
formatRelative(Date, Date) - Static method in class nl.colorize.util.DateParser
Formats a date relative to another date, with the precision being decided by the distance between the two dates.
FormPanel - Class in nl.colorize.util.swing
Panel that arranges components in a 2 x N grid.
FormPanel() - Constructor for class nl.colorize.util.swing.FormPanel
Creates a FormPanel with alignments and margins conforming to the user interface conventions for the underlying platform.
FOUND - Static variable in interface nl.colorize.util.http.HttpStatus
 
fraction(float, float) - Static method in class nl.colorize.util.stats.Aggregate
 
from(Function<K, V>) - Static method in class nl.colorize.util.stats.Cache
Creates a lookup table based on the specified function.
from(Function<K, V>, int) - Static method in class nl.colorize.util.stats.Cache
Creates a lookup table based on the specified function.
from(Properties) - Static method in class nl.colorize.util.TranslationBundle
Returns a TranslationBundle that will use the specified Properties as its default translation.
from(ResourceFile) - Static method in class nl.colorize.util.TranslationBundle
Loads the specified .properties file, then uses the resulting properties as the default translation for a TranslationBundle.
fromDataURL(String) - Static method in class nl.colorize.util.swing.Utils2D
Parses a data URL and returns the resulting image.
fromMap(Map<String, String>) - Static method in class nl.colorize.util.http.Headers
Creates a Headers instance from a map containing the name/value pairs of the HTTP headers.
fromMap(Map<String, String>) - Static method in class nl.colorize.util.TranslationBundle
Returns a TranslationBundle that will use the key/value properties in the specified map as its default translation.
fromMap(Map<L, R>) - Static method in class nl.colorize.util.stats.TupleList
Factory method that creates a mutable TupleList from a map.
fromProperties(Properties) - Static method in class nl.colorize.util.PropertyDeserializer
Returns a PropertyDeserializer that acts as a live view for parsing values from the specified Properties object.
fromPropertiesFile(String) - Static method in class nl.colorize.util.TranslationBundle
Returns a TranslationBundle that loads the contents of a .properties file, then uses the resulting properties as the default translation.
fromStream(Stream<Tuple<L, R>>) - Static method in class nl.colorize.util.stats.TupleList
Factory method that creates a mutable TupleList from an existing stream of tuples.

G

GATEWAY_TIMEOUT - Static variable in interface nl.colorize.util.http.HttpStatus
 
get(int) - Method in class nl.colorize.util.CSVRecord
Deprecated.
Returns the value of the cell with the specified index.
get(String) - Method in class nl.colorize.util.CSVRecord
Deprecated.
Returns the value for the cell with the specified column name.
get(String) - Method in class nl.colorize.util.http.Headers
Returns the value of the header with the specified name.
get(String) - Static method in class nl.colorize.util.http.URLLoader
Factory method that creates a GET request to the specified URL.
get(K) - Method in class nl.colorize.util.stats.Cache
Returns the value mapped to the specified key.
GET - Enum constant in enum class nl.colorize.util.http.Method
 
getAll(String) - Method in class nl.colorize.util.http.Headers
Returns all values for headers with the specified name.
getAlpha() - Method in class nl.colorize.util.swing.AnimatedColor
 
getApplicationData(String, String) - Static method in enum class nl.colorize.util.Platform
Returns a File handle that points to a file inside the platform's directory for storing application data, for the application with the specified name.
getApplicationDataDirectory(String) - Static method in enum class nl.colorize.util.Platform
Returns the platform's directory for storing application data, for the application with the specified name.
getAvailableHeight(Container) - Static method in class nl.colorize.util.swing.SwingUtils
Returns the width available to child components within a container.
getAvailableWidth(Container) - Static method in class nl.colorize.util.swing.SwingUtils
Returns the width available to child components within a container.
getBinFrequency(B) - Method in class nl.colorize.util.stats.Histogram
Returns a map containing all series and corresponding frequency that exist in the specified bin.
getBins() - Method in class nl.colorize.util.stats.Histogram
Returns a list of all bins in this histogram.
getBinTotal(B) - Method in class nl.colorize.util.stats.Histogram
Returns the total frequency for the specified bin, combining the frequencies of all series that are included in that bin.
getBlue() - Method in class nl.colorize.util.swing.AnimatedColor
 
getBody() - Method in class nl.colorize.util.http.URLResponse
 
getCapacity() - Method in class nl.colorize.util.stats.Cache
 
getChanges() - Method in class nl.colorize.util.swing.PropertyEditor
 
getColumnClass(int) - Method in class nl.colorize.util.swing.Table
 
getColumnCount() - Method in class nl.colorize.util.swing.Table
 
getColumnName(int) - Method in class nl.colorize.util.swing.Table
 
getColumns() - Method in class nl.colorize.util.CSVRecord
Deprecated.
Returns a list of all named columns in this CSV record.
getColumnValues() - Method in class nl.colorize.util.CSVRecord
Deprecated.
Returns a list of column values for all cells in this CSV record.
getContentType() - Method in class nl.colorize.util.http.URLResponse
Returns the value of the HTTP Content-Type header.
getCurrentlyPlaying() - Method in class nl.colorize.util.swing.SwingAnimator
 
getCustomComponentsBundle() - Static method in class nl.colorize.util.swing.SwingUtils
Returns the resource bundle containing the user interface text for all custom Swing components provided by this library.
getDefaultTimeZone() - Static method in enum class nl.colorize.util.Platform
Returns the default timezone.
getDelta() - Method in class nl.colorize.util.animation.Timeline
Returns the position of the playhead as a number between 0 and 1, where 0 is the beginning of the timeline and 1 is the timeline's duration.
getDesktopScaleFactor() - Static method in class nl.colorize.util.swing.SwingUtils
Returns the platform's user interface scale factor.
getDigit(int) - Method in class nl.colorize.util.Version
Returns the digit at the specified position.
getDoubleClick() - Method in class nl.colorize.util.swing.Table
Deprecated.
Use Table.onDoubleClick() instead, which passes the double-clicked row as the event.
getDuration() - Method in class nl.colorize.util.animation.Timeline
Returns this timeline's duration, which is based on the position of the last key frame.
getFieldsWithAnnotation(Object, Class<? extends Annotation>) - Static method in class nl.colorize.util.ReflectionUtils
Returns a list containing all of an object's fields that are marked with the specified annotation.
getFileExtension(File) - Static method in class nl.colorize.util.FileUtils
Returns the file extension of the specified file, excluding the dot.
getFileExtensionFilter(String...) - Static method in class nl.colorize.util.FileUtils
Returns a file filter that will only accept files that match one of the specified file extensions.
getFrequency(B, String) - Method in class nl.colorize.util.stats.Histogram
Returns the frequency count for the specified bin and series.
getGreen() - Method in class nl.colorize.util.swing.AnimatedColor
 
getHeader(String) - Method in class nl.colorize.util.http.URLResponse
Returns the value of the HTTP header with the specified name.
getHeaderNames() - Method in class nl.colorize.util.http.Headers
Iterates over header names.
getHeaders() - Method in class nl.colorize.util.http.URLResponse
 
getHeaderValues(String) - Method in class nl.colorize.util.http.URLResponse
Returns all values for the HTTP header with the specified name.
getJavaVersion() - Static method in enum class nl.colorize.util.Platform
Returns the version of the Java Virtual Machine.
getKeys() - Method in class nl.colorize.util.TranslationBundle
Returns all translation keys that exist for the default translation.
getKeys(Locale) - Method in class nl.colorize.util.TranslationBundle
Returns all translation keys that exist for the translation for the specified locale, using the default translation as a fallback where necessary.
getKeyStroke(int) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a keystroke for a key that uses the platform-specific modifier key for menu shortcuts.
getKeyStroke(int, boolean) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a keystroke for a key that uses the platform-specific modifier key for menu shortcuts.
getLabel() - Method in class nl.colorize.util.swing.MultiLabel
 
getLeft() - Method in class nl.colorize.util.stats.TupleList
Returns a list consisting of the left element of every tuple.
getLineColor() - Method in class nl.colorize.util.swing.CircularLoader
 
getLineStroke() - Method in class nl.colorize.util.swing.CircularLoader
 
getLogger(Class<?>) - Static method in class nl.colorize.util.LogHelper
Obtains the logger with the name of the specified class.
getLogger(String) - Static method in class nl.colorize.util.LogHelper
Obtains the logger with the specified name.
getMethodsWithAnnotation(Object, Class<? extends Annotation>) - Static method in class nl.colorize.util.ReflectionUtils
Returns a list containing all of an object's methods that are marked with the specified annotation.
getName() - Method in record class nl.colorize.util.ResourceFile
Returns the name of this resource file.
getNativeLibraryPath() - Static method in enum class nl.colorize.util.Platform
Returns the native library path, indicated by the system property java.library.path, as a list of File objects that represent each directory.
getNumSubPanels() - Method in class nl.colorize.util.swing.AccordionPanel
 
getOptionalParameter(String, String) - Method in class nl.colorize.util.http.PostData
Returns either the value of the parameter with the specified name, or defaultValue if no parameter with that name exists.
getParameterValues(String) - Method in class nl.colorize.util.http.PostData
Returns all values for the parameter with the specified name.
getPlatform() - Static method in enum class nl.colorize.util.Platform
Returns the current platform family.
getPlatformName() - Static method in enum class nl.colorize.util.Platform
Returns the display name for the current platform, for example "Windows 11" or "macOS Ventura".
getPlayhead() - Method in class nl.colorize.util.animation.Timeline
Returns the current position of the playhead, in seconds.
getProperties() - Method in class nl.colorize.util.swing.PropertyEditor
 
getProperties(Object) - Static method in class nl.colorize.util.ReflectionUtils
Accesses an object's properties using reflection.
getProperty(Object, String) - Static method in class nl.colorize.util.ReflectionUtils
Accesses the object's property with the specified name using reflection, and returns its value.
getPropertyComparator(String) - Static method in class nl.colorize.util.ReflectionUtils
Returns a comparator that compares objects based on the value of one of their properties.
getPropertyDeserializer() - Method in class nl.colorize.util.cli.CommandLineArgumentParser
Returns the PropertyDeserializer that is used to convert command line arguments, which are always strings, to the correct type.
getPropertyNames(Class<?>) - Static method in class nl.colorize.util.ReflectionUtils
Returns the names of the properties defined by the specified class.
getPropertyTypes(Class<?>) - Static method in class nl.colorize.util.ReflectionUtils
Returns the names and types of the properties defined by the specified class.
getRed() - Method in class nl.colorize.util.swing.AnimatedColor
 
getRelativePath(File, File) - Static method in class nl.colorize.util.FileUtils
Deprecated.
Use Path.relativize instead. This can be used even when working with APIs still using File instances: base.toPath().relativize(file.toPath).
getRequiredParameter(String) - Method in class nl.colorize.util.http.PostData
Returns the value of the parameter with the specified name.
getRGB() - Method in class nl.colorize.util.swing.AnimatedColor
 
getRight() - Method in class nl.colorize.util.stats.TupleList
Returns a list consisting of the right element of every tuple.
getRowCount() - Method in class nl.colorize.util.swing.Table
 
getRowTooltip(R) - Method in class nl.colorize.util.swing.Table
 
getScreenSize() - Static method in class nl.colorize.util.swing.SwingUtils
Returns the platform's current screen size.
getSelectedButton(List<? extends AbstractButton>) - Static method in class nl.colorize.util.swing.SwingUtils
 
getSelectedButton(ButtonGroup) - Static method in class nl.colorize.util.swing.SwingUtils
 
getSelectedRowIndex() - Method in class nl.colorize.util.swing.Table
Deprecated.
Use Table.getSelectedRowKey() instead. Using the row index is an unreliable way of identifying towsr, as sorting the table will actually change the row order.
getSelectedRowKey() - Method in class nl.colorize.util.swing.Table
Returns the key of the row that is currently selected, or null when no row is selected.
getSeries() - Method in class nl.colorize.util.stats.Histogram
Returns a list of all series in this histogram.
getSeriesFrequency(String) - Method in class nl.colorize.util.stats.Histogram
Returns a list of tuples for all bins in this histogram, with each tuple consisting of the bin and the corresponding frequency for the specified series.
getSeriesPercentages() - Method in class nl.colorize.util.stats.Histogram
Returns a map containing the total frequency for all series in this histogram, but normalized to percentages instead of the absolute numbers.
getSeriesTotal(String) - Method in class nl.colorize.util.stats.Histogram
Returns the total frequency for the specified series, combining all bins in which the series might exist.
getSeriesTotals() - Method in class nl.colorize.util.stats.Histogram
Returns map containing the total frequency for all series in this histogram.
getSslSession() - Method in class nl.colorize.util.http.URLResponse
 
getStackTrace(Throwable) - Static method in class nl.colorize.util.LogHelper
Returns the strack trace for the specified exception as a string.
getStartDirectory() - Method in class nl.colorize.util.swing.ComboFileDialog
 
getStatus() - Method in class nl.colorize.util.http.URLResponse
 
getString(String, Object...) - Method in class nl.colorize.util.TranslationBundle
Provided for API compatibility with ResourceBundle and the DynamicResourceBundle subclass that used to be included in previous versions of this library.
getStripedRowBorderColor() - Static method in class nl.colorize.util.swing.SwingUtils
 
getStripedRowColor(int) - Static method in class nl.colorize.util.swing.SwingUtils
Returns the appropriate row background color for components with a striped appearance, such as tables, lists, and trees.
getSystemArchitecture() - Static method in enum class nl.colorize.util.Platform
Returns the system's processor architecture, as described by the os.arch system property.
getTempDir() - Static method in enum class nl.colorize.util.Platform
Returns the platform's directory for temporary files.
getText(String, Object...) - Method in class nl.colorize.util.TranslationBundle
Returns the text string with the specified key for the default translation.
getText(Locale, String, Object...) - Method in class nl.colorize.util.TranslationBundle
Returns the text string with the specified key, for the requested locale.
getTitle() - Method in class nl.colorize.util.swing.ComboFileDialog
 
getTotal() - Method in class nl.colorize.util.stats.Histogram
Returns the combined total frequency of all data in this histogram.
getTranslationBundle() - Static method in class nl.colorize.util.DateParser
Returns the translations that are used by this class for display names.
getUsedHeapMemory() - Static method in enum class nl.colorize.util.Platform
Deprecated.
getUserAccount() - Static method in enum class nl.colorize.util.Platform
Returns the name of the current user.
getUserData(String) - Static method in enum class nl.colorize.util.Platform
Returns a File handle that points to a file in the platform's standard directory for storing user data (e.g.
getUserDataDirectory() - Static method in enum class nl.colorize.util.Platform
Returns the platform's standard directory for storing user data (e.g.
getUserDesktopDir() - Static method in enum class nl.colorize.util.Platform
Returns a File that points to the current user's desktop directory.
getUserHomeDir() - Static method in enum class nl.colorize.util.Platform
Returns a File that points to the current user's home directory.
getUserWorkingDirectory() - Static method in enum class nl.colorize.util.Platform
Returns a File that points to the current working directory.
getValue() - Method in class nl.colorize.util.animation.Timeline
Returns the value of the property that is animated by this timeline, based on the current position of the playhead.
getValueAt(int, int) - Method in class nl.colorize.util.swing.Table
 
getVerticalMargin() - Method in class nl.colorize.util.swing.FormPanel
 
goFullScreen(JFrame) - Static method in class nl.colorize.util.swing.MacIntegration
Enables fullscreen mode for the specified window.
goFullScreen(JFrame) - Static method in class nl.colorize.util.swing.SwingUtils
Enables full-screen mode for the specified window.
GONE - Static variable in interface nl.colorize.util.http.HttpStatus
 
GOOGLE_CLOUD - Enum constant in enum class nl.colorize.util.Platform
 
GREEN - Static variable in class nl.colorize.util.cli.AnsiColor
 
GREEN_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 

H

hasColumnNameInformation() - Method in class nl.colorize.util.CSVRecord
Deprecated.
 
hashCode() - Method in record class nl.colorize.util.animation.KeyFrame
Returns a hash code value for this object.
hashCode() - Method in class nl.colorize.util.http.PostData
 
hashCode() - Method in record class nl.colorize.util.ResourceFile
Returns a hash code value for this object.
hashCode() - Method in record class nl.colorize.util.stats.DateRange
Returns a hash code value for this object.
hashCode() - Method in record class nl.colorize.util.stats.Tuple
Returns a hash code value for this object.
hashCode() - Method in class nl.colorize.util.swing.AnimatedColor
 
hashCode() - Method in class nl.colorize.util.Version
 
hasPreferencesMenu() - Method in interface nl.colorize.util.swing.ApplicationMenuListener
When true, this will show the "Preferences" entry as part of the application menu.
hasRequestBody() - Method in enum class nl.colorize.util.http.Method
If true, HTTP requests using this method will send request parameters as part of the request body.
HEAD - Enum constant in enum class nl.colorize.util.http.Method
 
Headers - Class in nl.colorize.util.http
Immutable representation of the request/response headers sent as part of an HTTP request.
Headers(TupleList<String, String>) - Constructor for class nl.colorize.util.http.Headers
Creates a new Headers instance from the specified list of HTTP header names/values.
Histogram<B> - Class in nl.colorize.util.stats
Data structure to describe histograms, which can be used to describe the distribution of a numerical data set.
Histogram() - Constructor for class nl.colorize.util.stats.Histogram
Creates a new histogram that is initially empty.
Histogram(List<B>) - Constructor for class nl.colorize.util.stats.Histogram
Creates a new histogram that consists of the specified bins.
HTTP_VERSION_NOT_SUPPORTED - Static variable in interface nl.colorize.util.http.HttpStatus
 
HttpStatus - Interface in nl.colorize.util.http
HTTP response status codes, as defined by the HTTP/1.1 standard, as defined in RFC 2616.

I

IM_A_TEAPOT - Static variable in interface nl.colorize.util.http.HttpStatus
 
ImageViewer - Class in nl.colorize.util.swing
Custom Swing component for displaying an image in desktop applications, with configurable camera behavior.
ImageViewer(boolean) - Constructor for class nl.colorize.util.swing.ImageViewer
 
ImageViewer(boolean, BufferedImage) - Constructor for class nl.colorize.util.swing.ImageViewer
 
immutable() - Method in class nl.colorize.util.stats.TupleList
Creates a new TupleList that contains the same elements as this one, but does not allow modification.
initializeSwing() - Static method in class nl.colorize.util.swing.SwingUtils
Initializes Swing by selecting the best look-and-feel for the current platform.
INTERNAL_SERVER_ERROR - Static variable in interface nl.colorize.util.http.HttpStatus
 
interpolate(float, float, float) - Method in interface nl.colorize.util.animation.Interpolation
Returns the interpolated value between x0 and x1.
interpolateColor(Color, Color, float) - Static method in class nl.colorize.util.swing.Utils2D
Creates a new color that calculates its red/green/blue/alpha components by interpolating between two other colors.
Interpolation - Interface in nl.colorize.util.animation
Interpolation methods.
inverse() - Method in record class nl.colorize.util.stats.Tuple
Returns a new tuple with the inverse of this tuple's elements.
inverse() - Method in class nl.colorize.util.stats.TupleList
Returns a new TupleList where every tuple is the inverse of the tuples in this list.
IOS - Enum constant in enum class nl.colorize.util.Platform
 
is(Platform) - Static method in enum class nl.colorize.util.Platform
Convenience method that can be used to check the current platform.
isAtLeast(Version) - Method in class nl.colorize.util.Version
 
isAtStart() - Method in class nl.colorize.util.animation.Timeline
Returns true if the playhead is positioned at the start of the timeline.
isCached(K) - Method in class nl.colorize.util.stats.Cache
Returns true if the value for the specified key is currently cached, and false if the value still needs to be computed.
isCellEditable(int, int) - Method in class nl.colorize.util.swing.Table
 
isClientError(int) - Static method in interface nl.colorize.util.http.HttpStatus
 
isCompleted() - Method in class nl.colorize.util.animation.Timeline
Returns true if the playhead has reached the end of the timeline.
isCurrentlyActive(Animatable) - Method in class nl.colorize.util.swing.SwingAnimator
Returns true if the animation is currently active and should receive frame updates.
isEmpty() - Method in class nl.colorize.util.http.PostData
 
isError(int) - Static method in interface nl.colorize.util.http.HttpStatus
 
isGoogleCloud() - Static method in enum class nl.colorize.util.Platform
 
isHeadlessEnvironment() - Static method in class nl.colorize.util.swing.SwingUtils
Returns true if the current platform is a "headless" (non-graphical) environment, and AWT/Swing/JavaFX are not supported.
isLinux() - Static method in enum class nl.colorize.util.Platform
 
isLoop() - Method in class nl.colorize.util.animation.Timeline
 
isMac() - Static method in enum class nl.colorize.util.Platform
 
isMacAppStore() - Static method in enum class nl.colorize.util.Platform
Returns true if the current platform is running on a Mac and if the Java Virtual Machine is running from within the Mac App Store sandbox.
isNewerThan(Version) - Method in class nl.colorize.util.Version
 
isOlderThan(Version) - Method in class nl.colorize.util.Version
 
isRedirect(int) - Static method in interface nl.colorize.util.http.HttpStatus
 
isResponseHeadersOnly() - Method in enum class nl.colorize.util.http.Method
If true, HTTP requests using this method should only download the response headers, not the response body.
isSafe() - Method in enum class nl.colorize.util.http.Method
Indicates that this request method is "safe" and intended for information retrieval without changing the state of the server.
isServerError(int) - Static method in interface nl.colorize.util.http.HttpStatus
 
isTeaVM() - Static method in enum class nl.colorize.util.Platform
 
isUnknown() - Method in class nl.colorize.util.Version
 
isWindows() - Static method in enum class nl.colorize.util.Platform
 
iterator() - Method in class nl.colorize.util.http.Headers
 

K

KeyFrame - Record Class in nl.colorize.util.animation
Defines a property's value at a certain point in time, used in conjunction with Timeline.
KeyFrame(float, float) - Constructor for record class nl.colorize.util.animation.KeyFrame
Creates an instance of a KeyFrame record class.

L

layoutContainer(Container) - Method in class nl.colorize.util.swing.AccordionPanel
 
layoutContainer(Container) - Method in class nl.colorize.util.swing.FormPanel
 
left() - Method in record class nl.colorize.util.stats.Tuple
Returns the value of the left record component.
LENGTH_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
LINE_JOINER - Static variable in class nl.colorize.util.TextUtils
 
LINE_SPLITTER - Static variable in class nl.colorize.util.TextUtils
 
LINEAR - Static variable in interface nl.colorize.util.animation.Interpolation
Linear interpolation.
LINUX - Enum constant in enum class nl.colorize.util.Platform
 
loadFont(InputStream, int, float) - Static method in class nl.colorize.util.swing.SwingUtils
Loads a TrueType font and returns it as an AWT font.
loadFont(ResourceFile, int, float) - Static method in class nl.colorize.util.swing.SwingUtils
Loads a TrueType font and returns it as an AWT font.
loadIcon(ResourceFile) - Static method in class nl.colorize.util.swing.SwingUtils
Loads an icon from the specified file.
loadIconImage(ResourceFile) - Static method in class nl.colorize.util.swing.SwingUtils
Loads an icon from the specified file, for use in javax.swing.JFrame#setIconImage(Image).
loadImage(File) - Static method in class nl.colorize.util.swing.Utils2D
 
loadImage(InputStream) - Static method in class nl.colorize.util.swing.Utils2D
 
loadImage(ResourceFile) - Static method in class nl.colorize.util.swing.Utils2D
 
loadProperties(File) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic described in PropertyUtils.loadProperties(Reader) to load a .properties file, using the UTF-8 character encoding.
loadProperties(File, Charset) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic described in PropertyUtils.loadProperties(Reader) to load a .properties file, using the specified character encoding.
loadProperties(Reader) - Static method in class nl.colorize.util.PropertyUtils
Loads a properties file from a reader and returns the resulting Properties object.
loadProperties(String) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic described in PropertyUtils.loadProperties(Reader) to load .properties file contents from a string.
loadProperties(ResourceFile) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic described in PropertyUtils.loadProperties(Reader) to load a .properties file, using the UTF-8 character encoding.
loadProperties(ResourceFile, Charset) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic described in PropertyUtils.loadProperties(Reader) to load a .properties file, using the specified character encoding.
LogHelper - Class in nl.colorize.util
Helper methods for initializing and configuring java.util.logging loggers programmatically.

M

MAC - Enum constant in enum class nl.colorize.util.Platform
 
MacIntegration - Class in nl.colorize.util.swing
Utility class for making macOS specific behavior available to Swing applications.
MAGENTA - Static variable in class nl.colorize.util.cli.AnsiColor
 
MAGENTA_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 
makeImageCompatible(BufferedImage) - Static method in class nl.colorize.util.swing.Utils2D
Converts a BufferedImage to the pixel format and color model preferred by the graphics environment.
map(Function<L, L2>, Function<R, R2>) - Method in record class nl.colorize.util.stats.Tuple
 
map(Function<L, L2>, Function<R, R2>) - Method in class nl.colorize.util.stats.TupleList
 
map(Function<T, S>) - Method in class nl.colorize.util.Subscribable
Returns a new Subscribable that will forward events to its own subscribers, but first uses the specified mapping function on each event.
matchAll(String, Pattern) - Static method in class nl.colorize.util.TextUtils
Returns all matches for a regular expression.
matchAll(String, Pattern, int) - Static method in class nl.colorize.util.TextUtils
Returns all matches for a regular expression.
matchFirst(String, Pattern) - Static method in class nl.colorize.util.TextUtils
Returns the first match of a regular expression.
matchFirst(String, Pattern, int) - Static method in class nl.colorize.util.TextUtils
Returns the first match of a regular expression.
matchLines(File, Charset, Pattern) - Static method in class nl.colorize.util.TextUtils
Reads all lines from a file, and returns only the lines that match a regular expression.
matchLines(File, Charset, Pattern, int) - Static method in class nl.colorize.util.TextUtils
Reads all lines from a file, and returns only the lines that match a regular expression.
matchLines(Reader, Pattern) - Static method in class nl.colorize.util.TextUtils
Reads all lines, and returns only the lines that match a regular expression.
matchLines(Reader, Pattern, int) - Static method in class nl.colorize.util.TextUtils
Reads all lines, and returns only the lines that match a regular expression.
matchLines(String, Pattern) - Static method in class nl.colorize.util.TextUtils
Reads all lines in a string, and returns only the lines that match a regular expression.
matchLines(String, Pattern, int) - Static method in class nl.colorize.util.TextUtils
Reads all lines in a string, and returns only the lines that match a regular expression.
matchLines(String, Pattern, Consumer<List<String>>) - Static method in class nl.colorize.util.TextUtils
Runs a regular expression on all lines within the specified string, then invokes a callback function for every match.
max(Collection<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
 
median(Collection<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
 
merge(PostData) - Method in class nl.colorize.util.http.PostData
Creates a new PostData instance by merging all parameters from this instance with another one.
merge(Histogram<B>) - Method in class nl.colorize.util.stats.Histogram
Adds all data from the specified other histogram to this histogram.
message(JFrame, String) - Static method in class nl.colorize.util.swing.Popups
Shows a simple pop-up window that displays a text message and contains a default "OK" button.
message(JFrame, String, String) - Static method in class nl.colorize.util.swing.Popups
Shows a simple pop-up window that displays a text message and contains a default "OK" button.
message(JFrame, String, String, String...) - Static method in class nl.colorize.util.swing.Popups
Shows a pop-up window that consists of the specified component and a number of buttons.
message(JFrame, String, String, List<String>) - Static method in class nl.colorize.util.swing.Popups
Shows a pop-up window that consists of the specified component and a number of buttons.
message(JFrame, String, JComponent) - Static method in class nl.colorize.util.swing.Popups
Shows a simple pop-up window that displays a component and contains a default "OK" button.
message(JFrame, String, JComponent, String...) - Static method in class nl.colorize.util.swing.Popups
Shows a pop-up window that consists of the specified component and a number of buttons.
message(JFrame, String, JComponent, List<String>) - Static method in class nl.colorize.util.swing.Popups
Shows a pop-up window that consists of the specified component and a number of buttons.
MESSAGE_WIDTH - Static variable in class nl.colorize.util.swing.Popups
 
Method - Enum Class in nl.colorize.util.http
HTTP request methods, as defined by the HTTP/1.1 standard.
METHOD_NOT_ALLOWED - Static variable in interface nl.colorize.util.http.HttpStatus
 
min(Collection<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
 
minimumLayoutSize(Container) - Method in class nl.colorize.util.swing.AccordionPanel
 
minimumLayoutSize(Container) - Method in class nl.colorize.util.swing.FormPanel
 
mkdir(File) - Static method in class nl.colorize.util.FileUtils
Creates a directory.
mkdir(File, String) - Static method in class nl.colorize.util.FileUtils
Creates a new directory with the specified name and location, then returns the directory that was just created.
MOVED_PERMANENTLY - Static variable in interface nl.colorize.util.http.HttpStatus
 
movePlayhead(float) - Method in class nl.colorize.util.animation.Timeline
Moves the playhead by the specified amount, in seconds.
MultiLabel - Class in nl.colorize.util.swing
Component similar to a JLabel, but it can display text in multiple lines.
MultiLabel(String, int) - Constructor for class nl.colorize.util.swing.MultiLabel
Creates a new MultiLabel with the specified text label.
MultiLabel(String, int, int) - Constructor for class nl.colorize.util.swing.MultiLabel
Creates a new MultiLabel with the specified text label.
MultiLabel(String, int, int, Font) - Constructor for class nl.colorize.util.swing.MultiLabel
Creates a new MultiLabel with the specified text label.
MULTIPLE_CHOICES - Static variable in interface nl.colorize.util.http.HttpStatus
 

N

name() - Element in annotation interface nl.colorize.util.cli.Arg
The command line argument name.
NETWORK_AUTHENTICATION_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
next(Callable<T>) - Method in class nl.colorize.util.Subscribable
Performs the specified operation and publishes the resulting event to subscribers.
next(T) - Method in class nl.colorize.util.Subscribable
Publishes the next event to all event subscribers.
nextError(Exception) - Method in class nl.colorize.util.Subscribable
Publishes the next error to all error subscribers.
nl.colorize.util - package nl.colorize.util
 
nl.colorize.util.animation - package nl.colorize.util.animation
 
nl.colorize.util.cli - package nl.colorize.util.cli
 
nl.colorize.util.http - package nl.colorize.util.http
 
nl.colorize.util.stats - package nl.colorize.util.stats
 
nl.colorize.util.swing - package nl.colorize.util.swing
 
NO_CONTENT - Static variable in interface nl.colorize.util.http.HttpStatus
 
NON_AUTHORITATIVE_INFORMATION - Static variable in interface nl.colorize.util.http.HttpStatus
 
none() - Static method in class nl.colorize.util.http.Headers
Returns an empty Headers instance that indicates the HTTP request or response does not contain any headers.
NOT_ACCEPTABLE - Static variable in interface nl.colorize.util.http.HttpStatus
 
NOT_EXTENDED - Static variable in interface nl.colorize.util.http.HttpStatus
 
NOT_FOUND - Static variable in interface nl.colorize.util.http.HttpStatus
 
NOT_IMPLEMENTED - Static variable in interface nl.colorize.util.http.HttpStatus
 
NOT_MODIFIED - Static variable in interface nl.colorize.util.http.HttpStatus
 
numberFormat(float, int) - Static method in class nl.colorize.util.TextUtils
Formats a floating point number with the specified number of decimals.

O

of(Iterable<T>) - Static method in class nl.colorize.util.Subscribable
Creates a Subscribable that will publish the specified values to its subscribers.
of(String, String, String...) - Static method in class nl.colorize.util.http.Headers
Creates a Headers instance from the specified HTTP header names and values.
of(List<Tuple<L, R>>) - Static method in class nl.colorize.util.stats.TupleList
Deprecated.
Renamed to TupleList.copyOf(List), both because the new name is more descriptive and to be consistent with other collection classes.
of(L, R) - Static method in record class nl.colorize.util.stats.Tuple
Convenience factory method to create a tuple without having to specify the generic types.
of(Tuple<L, R>...) - Static method in class nl.colorize.util.stats.TupleList
Factory method that creates a mutable TupleList from existing tuples.
of(T...) - Static method in class nl.colorize.util.Subscribable
Creates a Subscribable that will publish the specified values to its subscribers.
OK - Static variable in interface nl.colorize.util.http.HttpStatus
 
onAbout() - Method in interface nl.colorize.util.swing.ApplicationMenuListener
Called when the "About" application menu item is clicked.
onDoubleClick() - Method in class nl.colorize.util.swing.Table
Returns a Subscribable that can be used to subscribe to events whenever the selected row is double-clicked.
onFrame(float) - Method in interface nl.colorize.util.animation.Animatable
Called every frame update while the animation is active.
onFrame(float) - Method in class nl.colorize.util.animation.Timeline
Moves the playhead by the specified amount, in seconds.
onFrame(float) - Method in class nl.colorize.util.swing.AnimatedColor
 
onFrame(float) - Method in class nl.colorize.util.swing.CircularLoader
 
onPreferences() - Method in interface nl.colorize.util.swing.ApplicationMenuListener
Called when the "Preferences" application menu item (if available) is clicked.
onQuit() - Method in interface nl.colorize.util.swing.ApplicationMenuListener
Called when the "Quit" application menu item is clicked.
onSelect() - Method in class nl.colorize.util.swing.Table
Returns a Subscribable that can be used to subscribe to events whenever the selected row changes.
openBrowser(String) - Static method in class nl.colorize.util.swing.MacIntegration
Deprecated.
Use SwingUtils.openBrowser(String) instead, which provides the same behavior but uses a cross-platform API that also supports other operating systems.
openBrowser(String) - Static method in class nl.colorize.util.swing.SwingUtils
Opens the platform's default browser with the specified URL.
openFile(File) - Static method in class nl.colorize.util.swing.MacIntegration
Deprecated.
Use SwingUtils.openFile(File) instead, which provides the same behavior but uses a cross-platform API that also supports other operating systems.
openFile(File) - Static method in class nl.colorize.util.swing.SwingUtils
Opens the specified file in the platform's default application for that file type.
openReader(Charset) - Method in class nl.colorize.util.http.URLResponse
 
openReader(Charset) - Method in interface nl.colorize.util.Resource
 
openReader(Charset) - Method in record class nl.colorize.util.ResourceFile
 
openStream() - Method in class nl.colorize.util.http.URLResponse
 
openStream() - Method in interface nl.colorize.util.Resource
 
openStream() - Method in record class nl.colorize.util.ResourceFile
 
OPTIONS - Enum constant in enum class nl.colorize.util.http.Method
 

P

packFormHeight() - Method in class nl.colorize.util.swing.FormPanel
Updates the form's preferred height based on the minimum height that fits all rows.
paintComponent(Graphics) - Method in class nl.colorize.util.swing.CircularLoader
 
paintComponent(Graphics) - Method in class nl.colorize.util.swing.ImageViewer
 
paintComponent(Graphics) - Method in class nl.colorize.util.swing.MultiLabel
Repaints this label.
parse(String) - Static method in class nl.colorize.util.DateParser
Parses a date while attempting to automatically detect the date format for the specified input string.
parse(String) - Static method in enum class nl.colorize.util.http.Method
Returns the Method instance corresponding to the HTTP request method with the specified name.
parse(String) - Static method in class nl.colorize.util.http.PostData
Parses PostData from the specified string using the UTF-8 character encoding.
parse(String) - Static method in class nl.colorize.util.Version
Parses a version number from the specified version string.
parse(String[], Class<T>) - Method in class nl.colorize.util.cli.CommandLineArgumentParser
Parses the command line arguments based on the Arg annotations in the specified class.
parse(String, Class<T>) - Method in class nl.colorize.util.PropertyDeserializer
Deserializes a text-based property to the specified type.
parse(String, Class<T>, T) - Method in class nl.colorize.util.PropertyDeserializer
Attempts to deserialize a text-based property to the specified type, but returns a default value when parsing results in an exception or when the value is null.
parse(String, String) - Static method in class nl.colorize.util.DateParser
Wrapper around SimpleDateFormat.parse to parse a date using the specified date format in a thread-safe way.
parse(String, Charset) - Static method in class nl.colorize.util.http.PostData
Parses PostData from the specified string.
parseBool(String, boolean) - Method in class nl.colorize.util.PropertyDeserializer
 
parseCSV(String, String, boolean) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Parses a CSV file containing any number of record.
parseDouble(String, double) - Method in class nl.colorize.util.PropertyDeserializer
 
parseFloat(String, float) - Method in class nl.colorize.util.PropertyDeserializer
 
parseHexColor(String) - Static method in class nl.colorize.util.swing.Utils2D
Converts a hex string to a Color.
parseInt(String, int) - Method in class nl.colorize.util.PropertyDeserializer
 
parseLong(String, long) - Method in class nl.colorize.util.PropertyDeserializer
 
parseRecord(String, String) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Parses an individual CSV record, using the specified delimiter.
parseString(String, String) - Method in class nl.colorize.util.PropertyDeserializer
 
PARTIAL_CONTENT - Static variable in interface nl.colorize.util.http.HttpStatus
 
path() - Method in record class nl.colorize.util.ResourceFile
Returns the value of the path record component.
PAYLOAD_TOO_LARGE - Static variable in interface nl.colorize.util.http.HttpStatus
 
PAYMENT_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
percentage(float, float) - Static method in class nl.colorize.util.stats.Aggregate
 
percentile(Collection<? extends Number>, int) - Static method in class nl.colorize.util.stats.Aggregate
Calculates the value of the Nth percentile for the specified data set.
performFrameUpdate(float) - Method in class nl.colorize.util.swing.SwingAnimator
Performs a frame update for all animations that are currently playing.
PERMANENT_REDIRECT - Static variable in interface nl.colorize.util.http.HttpStatus
 
Platform - Enum Class in nl.colorize.util
Provides access to the underlying platform.
play(Animatable) - Method in class nl.colorize.util.swing.SwingAnimator
Starts playing an animation, that will continue playing until it is cancelled.
play(Timeline, Animatable) - Method in class nl.colorize.util.swing.SwingAnimator
Starts playing an animation based to the specified timeline.
Popups - Class in nl.colorize.util.swing
Utility class for working with pop-up windows.
post(String) - Static method in class nl.colorize.util.http.URLLoader
Factory method that creates a POST request to the specified URL.
POST - Enum constant in enum class nl.colorize.util.http.Method
 
PostData - Class in nl.colorize.util.http
Represents data that has been sent as part of an HTTP request and is encoded using the application/x-www-form-urlencoded content type.
precompute(Iterable<K>) - Method in class nl.colorize.util.stats.Cache
Precomputes the values for the specified keys, so the cached values are used when the key/value pairs are retrieved at a later time.
precompute(K) - Method in class nl.colorize.util.stats.Cache
Precomputes the value for the specified key, so the cached value is used when the key/value pair is retrieved at a later time.
PRECONDITION_FAILED - Static variable in interface nl.colorize.util.http.HttpStatus
 
PRECONDITION_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
preferredLayoutSize(Container) - Method in class nl.colorize.util.swing.AccordionPanel
 
preferredLayoutSize(Container) - Method in class nl.colorize.util.swing.FormPanel
 
print(String) - Method in class nl.colorize.util.cli.AnsiColor
Formats the specified text using this color and styling, then prints the result to stdout.
println(String) - Method in class nl.colorize.util.cli.AnsiColor
Formats the specified text using this color and styling, then prints the result to stdout.
printUsage(Class<?>) - Method in class nl.colorize.util.cli.CommandLineArgumentParser
Prints the usage information message for the command line interface.
PropertyDeserializer - Class in nl.colorize.util
Generalized mechanism for taking text-based properties and parsing them into various types.
PropertyDeserializer() - Constructor for class nl.colorize.util.PropertyDeserializer
 
PropertyEditor - Class in nl.colorize.util.swing
Simple user interface for editing name/value properties.
PropertyEditor(Map<String, String>) - Constructor for class nl.colorize.util.swing.PropertyEditor
 
PropertyUtils - Class in nl.colorize.util
Utility class for working with Properties and .properties files.
PROXY_AUTHENTICATION_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
put(String) - Static method in class nl.colorize.util.http.URLLoader
Factory method that creates a PUT request to the specified URL.
PUT - Enum constant in enum class nl.colorize.util.http.Method
 

Q

QUADRATIC - Static variable in interface nl.colorize.util.animation.Interpolation
Quadratic easing interpolation.

R

RANGE_NOT_SATISFIABLE - Static variable in interface nl.colorize.util.http.HttpStatus
 
read(Charset) - Method in class nl.colorize.util.http.URLResponse
 
read(Charset) - Method in interface nl.colorize.util.Resource
 
readBody() - Method in class nl.colorize.util.http.URLResponse
 
readBytes() - Method in interface nl.colorize.util.Resource
 
readFirstLines(File, Charset, int) - Static method in class nl.colorize.util.FileUtils
Reads a file's first N lines, or all lines if the file contains less.
readLines(Charset) - Method in interface nl.colorize.util.Resource
 
recalculateHeight(int) - Method in class nl.colorize.util.swing.MultiLabel
 
RED - Static variable in class nl.colorize.util.cli.AnsiColor
 
RED_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 
ReflectionUtils - Class in nl.colorize.util
Various utility and convenience methods for working with reflection.
register(Class<T>, Function<String, T>) - Method in class nl.colorize.util.PropertyDeserializer
Registers the specified function as a type mapper.
registerPreprocessor(Function<String, String>) - Method in class nl.colorize.util.PropertyDeserializer
Registers a function that should be used to pre-process property values before trying to deserialize those values.
removeAllRows() - Method in class nl.colorize.util.swing.Table
 
removeBetween(String, String, String) - Static method in class nl.colorize.util.TextUtils
Removes all text between and including from and to.
removeKeyFrame(KeyFrame) - Method in class nl.colorize.util.animation.Timeline
 
removeLayoutComponent(Component) - Method in class nl.colorize.util.swing.AccordionPanel
 
removeLayoutComponent(Component) - Method in class nl.colorize.util.swing.FormPanel
 
removeLeading(String, String) - Static method in class nl.colorize.util.TextUtils
 
removeLeadingAndTrailing(String, String, String) - Static method in class nl.colorize.util.TextUtils
 
removeLookAndFeel(JButton, boolean) - Static method in class nl.colorize.util.swing.SwingUtils
Removes the platform's default look-and-feel from a button.
removeRow(int) - Method in class nl.colorize.util.swing.Table
 
removeRow(R) - Method in class nl.colorize.util.swing.Table
 
removeSubPanel(K) - Method in class nl.colorize.util.swing.AccordionPanel
 
removeTableModelListener(TableModelListener) - Method in class nl.colorize.util.swing.Table
 
removeTrailing(String, String) - Static method in class nl.colorize.util.TextUtils
 
replaceColumns(List<String>) - Method in class nl.colorize.util.swing.Table
Replaces the table's columns with the specified values.
REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in interface nl.colorize.util.http.HttpStatus
 
REQUEST_TIMEOUT - Static variable in interface nl.colorize.util.http.HttpStatus
 
required() - Element in annotation interface nl.colorize.util.cli.Arg
Indicates whether this is a required command line argument.
reset() - Method in class nl.colorize.util.animation.Timeline
Moves the playhead back to the start of the timeline.
reset() - Method in class nl.colorize.util.swing.AnimatedColor
 
RESET_CONTENT - Static variable in interface nl.colorize.util.http.HttpStatus
 
Resource - Interface in nl.colorize.util
Common interface for resource data.
ResourceException - Exception Class in nl.colorize.util
Indicates a problem while accessing one of the application's resources, either because the resource cannot be found or because it cannot be read.
ResourceException(String) - Constructor for exception class nl.colorize.util.ResourceException
 
ResourceException(String, Throwable) - Constructor for exception class nl.colorize.util.ResourceException
 
ResourceFile - Record Class in nl.colorize.util
Reference to a resource file (files included with the application).
ResourceFile(File) - Constructor for record class nl.colorize.util.ResourceFile
 
ResourceFile(String) - Constructor for record class nl.colorize.util.ResourceFile
Creates an instance of a ResourceFile record class.
retry(Callable<T>, int) - Method in class nl.colorize.util.Subscribable
Attempts to perform an operation for the specified number of attempts, automatically retrying the operation if the initial attempt(s) failed.
retry(Callable<T>, int, long) - Method in class nl.colorize.util.Subscribable
Attempts to perform an operation for the specified number of attempts, automatically retrying the operation if the initial attempt(s) failed.
revealInFinder(File) - Static method in class nl.colorize.util.swing.MacIntegration
Reveals the specified file or directory in the Finder.
reverse() - Method in class nl.colorize.util.animation.Timeline
Returns a new timeline that contains the same key frames as this timeline, but in the reverse order.
rewrite(File, Charset, Function<String, String>) - Static method in class nl.colorize.util.FileUtils
Reads all lines in a file, then used the provided callback function to rewrite the lines.
rewriteLine(File, String, String, Charset) - Static method in class nl.colorize.util.FileUtils
Reads all lines in a file, then replaced all matching lines with the specified replacement.
right() - Method in record class nl.colorize.util.stats.Tuple
Returns the value of the right record component.
run(Callable<T>) - Static method in class nl.colorize.util.Subscribable
Performs the specified operation and returns a Subscribable that can be used to subscribe to the results.
runBackground(Callable<T>) - Static method in class nl.colorize.util.Subscribable
Performs the specified operation in a new background thread, and returns a Subscribable that can be used to subscribe to the background operation.

S

saveJPEG(BufferedImage, File) - Static method in class nl.colorize.util.swing.Utils2D
 
saveJPEG(BufferedImage, OutputStream) - Static method in class nl.colorize.util.swing.Utils2D
 
savePNG(BufferedImage, File) - Static method in class nl.colorize.util.swing.Utils2D
 
savePNG(BufferedImage, OutputStream) - Static method in class nl.colorize.util.swing.Utils2D
 
saveProperties(Properties, File) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic from PropertyUtils.saveProperties(Properties, Writer) to serialize a Properties instance to a .properties file.
saveProperties(Properties, File, Charset) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic from PropertyUtils.saveProperties(Properties, Writer) to serialize a Properties instance to a .properties file.
saveProperties(Properties, Writer) - Static method in class nl.colorize.util.PropertyUtils
Serializes a Properties object to the specified writer.
scaleImage(Image, int, int, boolean) - Static method in class nl.colorize.util.swing.Utils2D
Returns a new image that contains the same contents as the original, but is scaled to the specified width and height.
SEE_OTHER - Static variable in interface nl.colorize.util.http.HttpStatus
 
send() - Method in class nl.colorize.util.http.URLLoader
Sends the HTTP request and returns the response.
sendAsync() - Method in class nl.colorize.util.http.URLLoader
Asynchronous version of URLLoader.send() that sends the request from a separate thread.
sendBackground() - Method in class nl.colorize.util.http.URLLoader
Starts a background thread that will send this request.
serializeProperties(Properties) - Static method in class nl.colorize.util.PropertyUtils
Uses the logic from PropertyUtils.saveProperties(Properties, Writer) to serialize a Properties instance to .properties file contents.
SERVICE_UNAVAILABLE - Static variable in interface nl.colorize.util.http.HttpStatus
 
setApplicationMenuListener(ApplicationMenuListener) - Static method in class nl.colorize.util.swing.MacIntegration
Registers a listener that will be notified every time a menu item in the macOS application menu is clicked.
setColumnSorter(int, Comparator<String>) - Method in class nl.colorize.util.swing.Table
 
setColumnWidth(int, int) - Method in class nl.colorize.util.swing.Table
 
setDockBadge(String) - Static method in class nl.colorize.util.swing.MacIntegration
Adds a badge to the application's dock icon with the specified text.
setDockIcon(Image) - Static method in class nl.colorize.util.swing.MacIntegration
Changes the application's dock icon to the specified image.
setFilter(String, String...) - Method in class nl.colorize.util.swing.ComboFileDialog
Sets a filter so that the dialog will only show files with the specified file extension(s).
setFocusable(JComponent, boolean) - Static method in class nl.colorize.util.swing.SwingUtils
setFont(JPanel, Font) - Static method in class nl.colorize.util.swing.SwingUtils
Calls JComponent.setFont(Font) on a component and then recursively on its child component.
setHorizontalMargin(int) - Method in class nl.colorize.util.swing.FormPanel
 
setLabel(String) - Method in class nl.colorize.util.swing.MultiLabel
 
setLabel(String, boolean) - Method in class nl.colorize.util.swing.MultiLabel
 
setLineColor(Color) - Method in class nl.colorize.util.swing.CircularLoader
 
setLineStroke(float) - Method in class nl.colorize.util.swing.CircularLoader
 
setLineStroke(Stroke) - Method in class nl.colorize.util.swing.CircularLoader
 
setOpaque(JComponent, boolean) - Static method in class nl.colorize.util.swing.SwingUtils
setPlayhead(float) - Method in class nl.colorize.util.animation.Timeline
Moves the position of the playhead to the specified value, in seconds.
setPlayhead(float) - Method in class nl.colorize.util.swing.AnimatedColor
 
setPreferredHeight(JComponent, int) - Static method in class nl.colorize.util.swing.SwingUtils
Changes a component's preferred height without changing its preferred width.
setPreferredSize(JComponent, int, int) - Static method in class nl.colorize.util.swing.SwingUtils
 
setPreferredWidth(JComponent, int) - Static method in class nl.colorize.util.swing.SwingUtils
Changes a component's preferred width without changing its preferred height.
setProperty(Object, String, Object) - Static method in class nl.colorize.util.ReflectionUtils
Accesses the object's property with the specified name using reflection, and updates its value.
setRightAlignLabels(boolean) - Method in class nl.colorize.util.swing.FormPanel
 
setRowTooltip(R, String) - Method in class nl.colorize.util.swing.Table
 
setSelectedRowKey(R) - Method in class nl.colorize.util.swing.Table
Changes the selected row to the row associated with the specified key.
setSslSession(SSLSession) - Method in class nl.colorize.util.http.URLResponse
 
setStartDirectory(File) - Method in class nl.colorize.util.swing.ComboFileDialog
 
setStartDirectory(String) - Method in class nl.colorize.util.swing.ComboFileDialog
 
setTableCellRenderer(int, TableCellRenderer) - Method in class nl.colorize.util.swing.Table
 
setTitle(String) - Method in class nl.colorize.util.swing.ComboFileDialog
 
setValueAt(Object, int, int) - Method in class nl.colorize.util.swing.Table
 
setVerticalMargin(int) - Method in class nl.colorize.util.swing.FormPanel
 
showNotification(String, String) - Static method in class nl.colorize.util.swing.MacIntegration
Sends a notification to the macOS Notification Center.
showOpenDialog(JFrame) - Method in class nl.colorize.util.swing.ComboFileDialog
Shows an 'open file' dialog and returns the selected file.
showSaveDialog(JFrame, String) - Method in class nl.colorize.util.swing.ComboFileDialog
Shows a 'save file' dialog, and returns the selected file.
span(DateRange) - Method in record class nl.colorize.util.stats.DateRange
Creates a new date range that represents the smallest possible period that includes both this date range and the specified other date range.
splitDays() - Method in record class nl.colorize.util.stats.DateRange
Splits this date range into daily intervals.
splitMonths() - Method in record class nl.colorize.util.stats.DateRange
Splits this date range into monthly intervals.
splitWeeks() - Method in record class nl.colorize.util.stats.DateRange
Splits this date range into weekly intervals.
splitYearly() - Method in record class nl.colorize.util.stats.DateRange
Splits this date range into yearly intervals.
start() - Method in record class nl.colorize.util.stats.DateRange
Returns the value of the start record component.
start() - Method in class nl.colorize.util.swing.SwingAnimator
Starts this Animator.
startsWith(String, Collection<String>) - Static method in class nl.colorize.util.TextUtils
 
stop() - Method in class nl.colorize.util.swing.SwingAnimator
Stops this Animator.
Stopwatch - Class in nl.colorize.util
A timer with millisecond precision.
Stopwatch() - Constructor for class nl.colorize.util.Stopwatch
 
Subscribable<T> - Class in nl.colorize.util
Proxy for accessing multiple events that are produced by a (possibly asynchronous) operation, allowing for publish/subscribe workflows.
Subscribable() - Constructor for class nl.colorize.util.Subscribable
 
subscribe(Consumer<T>) - Method in class nl.colorize.util.Subscribable
Registers the specified callback function as an event subscriber.
subscribe(Consumer<T>, Consumer<Exception>) - Method in class nl.colorize.util.Subscribable
Registers the specified callback functions as event and error subscribers.
subscribe(UUID, Consumer<T>, Consumer<Exception>) - Method in class nl.colorize.util.Subscribable
Registers the specified callback functions as event and error subscribers.
subscribe(Subscribable<T>) - Method in class nl.colorize.util.Subscribable
Subscribes the specified other Subscribable to listen for both events and errors generated by this Subscribable.
subscribeErrors(Consumer<Exception>) - Method in class nl.colorize.util.Subscribable
Registers the specified callback function as an error subscriber.
sum(Collection<? extends Number>) - Static method in class nl.colorize.util.stats.Aggregate
 
SwingAnimator - Class in nl.colorize.util.swing
Schedules animations and drives them by performing frame updates at regular intervals.
SwingAnimator() - Constructor for class nl.colorize.util.swing.SwingAnimator
Creates a SwingAnimator that will operate at the default framerate of 30 frames per second.
SwingAnimator(int) - Constructor for class nl.colorize.util.swing.SwingAnimator
Creates a SwingAnimator that will operate at the specified framerate.
SwingUtils - Class in nl.colorize.util.swing
Miscelleaneous utility and convenience methods for working with Swing.
SWITCHING_PROTOCOLS - Static variable in interface nl.colorize.util.http.HttpStatus
 

T

Table<R> - Class in nl.colorize.util.swing
Wrapper around JTable that allows rows to be identified by key, instead of only by index.
Table(String...) - Constructor for class nl.colorize.util.swing.Table
 
Table(List<String>) - Constructor for class nl.colorize.util.swing.Table
 
TEAVM - Enum constant in enum class nl.colorize.util.Platform
 
TEMPORARY_REDIRECT - Static variable in interface nl.colorize.util.http.HttpStatus
 
test(Date) - Method in record class nl.colorize.util.stats.DateRange
Returns true if this date range includes the specified date, using the same logic describes in DateRange.contains(Date).
TextUtils - Class in nl.colorize.util
Miscellaneous utility and convenience versions for working with text, including regular expressions.
tick() - Method in class nl.colorize.util.Stopwatch
Marks this point in time.
time() - Method in record class nl.colorize.util.animation.KeyFrame
Returns the value of the time record component.
timeFormat(float, boolean) - Static method in class nl.colorize.util.TextUtils
Formats elapsed time, represented by the number of seconds.
timeFormat(long, boolean) - Static method in class nl.colorize.util.TextUtils
Formats elapsed time, represented by the number of milliseconds.
Timeline - Class in nl.colorize.util.animation
Animates the value of a property over time by interpolating between key frames.
Timeline() - Constructor for class nl.colorize.util.animation.Timeline
Creates a timeline that uses linear interpolation and will not loop.
Timeline(Interpolation) - Constructor for class nl.colorize.util.animation.Timeline
Creates a timeline that uses the specified interpolation method and will not loop.
Timeline(Interpolation, boolean) - Constructor for class nl.colorize.util.animation.Timeline
Creates a timeline that will interpolate between key frames using the specified interpolation method.
toActionListener(Consumer<T>, Supplier<T>) - Static method in class nl.colorize.util.swing.SwingUtils
Returns an ActionListener that will invoke the specified callback function.
toActionListener(Consumer<T>, T) - Static method in class nl.colorize.util.swing.SwingUtils
Returns an ActionListener that will invoke the specified callback function.
tock() - Method in class nl.colorize.util.Stopwatch
Returns the time since the last Stopwatch.tick(), but does not set a new tick.
toCloseDelegate(Runnable) - Static method in class nl.colorize.util.swing.SwingUtils
 
toCSV(List<CSVRecord>, String, boolean) - Static method in class nl.colorize.util.CSVRecord
Deprecated.
Serializes a list of records to CSV, using the specified cell delimiter.
toDataURL(BufferedImage) - Static method in class nl.colorize.util.swing.Utils2D
Returns a data URL that represents the specified image's contents in PNG format.
toHexColor(Color) - Static method in class nl.colorize.util.swing.Utils2D
Converts a Color object to a hex string.
toHoverListener(Consumer<MouseEvent>, Consumer<MouseEvent>) - Static method in class nl.colorize.util.swing.SwingUtils
Produces a MouseListener that performs the specified actions when the mouse enters or exits the component.
toKeyReleasedListener(Consumer<KeyEvent>) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a KeyListener that forwards keyReleased events to the specified callback method.
toMap() - Method in class nl.colorize.util.http.PostData
Deprecated.
Using a map does not allow for an explicit iteration order, and it also does not allow multiple parameters to use the same name.
toMap(Properties) - Static method in class nl.colorize.util.PropertyUtils
Creates a map from a Properties object.
toMouseReleasedListener(Consumer<MouseEvent>) - Static method in class nl.colorize.util.swing.SwingUtils
Returns a MouseListener that forwards mouseReleased events to the specified callback method.
TOO_EARLY - Static variable in interface nl.colorize.util.http.HttpStatus
 
TOO_MANY_REQUESTS - Static variable in interface nl.colorize.util.http.HttpStatus
 
toProperties(Map<String, String>) - Static method in class nl.colorize.util.PropertyUtils
Creates a Properties object from a map.
toString() - Method in record class nl.colorize.util.animation.KeyFrame
Returns a string representation of this record class.
toString() - Method in class nl.colorize.util.animation.Timeline
 
toString() - Method in class nl.colorize.util.CSVRecord
Deprecated.
 
toString() - Method in class nl.colorize.util.http.Headers
 
toString() - Method in class nl.colorize.util.http.PostData
 
toString() - Method in class nl.colorize.util.http.URLLoader
 
toString() - Method in class nl.colorize.util.http.URLResponse
 
toString() - Method in enum class nl.colorize.util.Platform
Returns the display name for this platform family.
toString() - Method in record class nl.colorize.util.ResourceFile
Returns a string representation of this record class.
toString() - Method in class nl.colorize.util.stats.Cache
 
toString() - Method in record class nl.colorize.util.stats.DateRange
Returns a string representation of this record class.
toString() - Method in record class nl.colorize.util.stats.Tuple
Returns the string representation of this tuple.
toString() - Method in class nl.colorize.util.Version
Returns the version string that is represented by this object.
toTitleCase(String) - Static method in class nl.colorize.util.TextUtils
Returns the string str formatted in "title format".
TRACE - Enum constant in enum class nl.colorize.util.http.Method
 
TranslationBundle - Class in nl.colorize.util
Used to access text with different translations for different locale.
truncate(int) - Method in class nl.colorize.util.Version
Returns a new Version instance that is a truncated version of this one.
tryParse(String, String) - Static method in class nl.colorize.util.DateParser
Wrapper around SimpleDateFormat.parse to parse a date using the specified date format in a thread-safe way.
Tuple<L,R> - Record Class in nl.colorize.util.stats
Data structure that consists of two ordered values, sometimes also referred to as a pair.
Tuple(L, R) - Constructor for record class nl.colorize.util.stats.Tuple
Creates an instance of a Tuple record class.
TupleList<L,R> - Class in nl.colorize.util.stats
Convenience class that can be used as a shorthand for creating a list of Tuples.
TupleList() - Constructor for class nl.colorize.util.stats.TupleList
 

U

UNAUTHORIZED - Static variable in interface nl.colorize.util.http.HttpStatus
 
UNAVAILABLE_FOR_LEGAL_REASONS - Static variable in interface nl.colorize.util.http.HttpStatus
 
UNKNOWN - Enum constant in enum class nl.colorize.util.Platform
 
UNKNOWN - Static variable in class nl.colorize.util.Version
 
unsubscribe(UUID) - Method in class nl.colorize.util.Subscribable
Removes a previously registered subscriber, identifying the subscriber by its ID.
UNSUPPORTED_MEDIA_TYPE - Static variable in interface nl.colorize.util.http.HttpStatus
 
UPGRADE_REQUIRED - Static variable in interface nl.colorize.util.http.HttpStatus
 
URI_TOO_LONG - Static variable in interface nl.colorize.util.http.HttpStatus
 
URLLoader - Class in nl.colorize.util.http
Cross-platform API for building HTTP requests, then sending those requests using a HTTP client suitable for the current platform.
URLLoader(Method, String, Charset) - Constructor for class nl.colorize.util.http.URLLoader
Starts building a URL request.
URLLoader(Method, URI, Charset) - Constructor for class nl.colorize.util.http.URLLoader
Starts building a URL request.
URLResponse - Class in nl.colorize.util.http
Represents an HTTP response that is returned after sending an HTTP request to a URL.
URLResponse(int, Headers, byte[]) - Constructor for class nl.colorize.util.http.URLResponse
 
URLResponse(int, Headers, String) - Constructor for class nl.colorize.util.http.URLResponse
 
usage() - Element in annotation interface nl.colorize.util.cli.Arg
Optionally returns usage information, which is printed when no value or an invalid value for the argument is provided.
USE_PROXY - Static variable in interface nl.colorize.util.http.HttpStatus
 
usesMetalRenderer() - Static method in class nl.colorize.util.swing.MacIntegration
Returns true if a Swing or Java2D application is using the Metal renderer introduced in Java 17, and false if it is using the OpenGL renderer.
usesSwingDialogs() - Method in class nl.colorize.util.swing.ComboFileDialog
Returns whether file dialogs are created using Swing (if this returns true) or AWT (if this returns false).
Utils2D - Class in nl.colorize.util.swing
Utility methods for Java 2D, mainly focused on image manipulation.

V

validateHeader(String, String) - Static method in class nl.colorize.util.http.Headers
Helper method that validates if the specified name and value should be allowed as a HTTP headers.
value() - Method in record class nl.colorize.util.animation.KeyFrame
Returns the value of the value record component.
value() - Method in class nl.colorize.util.Stopwatch
Returns the current value of the underlying timer.
valueOf(String) - Static method in enum class nl.colorize.util.http.Method
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class nl.colorize.util.Platform
Returns the enum constant of this class with the specified name.
values() - Static method in enum class nl.colorize.util.http.Method
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class nl.colorize.util.Platform
Returns an array containing the constants of this enum class, in the order they are declared.
VARIANT_ALSO_NEGOTATES - Static variable in interface nl.colorize.util.http.HttpStatus
 
Version - Class in nl.colorize.util
Represents a version number with arbitrary precision.

W

walkFiles(File, Predicate<File>) - Static method in class nl.colorize.util.FileUtils
Shorthand for Files.walk to iterate over files in a directory, with only files matching the filter being returned.
WINDOWS - Enum constant in enum class nl.colorize.util.Platform
 
withAlpha(Color, float) - Static method in class nl.colorize.util.swing.Utils2D
Returns a color with the same RGB values as color, but with a different alpha value.
withAlpha(Color, int) - Static method in class nl.colorize.util.swing.Utils2D
Returns a color with the same RGB values as color, but with a different alpha value.
withAlpha(String, float) - Static method in class nl.colorize.util.swing.Utils2D
Returns a color with the same RGB values as hexColor, but with a different alpha value.
withAlpha(String, int) - Static method in class nl.colorize.util.swing.Utils2D
Returns a color with the same RGB values as hexColor, but with a different alpha value.
withBasicAuth(String, String) - Method in class nl.colorize.util.http.URLLoader
Convenience method to add the HTTP basic authentication header to the request.
withBody(String, String) - Method in class nl.colorize.util.http.URLLoader
Uses the specified request body and sets the Content-Type accordingly.
withBody(PostData) - Method in class nl.colorize.util.http.URLLoader
Uses the specified form data as the request body, and changes the Content-Type header to "application/x-www-form-urlencoded".
withHeader(String, String) - Method in class nl.colorize.util.http.URLLoader
Adds the specified header to the end of the request.
withHeader(String, String, boolean) - Method in class nl.colorize.util.http.URLLoader
Adds the specified request header.
withHeaders(Map<String, String>) - Method in class nl.colorize.util.http.URLLoader
Adds the specified request headers.
withHeaders(Headers) - Method in class nl.colorize.util.http.URLLoader
Adds the specified request headers.
withJSON(String) - Method in class nl.colorize.util.http.URLLoader
Uses the specified JSON request body, and changes the Content-Type header to "application/json".
withPathComponent(String) - Method in class nl.colorize.util.http.URLLoader
Appends the specified path component to the end of the URL.
withQueryParam(String, String) - Method in class nl.colorize.util.http.URLLoader
 
withTimeout(int) - Method in class nl.colorize.util.http.URLLoader
 
withXML(String) - Method in class nl.colorize.util.http.URLLoader
Uses the specified XML request body, and changes the Content-Type header to "text/xml".
wrapInScrollPane(JComponent) - Static method in class nl.colorize.util.swing.SwingUtils
 
wrapInScrollPane(JComponent, boolean) - Static method in class nl.colorize.util.swing.SwingUtils
 
wrapInScrollPane(JComponent, int) - Static method in class nl.colorize.util.swing.SwingUtils
 
wrapInScrollPane(JComponent, int, int) - Static method in class nl.colorize.util.swing.SwingUtils
 
write(byte[], File) - Static method in class nl.colorize.util.FileUtils
Writes the specified data to a file.
write(String, Charset, File) - Static method in class nl.colorize.util.FileUtils
Writes the specified text to a file.
write(List<String>, Charset, File) - Static method in class nl.colorize.util.FileUtils
Writes the specified lines to a file.

Y

YELLOW - Static variable in class nl.colorize.util.cli.AnsiColor
 
YELLOW_BOLD - Static variable in class nl.colorize.util.cli.AnsiColor
 
A B C D E F G H I K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form