public class DefaultToolsSwingManager extends Object implements ToolsSwingManager
| Constructor and Description |
|---|
DefaultToolsSwingManager() |
| Modifier and Type | Method and Description |
|---|---|
Color |
alphaBlendingWithOpaqueBackground(Color bgColor,
Color fgColor)
Alpha blending is the process of combining a translucent foreground color with a background
https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending
|
BufferedImage |
copyBufferedImage(BufferedImage img) |
ActionListenerSupport |
createActionListenerSupport() |
BufferedImage |
createBufferedImage(int w,
int h,
int type)
Create a buffered Image of the given size and type.
|
ColorChooserController |
createColorChooserController(JTextField txtLabel,
JButton btnShowDialog) |
ColorChooserController |
createColorChooserController(JTextField txtLabel,
JButton btnShowDialog,
JSlider sldAlpha) |
ColorChooserController |
createColorChooserController(JTextField txtLabel,
JButton btnShowDialog,
JSlider sldAlpha,
boolean allowNull) |
ComboBoxModel |
createComboBoxModel(TreeModel treeModel) |
JListWithCheckbox |
createJListWithCheckbox(JList wrappedList) |
BufferedImage |
createVirtualBufferedImage(int w,
int h,
int type)
Create a file mapped buffered Image of the given size and type.
|
Dimension |
getMaxPhysicalSizeOfBufferedImage()
Return the max physical size of buffered image creates by this manager.
|
Color |
opaqueColor(Color src) |
void |
setMaxPhysicalSizeOfBufferedImage(Dimension dimension)
Sets the max physical size of buffered image creates by this manager.
|
void |
setTreeModel(JComboBox comboBox,
TreeModel aTreeModel) |
void |
translate(AbstractButton component) |
void |
translate(JLabel component) |
public ActionListenerSupport createActionListenerSupport()
createActionListenerSupport in interface ToolsSwingManagerpublic JListWithCheckbox createJListWithCheckbox(JList wrappedList)
createJListWithCheckbox in interface ToolsSwingManagerpublic void setTreeModel(JComboBox comboBox, TreeModel aTreeModel)
setTreeModel in interface ToolsSwingManagerpublic ComboBoxModel createComboBoxModel(TreeModel treeModel)
createComboBoxModel in interface ToolsSwingManagerpublic BufferedImage createBufferedImage(int w, int h, int type)
ToolsSwingManagercreateBufferedImage in interface ToolsSwingManagerw - width in pixels of the requested imageh - height in pixels of the requested imagetype - image type (refers to bands, etc. see ImagesetMaxPhysicalSizeOfBufferedImage,
getMaxPhysicalSizeOfBufferedImagepublic BufferedImage createVirtualBufferedImage(int w, int h, int type)
ToolsSwingManagercreateVirtualBufferedImage in interface ToolsSwingManagerw - width in pixels of the requested imageh - height in pixels of the requested imagetype - image type (refers to bands, etc. see Imagepublic BufferedImage copyBufferedImage(BufferedImage img)
copyBufferedImage in interface ToolsSwingManagerpublic void setMaxPhysicalSizeOfBufferedImage(Dimension dimension)
ToolsSwingManagersetMaxPhysicalSizeOfBufferedImage in interface ToolsSwingManagercreateBufferedImage,
createVirtualBufferedImagepublic Dimension getMaxPhysicalSizeOfBufferedImage()
ToolsSwingManagergetMaxPhysicalSizeOfBufferedImage in interface ToolsSwingManagercreateBufferedImage,
createVirtualBufferedImagepublic ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog, JSlider sldAlpha, boolean allowNull)
createColorChooserController in interface ToolsSwingManagerpublic ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog)
createColorChooserController in interface ToolsSwingManagerpublic ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog, JSlider sldAlpha)
createColorChooserController in interface ToolsSwingManagerpublic Color alphaBlendingWithOpaqueBackground(Color bgColor, Color fgColor)
ToolsSwingManageralphaBlendingWithOpaqueBackground in interface ToolsSwingManagerpublic Color opaqueColor(Color src)
opaqueColor in interface ToolsSwingManagerpublic void translate(AbstractButton component)
translate in interface ToolsSwingManagerpublic void translate(JLabel component)
translate in interface ToolsSwingManager