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=8.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=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Drawing.Commonstatic java.lang.StringclassNameQualified class name: System.Drawing.Printing.PrinterSettingsstatic 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 objectJCTypegetJCOType()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(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=8.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
-
-
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, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
-
-
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(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public 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, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException, OutOfMemoryException, ArrayTypeMismatchException, Win32Exception, InvalidPrinterException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionWin32ExceptionInvalidPrinterExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastExceptionMulticastNotSupportedException
-
IsDirectPrintingSupported
public boolean IsDirectPrintingSupported(ImageFormat imageFormat) throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception, ArgumentNullException, PlatformNotSupportedException, InvalidPrinterException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32ExceptionArgumentNullExceptionPlatformNotSupportedExceptionInvalidPrinterExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastExceptionMulticastNotSupportedException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException, MulticastNotSupportedException, IndexOutOfRangeException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastExceptionMulticastNotSupportedExceptionIndexOutOfRangeExceptionFormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, InvalidCastException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowableWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionInvalidCastExceptionNotSupportedExceptionFormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings, boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, InvalidCastException, NotSupportedException, FormatException
- Throws:
java.lang.ThrowableWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionInvalidCastExceptionNotSupportedExceptionFormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings) throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception, ArgumentNullException, PlatformNotSupportedException, InvalidPrinterException, ArgumentOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException, MulticastNotSupportedException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32ExceptionArgumentNullExceptionPlatformNotSupportedExceptionInvalidPrinterExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastExceptionMulticastNotSupportedExceptionFormatException
-
Clone
public NetObject Clone() throws java.lang.Throwable, PlatformNotSupportedException
- Throws:
java.lang.ThrowablePlatformNotSupportedException
-
getCanDuplex
public boolean getCanDuplex() throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32Exception
-
getCollate
public boolean getCollate() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidCastException, Win32Exception, InvalidPrinterException, ArrayTypeMismatchException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidCastExceptionWin32ExceptionInvalidPrinterExceptionArrayTypeMismatchExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException, Win32Exception
-
getIsPlotter
public boolean getIsPlotter() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException, MulticastNotSupportedException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastExceptionMulticastNotSupportedException
-
getIsValid
public boolean getIsValid() throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32Exception
-
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, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32Exception
-
getCopies
public short getCopies() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastException
-
setCopies
public void setCopies(short Copies) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, FormatException, ArrayTypeMismatchException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, FormatException, ArrayTypeMismatchException
-
getLandscapeAngle
public int getLandscapeAngle() throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32Exception
-
getMaximumCopies
public int getMaximumCopies() throws java.lang.Throwable, ArgumentException, InvalidOperationException, Win32Exception- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionWin32Exception
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, FormatException, ArrayTypeMismatchException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, FormatException, ArrayTypeMismatchException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, FormatException, ArrayTypeMismatchException
-
getDuplex
public Duplex getDuplex() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentExceptionWin32ExceptionInvalidPrinterExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidOperationExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionInvalidCastException
-
setDuplex
public void setDuplex(Duplex Duplex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, 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, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentException
-
getPrinterName
public java.lang.String getPrinterName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, Win32Exception
-
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, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
-