Class CSSeparation

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ChangeListener

    public class CSSeparation
    extends java.lang.Object
    implements javax.swing.event.ChangeListener, java.awt.event.ActionListener
    A class that provides the necessary UI and functionalities to show the Separation color space.
    Author:
    Khyrul Bashar.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSeparation​(org.apache.pdfbox.cos.COSArray array)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent actionEvent)
      input changed in text field.
      javax.swing.JPanel getPanel()
      return the main panel that hold all the UI elements.
      void stateChanged​(javax.swing.event.ChangeEvent changeEvent)
      input changed in slider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSSeparation

        public CSSeparation​(org.apache.pdfbox.cos.COSArray array)
                     throws java.io.IOException
        Constructor
        Parameters:
        array - COSArray instance of the Separation color space.
        Throws:
        java.io.IOException
    • Method Detail

      • getPanel

        public javax.swing.JPanel getPanel()
        return the main panel that hold all the UI elements.
        Returns:
        JPanel instance
      • stateChanged

        public void stateChanged​(javax.swing.event.ChangeEvent changeEvent)
        input changed in slider.
        Specified by:
        stateChanged in interface javax.swing.event.ChangeListener
        Parameters:
        changeEvent -
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent actionEvent)
        input changed in text field.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Parameters:
        actionEvent -