com.jniwrapper.win32.gdi
Class DevMode

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.gdi.DevMode
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class DevMode
extends com.jniwrapper.Structure

This structure corresponds to a native DEVMODE structure.

See Also:
Printing and print spooler structures

Nested Class Summary
static class DevMode.PaperStructure
           
 
Field Summary
static int COLLATE_NO
          Do not collate when printing multiple copies.
static int DEVMODEA_SIZE
          Sizer of DEVMODE structure in ANSI mode.
static int DEVMODEW_SIZE
          Size of DEVMODE structure in Unicode mode
static long DM_COLLATE
          Specifies that dmCollate structure member will be initialized.
static long DM_COPIES
          Specifies that dmCopies structure member will be initialized.
static long DM_ORIENTATION
          Specifies that dmOrientation structure member will be initialized.
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
DevMode()
           
DevMode(DevMode that)
           
 
Method Summary
 java.lang.Object clone()
           
 long getDmBitsPerPel()
           
 int getDmCollate()
           
 int getDmColor()
           
 int getDmCopies()
           
 int getDmDefaultSource()
           
 java.lang.String getDmDeviceName()
           
 long getDmDisplayFlags()
           
 long getDmDisplayFrequency()
           
 long getDmDitherType()
           
 int getDmDriverExtra()
           
 int getDmDriverVersion()
           
 int getDmDuplex()
           
 long getDmFields()
           
 java.lang.String getDmFormName()
           
 long getDmICMIntent()
           
 long getDmICMMethod()
           
 int getDmLogPixels()
           
 long getDmMediaType()
           
 int getDmPageOrientation()
           
 long getDmPanningHeight()
           
 long getDmPanningWidth()
           
 long getDmPelsHeight()
           
 long getDmPelsWidth()
           
 PointL getDmPosition()
          Deprecated. Returns null since not used in the structure
 int getDmPrintQuality()
           
 long getDmReserved1()
           
 long getDmReserved2()
           
 int getDmScale()
           
 int getDmSize()
           
 int getDmSpecVersion()
           
 int getDmTTOption()
           
 int getDmYResolution()
           
 DevMode.PaperStructure getPaperStructure()
           
 void setDmBitsPerPel(long dmBitsPerPel)
           
 void setDmCollate(int dmCollate)
           
 void setDmColor(int dmColor)
           
 void setDmCopies(int dmCopies)
           
 void setDmDefaultSource(int dmDefaultSource)
           
 void setDmDeviceName(java.lang.String dmDeviceName)
           
 void setDmDisplayFlags(long dmDisplayFlags)
           
 void setDmDisplayFrequency(long dmDisplayFrequency)
           
 void setDmDitherType(long dmDitherType)
           
 void setDmDriverExtra(int dmDriverExtra)
           
 void setDmDriverVersion(int dmDriverVersion)
           
 void setDmDuplex(int dmDuplex)
           
 void setDmFields(long dmFields)
           
 void setDmFormName(java.lang.String dmFormName)
           
 void setDmICMIntent(long dmICMIntent)
           
 void setDmICMMethod(long dmICMMethod)
           
 void setDmLogPixels(int dmLogPixels)
           
 void setDmMediaType(long dmMediaType)
           
 void setDmPageOrientation(int dmPageOrientation)
           
 void setDmPanningHeight(long dmPanningHeight)
           
 void setDmPanningWidth(long dmPanningWidth)
           
 void setDmPelsHeight(long dmPelsHeight)
           
 void setDmPelsWidth(long dmPelsWidth)
           
 void setDmPrintQuality(int dmPrintQuality)
           
 void setDmReserved1(long dmReserved1)
           
 void setDmReserved2(long dmReserved2)
           
 void setDmScale(int dmScale)
           
 void setDmSize(int dmSize)
           
 void setDmSpecVersion(int dmSpecVersion)
           
 void setDmTTOption(int dmTTOption)
           
 void setDmYResolution(int dmYResolution)
           
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVMODEA_SIZE

public static final int DEVMODEA_SIZE
Sizer of DEVMODE structure in ANSI mode.

See Also:
Constant Field Values

DEVMODEW_SIZE

public static final int DEVMODEW_SIZE
Size of DEVMODE structure in Unicode mode

See Also:
Constant Field Values

DM_COLLATE

public static final long DM_COLLATE
Specifies that dmCollate structure member will be initialized.

See Also:
Constant Field Values

DM_COPIES

public static final long DM_COPIES
Specifies that dmCopies structure member will be initialized.

See Also:
Constant Field Values

DM_ORIENTATION

