gnu.x11.extension
Class Print.Context

java.lang.Object
  extended by gnu.x11.Resource
      extended by gnu.x11.extension.Print.Context
Enclosing class:
Print

public class Print.Context
extends Resource


Nested Class Summary
 class Print.Context.InputSelectedInfo
          Reply of input_selected(int).
 class Print.Context.PageDimensions
          Reply of page_dimensions().
 class Print.Context.SetImageResolutionInfo
          Reply of page_dimensions().
 
Field Summary
static int ATTRIBUTE_MERGE
           
static int ATTRIBUTE_REPLACE
           
static int DOC_ATTRIBUTE_POOL
           
static int JOB_ATTRIBUTE_POOL
           
static int MEDIUM_ATTRIBUTE_POOL
           
static int PAGE_ATTRIBUTE_POOL
           
static int PRINTER_ATTRIBUTE_POOL
           
static int SERVER_ATTRIBUTE_POOL
           
static int SPOOLER_ATTRIBUTE_POOL
           
 
Fields inherited from class gnu.x11.Resource
display, id
 
Constructor Summary
Print.Context(java.lang.String name)
           
 
Method Summary
 java.lang.String attributes()
          All possible attributes.
 java.lang.String attributes(int pool)
           
 void destroy()
           
 int image_resolution()
           
 Print.Context.InputSelectedInfo input_selected(int event_mask)
           
 java.lang.String one_attribute(int pool, java.lang.String name)
           
 Print.Context.PageDimensions page_dimensions()
           
 Window screen()
           
 void select_input(int event_mask)
           
 void set_attributes(int pool, int rule, java.lang.String attributes)
           
 Print.Context.SetImageResolutionInfo set_image_resolution(int resolution)
           
 void set()
           
 java.lang.String toString()
           
 
Methods inherited from class gnu.x11.Resource
id, unintern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JOB_ATTRIBUTE_POOL

public static final int JOB_ATTRIBUTE_POOL
See Also:
Constant Field Values

DOC_ATTRIBUTE_POOL

public static final int DOC_ATTRIBUTE_POOL
See Also:
Constant Field Values

PAGE_ATTRIBUTE_POOL

public static final int PAGE_ATTRIBUTE_POOL
See Also:
Constant Field Values

PRINTER_ATTRIBUTE_POOL

public static final int PRINTER_ATTRIBUTE_POOL
See Also:
Constant Field Values

SERVER_ATTRIBUTE_POOL

public static final int SERVER_ATTRIBUTE_POOL
See Also:
Constant Field Values

MEDIUM_ATTRIBUTE_POOL

public static final int MEDIUM_ATTRIBUTE_POOL
See Also:
Constant Field Values

SPOOLER_ATTRIBUTE_POOL

public static final int SPOOLER_ATTRIBUTE_POOL
See Also:
Constant Field Values

ATTRIBUTE_REPLACE

public static final int ATTRIBUTE_REPLACE
See Also:
Constant Field Values

ATTRIBUTE_MERGE

public static final int ATTRIBUTE_MERGE
See Also:
Constant Field Values
Constructor Detail

Print.Context

public Print.Context(java.lang.String name)
See Also:
XpCreateContext
Method Detail

set

public void set()
See Also:
XpSetContext

destroy

public void destroy()
See Also:
XpDestroyContext

screen

public Window screen()
See Also:
XpGetScreenOfContext

select_input

public void select_input(int event_mask)
See Also:
XpSelectInput

input_selected

public Print.Context.InputSelectedInfo input_selected(int event_mask)
See Also:
XpInputSelected

attributes

public java.lang.String attributes(int pool)
Parameters:
pool - valid: JOB_ATTRIBUTE_POOL, DOC_ATTRIBUTE_POOL, PAGE_ATTRIBUTE_POOL, PRINTER_ATTRIBUTE_POOL, SERVER_ATTRIBUTE_POOL, MEDIUM_ATTRIBUTE_POOL, SPOOLER_ATTRIBUTE_POOL
See Also:
XpGetAttributes

set_attributes

public void set_attributes(int pool,
                           int rule,
                           java.lang.String attributes)
Parameters:
pool - valid: JOB_ATTRIBUTE_POOL, DOC_ATTRIBUTE_POOL, PAGE_ATTRIBUTE_POOL, PRINTER_ATTRIBUTE_POOL, SERVER_ATTRIBUTE_POOL
See Also:
XpSetAttributes

one_attribute

public java.lang.String one_attribute(int pool,
                                      java.lang.String name)
Parameters:
pool - valid: JOB_ATTRIBUTE_POOL, DOC_ATTRIBUTE_POOL, PAGE_ATTRIBUTE_POOL, PRINTER_ATTRIBUTE_POOL, SERVER_ATTRIBUTE_POOL
rule - valid: ATTRIBUTE_REPLACE, ATTRIBUTE_MERGE
See Also:
XpGetOneAttribute

page_dimensions

public Print.Context.PageDimensions page_dimensions()
See Also:
XpGetPageDimensions

set_image_resolution

public Print.Context.SetImageResolutionInfo set_image_resolution(int resolution)
See Also:
XpSetImageResolution

image_resolution

public int image_resolution()
See Also:
XpGetImageResolution

attributes

public java.lang.String attributes()
All possible attributes.

See Also:
attributes(int)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object