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