public final class PaletteFactory extends Object
PaletteFactory creating new PaletteController instances.
| Modifier and Type | Method and Description |
|---|---|
static PaletteController |
createPalette(Node paletteRoot,
PaletteActions customActions)
Create a new palette from the given root Node.
|
static PaletteController |
createPalette(Node paletteRoot,
PaletteActions customActions,
PaletteFilter filter,
DragAndDropHandler dndHandler)
Create a new palette from the given root Node.
|
static PaletteController |
createPalette(String rootFolderName,
PaletteActions customActions)
Create a new palette from the given folder.
|
static PaletteController |
createPalette(String rootFolderName,
PaletteActions customActions,
PaletteFilter filter,
DragAndDropHandler dndHandler)
Create a new palette from the given folder.
|
public static PaletteController createPalette(String rootFolderName, PaletteActions customActions) throws IOException
rootFolderName - Name of palette's root folder, its sub-folders are categories.
Cannot be null.customActions - Import actions for palette customizer.IOException - If the given folder cannot be found.public static PaletteController createPalette(String rootFolderName, PaletteActions customActions, PaletteFilter filter, DragAndDropHandler dndHandler) throws IOException
rootFolderName - Name of palette's root folder, its sub-folders are categories.
Cannot be null.customActions - Import actions for palette customizer.filter - A filter that can dynamically hide some categories and items.dndHandler - Handle drop of new items into palette window and add
custom DataFlavors to the Transferable of items being dragged from
the palette to editor window. Can be null.IOException - If the given folder cannot be found.public static PaletteController createPalette(Node paletteRoot, PaletteActions customActions)
paletteRoot - Palette's root Node, its children are categories,
their children are palette items.customActions - Import actions for palette customizer.public static PaletteController createPalette(Node paletteRoot, PaletteActions customActions, PaletteFilter filter, DragAndDropHandler dndHandler)
paletteRoot - Palette's root Node, its children are categories,
their children are palette items. Cannot be null.customActions - Import actions for palette customizer. Cannot be null.filter - A filter that can dynamically hide some categories and items. Can be null.dndHandler - Handle drop of new items into palette window and add
custom DataFlavors to the Transferable of items being dragged from
the palette to editor window. Can be null.