Class CSSeparation
java.lang.Object
org.apache.pdfbox.debugger.colorpane.CSSeparation
- All Implemented Interfaces:
ActionListener
,EventListener
,ChangeListener
A class that provides the necessary UI and functionalities to show the Separation color space.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JLabel
private JPanel
private final PDSeparation
private JSlider
private JTextField
private float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent actionEvent) input changed in text field.private float
getFloatRepresentation
(int value) private int
getIntRepresentation
(float value) getPanel()
return the main panel that hold all the UI elements.private void
initUI()
initialize all the UI elements and arrange them.private void
private void
Set a little border around colorbar.void
stateChanged
(ChangeEvent changeEvent) input changed in slider.private void
-
Field Details
-
slider
-
tintField
-
colorBar
-
panel
-
separation
-
tintValue
private float tintValue
-
-
Constructor Details
-
CSSeparation
Constructor- Parameters:
array
- COSArray instance of the Separation color space.- Throws:
IOException
-
-
Method Details
-
initUI
initialize all the UI elements and arrange them.- Throws:
IOException
-
initValues
private void initValues() -
getPanel
return the main panel that hold all the UI elements.- Returns:
- JPanel instance
-
stateChanged
input changed in slider.- Specified by:
stateChanged
in interfaceChangeListener
- Parameters:
changeEvent
-
-
actionPerformed
input changed in text field.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
actionEvent
-
-
updateColorBar
- Throws:
IOException
-
setColorBarBorder
Set a little border around colorbar. color of the border is the darkest of the colorant.- Throws:
IOException
-
getFloatRepresentation
private float getFloatRepresentation(int value) -
getIntRepresentation
private int getIntRepresentation(float value)
-