public class CSSeparation
extends java.lang.Object
implements javax.swing.event.ChangeListener, java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
private javax.swing.JLabel |
colorBar |
private javax.swing.JPanel |
panel |
private PDSeparation |
separation |
private javax.swing.JSlider |
slider |
private javax.swing.JTextField |
tintField |
private float |
tintValue |
Constructor and Description |
---|
CSSeparation(COSArray array)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
input changed in text field.
|
private float |
getFloatRepresentation(int value) |
private int |
getIntRepresentation(float value) |
javax.swing.JPanel |
getPanel()
return the main panel that hold all the UI elements.
|
private void |
initUI()
initialize all the UI elements and arrange them.
|
private void |
initValues() |
private void |
setColorBarBorder()
Set a little border around colorbar.
|
void |
stateChanged(javax.swing.event.ChangeEvent changeEvent)
input changed in slider.
|
private void |
updateColorBar() |
private javax.swing.JSlider slider
private javax.swing.JTextField tintField
private javax.swing.JLabel colorBar
private javax.swing.JPanel panel
private PDSeparation separation
private float tintValue
public CSSeparation(COSArray array)
array
- COSArray instance of the separation color space.private void initUI()
private void initValues()
public javax.swing.JPanel getPanel()
public void stateChanged(javax.swing.event.ChangeEvent changeEvent)
stateChanged
in interface javax.swing.event.ChangeListener
changeEvent
- public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
actionEvent
- private void updateColorBar()
private void setColorBarBorder()
private float getFloatRepresentation(int value)
private int getIntRepresentation(float value)