public interface ToolsSwingManager
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) |
ActionListenerSupport createActionListenerSupport()
JListWithCheckbox createJListWithCheckbox(JList wrappedList)
ComboBoxModel createComboBoxModel(TreeModel treeModel)
ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog, JSlider sldAlpha, boolean allowNull)
ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog)
ColorChooserController createColorChooserController(JTextField txtLabel, JButton btnShowDialog, JSlider sldAlpha)
BufferedImage createBufferedImage(int w, int h, int type)
w
- width in pixels of the requested imageh
- height in pixels of the requested imagetype
- image type (refers to bands, etc. see Image
setMaxPhysicalSizeOfBufferedImage
,
getMaxPhysicalSizeOfBufferedImage
BufferedImage createVirtualBufferedImage(int w, int h, int type)
w
- width in pixels of the requested imageh
- height in pixels of the requested imagetype
- image type (refers to bands, etc. see Image
IOException
BufferedImage copyBufferedImage(BufferedImage img)
void setMaxPhysicalSizeOfBufferedImage(Dimension dimension)
dimension
- createBufferedImage
,
createVirtualBufferedImage
Dimension getMaxPhysicalSizeOfBufferedImage()
createBufferedImage
,
createVirtualBufferedImage
Color alphaBlendingWithOpaqueBackground(Color bgColor, Color fgColor)
bgColor
- fgColor
- void translate(AbstractButton component)
void translate(JLabel component)