Documentation of 'jas2.plot.PrintHelper' Java class
PrintHelper
jas2.plot

Class PrintHelper

    • Constructor Detail

      • PrintHelper

        public PrintHelper()
    • Method Detail

      • printTarget

        public abstract void printTarget(java.awt.Component target)
                                  throws java.lang.Exception
        Print the specified component
        Throws:
        java.lang.Exception
      • instance

        public static PrintHelper instance()
        Create an instance of a PrintHelper
      • setOrientation

        public abstract void setOrientation(int orientation)
        Set the print orientation
        Parameters:
        orientation - One of ORIENTATION_BEST_FIT,ORIENTATION_PORTRAITE,ORIENTATION_LANDSCAPE
      • setScaleUp

        public abstract void setScaleUp(boolean scaleUp)
        Controls whether the PrintHelper will scale an image up to make it fill the page (PrintHelper will always try to shrink to fit)
      • isPrinting

        public static boolean isPrinting()
        Method to allow component being painted to find out if it is being printed. This is a crude workaround for limitations which make it impossible for a SwingComponent to tell whether its paint method is being called to print it or to display it on the screen. Obviously this static method only works if PrintHelper is being used to do the printing.
      • setPrintingThread

        public void setPrintingThread(java.lang.Thread thread)
      • printingThread

        public java.lang.Thread printingThread()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.