Package system.drawing.printing
Class PrinterSettings
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.drawing.printing.PrinterSettings
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class PrinterSettings extends NetObject
The base .NET class managing System.Drawing.Printing.PrinterSettings, System.Drawing.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Printing.PrinterSettings
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Drawing.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Drawing.Commonstatic java.lang.StringclassNameQualified class name: System.Drawing.Printing.PrinterSettingsstatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PrinterSettings()PrinterSettings(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrinterSettingscast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPrinterSettings, a cast assert is made to check if types are compatible.NetObjectClone()GraphicsCreateMeasurementGraphics()GraphicsCreateMeasurementGraphics(boolean honorOriginAtMargins)GraphicsCreateMeasurementGraphics(PageSettings pageSettings)GraphicsCreateMeasurementGraphics(PageSettings pageSettings, boolean honorOriginAtMargins)booleangetCanDuplex()booleangetCollate()shortgetCopies()PageSettingsgetDefaultPageSettings()DuplexgetDuplex()intgetFromPage()booleangetIsDefaultPrinter()booleangetIsPlotter()booleangetIsValid()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCTypegetJCOType()Returns the instantiated class TypeintgetLandscapeAngle()intgetMaximumCopies()intgetMaximumPage()intgetMinimumPage()java.lang.StringgetPrinterName()java.lang.StringgetPrintFileName()PrintRangegetPrintRange()booleangetPrintToFile()booleangetSupportsColor()intgetToPage()booleanIsDirectPrintingSupported(Image image)booleanIsDirectPrintingSupported(ImageFormat imageFormat)voidsetCollate(boolean Collate)voidsetCopies(short Copies)voidsetDuplex(Duplex Duplex)voidsetFromPage(int FromPage)voidsetJCOInstance(org.mases.jcobridge.JCObject instance)voidsetMaximumPage(int MaximumPage)voidsetMinimumPage(int MinimumPage)voidsetPrinterName(java.lang.String PrinterName)voidsetPrintFileName(java.lang.String PrintFileName)voidsetPrintRange(PrintRange PrintRange)voidsetPrintToFile(boolean PrintToFile)voidsetToPage(int ToPage)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Printing.PrinterSettings- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
PrinterSettings
public PrinterSettings(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
PrinterSettings
public PrinterSettings() throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PrinterSettings cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPrinterSettings, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PrinterSettingsinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsDirectPrintingSupported
public boolean IsDirectPrintingSupported(Image image) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, Win32Exception, InvalidPrinterException, ArgumentOutOfRangeException
-
IsDirectPrintingSupported
public boolean IsDirectPrintingSupported(ImageFormat imageFormat) throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArrayTypeMismatchException, NotSupportedException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidOperationException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings, boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidOperationException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings) throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, FormatException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedException
-
getCanDuplex
public boolean getCanDuplex() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidOperationException
-
getCollate
public boolean getCollate() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, InvalidCastException, Win32Exception, InvalidPrinterException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionInvalidCastExceptionWin32ExceptionInvalidPrinterExceptionArrayTypeMismatchException
-
setCollate
public void setCollate(boolean Collate) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsDefaultPrinter
public boolean getIsDefaultPrinter() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, Win32Exception, NotSupportedException
-
getIsPlotter
public boolean getIsPlotter() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException
-
getIsValid
public boolean getIsValid() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidOperationException
-
getPrintToFile
public boolean getPrintToFile() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPrintToFile
public void setPrintToFile(boolean PrintToFile) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSupportsColor
public boolean getSupportsColor() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidOperationException
-
getCopies
public short getCopies() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException
-
setCopies
public void setCopies(short Copies) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getFromPage
public int getFromPage() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFromPage
public void setFromPage(int FromPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getLandscapeAngle
public int getLandscapeAngle() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidOperationException
-
getMaximumCopies
public int getMaximumCopies() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidOperationException
-
getMaximumPage
public int getMaximumPage() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMaximumPage
public void setMaximumPage(int MaximumPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getMinimumPage
public int getMinimumPage() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMinimumPage
public void setMinimumPage(int MinimumPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getToPage
public int getToPage() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setToPage
public void setToPage(int ToPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getDuplex
public Duplex getDuplex() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException
-
setDuplex
public void setDuplex(Duplex Duplex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getDefaultPageSettings
public PageSettings getDefaultPageSettings() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrintRange
public PrintRange getPrintRange() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrintRange
public void setPrintRange(PrintRange PrintRange) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentException
-
getPrinterName
public java.lang.String getPrinterName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionWin32Exception
-
setPrinterName
public void setPrinterName(java.lang.String PrinterName) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPrintFileName
public java.lang.String getPrintFileName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPrintFileName
public void setPrintFileName(java.lang.String PrintFileName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
-
-