Class SideBySideDiff

    • Field Detail

      • m_SideBySideDiffPanel

        protected SideBySideDiffPanel m_SideBySideDiffPanel
        the panel with the image.
    • Constructor Detail

      • SideBySideDiff

        public SideBySideDiff()
    • Method Detail

      • getDefaultWidth

        protected int getDefaultWidth()
        Returns the default width for the dialog.
        Overrides:
        getDefaultWidth in class AbstractDisplay
        Returns:
        the default width
      • getDefaultHeight

        protected int getDefaultHeight()
        Returns the default height for the dialog.
        Overrides:
        getDefaultHeight in class AbstractDisplay
        Returns:
        the default height
      • accepts

        public Class[] accepts()
        Returns the class that the consumer accepts.
        Specified by:
        accepts in interface InputConsumer
        Returns:
        adams.core.DiffUtils$SideBySideDiff.class
      • adjustSize

        protected void adjustSize​(SideBySideDiffPanel panel)
        Adjusts the size of the left/right panels to fit the actors size.
        Parameters:
        panel - the panel to adjust
      • display

        protected void display​(Token token)
        Displays the token (the panel and dialog have already been created at this stage).
        Specified by:
        display in class AbstractDisplay
        Parameters:
        token - the token to display
      • displayPanelRequiresScrollPane

        public boolean displayPanelRequiresScrollPane()
        Returns whether the created display panel requires a scroll pane or not.
        Specified by:
        displayPanelRequiresScrollPane in interface DisplayPanelProvider
        Returns:
        true if the display panel requires a scroll pane