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 JLabelprivate JPanelprivate final PDSeparationprivate JSliderprivate JTextFieldprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent actionEvent) input changed in text field.private floatgetFloatRepresentation(int value) private intgetIntRepresentation(float value) getPanel()return the main panel that hold all the UI elements.private voidinitUI()initialize all the UI elements and arrange them.private voidprivate voidSet a little border around colorbar.voidstateChanged(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:
stateChangedin interfaceChangeListener- Parameters:
changeEvent-
-
actionPerformed
input changed in text field.- Specified by:
actionPerformedin 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)
-