public static final long DM_ORIENTATION
Specifies that dmOrientation structure member will be initialized.

See Also:
Constant Field Values

COLLATE_NO

public static final int COLLATE_NO
Do not collate when printing multiple copies.

See Also:
Constant Field Values
Constructor Detail

DevMode

public DevMode()

DevMode

public DevMode(DevMode that)
Method Detail

getDmDeviceName

public java.lang.String getDmDeviceName()

setDmDeviceName

public void setDmDeviceName(java.lang.String dmDeviceName)

getDmSpecVersion

public int getDmSpecVersion()

setDmSpecVersion

public void setDmSpecVersion(int dmSpecVersion)

getDmDriverVersion

public int getDmDriverVersion()

setDmDriverVersion

public void setDmDriverVersion(int dmDriverVersion)

getDmSize

public int getDmSize()

setDmSize

public void setDmSize(int dmSize)

getDmDriverExtra

public int getDmDriverExtra()

setDmDriverExtra

public void setDmDriverExtra(int dmDriverExtra)

getDmFields

public long getDmFields()

setDmFields

public void setDmFields(long dmFields)

getPaperStructure

public DevMode.PaperStructure getPaperStructure()

getDmPosition

public PointL getDmPosition()
Deprecated. Returns null since not used in the structure


getDmColor

public int getDmColor()

setDmColor

public void setDmColor(int dmColor)

getDmDuplex

public int getDmDuplex()

setDmDuplex

public void setDmDuplex(int dmDuplex)

getDmYResolution

public int getDmYResolution()

setDmYResolution

public void setDmYResolution(int dmYResolution)

getDmTTOption

public int getDmTTOption()

setDmTTOption

public void setDmTTOption(int dmTTOption)

getDmCollate

public int getDmCollate()

setDmCollate

public void setDmCollate(int dmCollate)

getDmFormName

public java.lang.String getDmFormName()

setDmFormName

public void setDmFormName(java.lang.String dmFormName)

getDmLogPixels

public int getDmLogPixels()

setDmLogPixels

public void setDmLogPixels(int dmLogPixels)

getDmBitsPerPel

public long getDmBitsPerPel()

setDmBitsPerPel

public void setDmBitsPerPel(long dmBitsPerPel)

getDmPelsWidth

public long getDmPelsWidth()

setDmPelsWidth

public void setDmPelsWidth(long dmPelsWidth)

getDmPelsHeight

public long getDmPelsHeight()

setDmPelsHeight

public void setDmPelsHeight(long dmPelsHeight)

getDmDisplayFlags

public long getDmDisplayFlags()

setDmDisplayFlags

public void setDmDisplayFlags(long dmDisplayFlags)

getDmDisplayFrequency

public long getDmDisplayFrequency()

setDmDisplayFrequency

public void setDmDisplayFrequency(long dmDisplayFrequency)

getDmICMMethod

public long getDmICMMethod()

setDmICMMethod

public void setDmICMMethod(long dmICMMethod)

getDmICMIntent

public long getDmICMIntent()

setDmICMIntent

public void setDmICMIntent(long dmICMIntent)

getDmMediaType

public long getDmMediaType()

setDmMediaType

public void setDmMediaType(long dmMediaType)

getDmDitherType

public long getDmDitherType()

setDmDitherType

public void setDmDitherType(long dmDitherType)

getDmReserved1

public long getDmReserved1()

setDmReserved1

public void setDmReserved1(long dmReserved1)

getDmReserved2

public long getDmReserved2()

setDmReserved2

public void setDmReserved2(long dmReserved2)

getDmPanningWidth

public long getDmPanningWidth()

setDmPanningWidth

public void setDmPanningWidth(long dmPanningWidth)

getDmPanningHeight

public long getDmPanningHeight()

setDmPanningHeight

public void setDmPanningHeight(long dmPanningHeight)

getDmScale

public int getDmScale()

setDmScale

public void setDmScale(int dmScale)

getDmCopies

public int getDmCopies()

setDmCopies

public void setDmCopies(int dmCopies)

getDmDefaultSource

public int getDmDefaultSource()

setDmDefaultSource

public void setDmDefaultSource(int dmDefaultSource)

getDmPrintQuality

public int getDmPrintQuality()

setDmPrintQuality

public void setDmPrintQuality(int dmPrintQuality)

setDmPageOrientation

public void setDmPageOrientation(int dmPageOrientation)

getDmPageOrientation

public int getDmPageOrientation()

clone

public java.lang.Object clone()
Overrides:
clone in class com.jniwrapper.Structure