|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.PageAttributes
ÀμâÇÑ ÆäÀÌÁöÀÇ Ãâ·ÂÀ» Á¦¾îÇÏ´Â ¼Ó¼º ¼¼Æ®ÀÔ´Ï´Ù.
ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â »ö »óÅÂ, ¿ëÁö »çÀÌÁî (¹Ìµð¾îÀÇ Á¾·ù), ¿ëÁö ¹æÇâ, ³í¸®ÀûÀÎ ¿øÁ¡, Àμâ ǰÁú, ¹× ÀνºÅϽº¸¦ »ç¿ëÇÏ´Â °¢ ÆäÀÌÁöÀÇ ÇØ»óµµ¸¦ Á¦¾îÇÕ´Ï´Ù. ¼Ó¼º¸íÀº Internet Printing Protocol (IPP) 1.1 ¿¡ ÁذÅÇØ, ¼Ó¼ºÄ¡´Â ÀϺΰ¡ ÁذÅÇϰí ÀÖ½À´Ï´Ù.
³»ºÎ Ŭ·¡½ºÇüÀ» ÃëÇÏ´Â ¸Þ¼Òµå¸¦ »ç¿ëÇÏ·Á¸é , ±× ³»ºÎ Ŭ·¡½ºÀÇ Á¤¼ö Çʵ忡 ´ëÇÑ ÂüÁ¶¸¦ °Ç³×ÁÝ´Ï´Ù. Ŭ¶óÀÌ¾ðÆ® ÄÚµå´Â ÀÌ Å¬·¡½º°¡ public constructor¸¦ °¡ÁöÁö ¾Ê±â ¶§¹®¿¡, ³»ºÎ Ŭ·¡½ºÇüÀÇ ½Å±Ô ÀνºÅϽº¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø½À´Ï´Ù. »ö »óŸ¦ Èæ¹éÀ¸·Î ¼³Á¤ÇÏ·Á¸é , ´ÙÀ½ÀÇ Äڵ带 »ç¿ëÇÕ´Ï´Ù.
import java.awt.PageAttributes; public class MonochromeExample { public void setMonochrome(PageAttributes pageAttributes) { pageAttributes.setColor(PageAttributes.ColorType.MONOCHROME); } }
attributeName ÀÇ µðÆúÆ®ÀÇ °ªÀ» ¼Æ÷Æ®ÇÏ´Â ¸ðµç IPP ¼Ó¼ºÀº ´ëÀÀÇÏ´Â setattributeNameToDefault
¸Þ¼Òµå¸¦ °¡Áö°í ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ °ªÇʵå´Â Á¦°øµÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
PageAttributes.ColorType
»ç¿ë °¡´ÉÇÑ Ä®¶ó »óÅÂÀÇ ÇüÅ ÇÁ·ÎÅØ¼ÇµÈ ¿°ÅÀÔ´Ï´Ù. |
static class |
PageAttributes.MediaType
»ç¿ë °¡´ÉÇÑ ¿ëÁö »çÀÌÁîÀÇ ÇüÅ ÇÁ·ÎÅØ¼ÇµÈ ¿°ÅÀÔ´Ï´Ù. |
static class |
PageAttributes.OrientationRequestedType
»ç¿ë °¡´ÉÇÑ ¿ëÁö ¹æÇâÀÇ ÇüÅ ÇÁ·ÎÅØ¼ÇµÈ ¿°ÅÀÔ´Ï´Ù. |
static class |
PageAttributes.OriginType
»ç¿ë °¡´ÉÇÑ ¿øÁ¡ÀÇ ÇüÅ ÇÁ·ÎÅØ¼ÇµÈ ¿°ÅÀÔ´Ï´Ù. |
static class |
PageAttributes.PrintQualityType
»ç¿ë °¡´ÉÇÑ Àμâ ǰÁúÀÇ ÇüÅ ÇÁ·ÎÅØ¼ÇµÈ ¿°ÅÀÔ´Ï´Ù. |
»ý¼ºÀÚÀÇ °³¿ä | |
PageAttributes ()
°¢ ¼Ó¼º¿¡ µðÆúÆ®ÀÇ °ªÀ» °¡Áö´Â PageAttributes ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. |
|
PageAttributes (PageAttributes.ColorType color,
PageAttributes.MediaType media,
PageAttributes.OrientationRequestedType orientationRequested,
PageAttributes.OriginType origin,
PageAttributes.PrintQualityType printQuality,
int[] printerResolution)
°¢ ¼Ó¼ºÀ¸·Î ÁöÁ¤µÈ °ªÀ» °¡Áö´Â PageAttributes ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. |
|
PageAttributes (PageAttributes obj)
ÁöÁ¤µÈ PageAttributes ÀÇ Ä«ÇÇÀÎ PageAttributes ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
Object |
clone ()
PageAttributes ÀÇ Ä«ÇǸ¦ ÀÛ¼ºÇØ, µ¹·ÁÁÝ´Ï´Ù. |
boolean |
equals (Object obj)
2 °³ÀÇ PageAttributes °¡ °°ÀºÁö ¾î¶²Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
PageAttributes.ColorType |
getColor ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁö¸¦ Ä®¶ó·Î Ç¥Çö ÇÒ±î Èæ¹éÀ¸·Î Ç¥Çö Çұ µ¹·ÁÁÝ´Ï´Ù. |
PageAttributes.MediaType |
getMedia ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
PageAttributes.OrientationRequestedType |
getOrientationRequested ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö ¹æÇâÀ» µ¹·ÁÁÝ´Ï´Ù. |
PageAttributes.OriginType |
getOrigin ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ (0, 0) Ç¥Çö¸¦ ¹°¸® ÆäÀÌÁöÀÇ Á»󱸼®À¸·Î ÇÏ´ÂÁö Àμ⠹üÀ§ÀÇ Á»󱸼®À¸·Î Çұ µ¹·ÁÁÝ´Ï´Ù. |
int[] |
getPrinterResolution ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ÇØ»óµµ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
PageAttributes.PrintQualityType |
getPrintQuality ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ǰÁúÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
hashCode ()
ÀÌ PageAttributes ÀÇ ÇØ½Ã ÄÚµåÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
set (PageAttributes obj)
PageAttributes ÀÇ ¸ðµç ¼Ó¼ºÀ» obj ÀÇ ¼Ó¼º°ú °°Àº °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setColor (PageAttributes.ColorType color)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁö¸¦ Ä®¶ó·Î Ç¥Çö ÇÒ±î Èæ¹éÀ¸·Î Ç¥Çö ÇÏ´ÂÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setMedia (PageAttributes.MediaType media)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö »çÀÌÁ ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setMediaToDefault ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö »çÀÌÁ µðÆúÆ® ·ÎÄÉÀÏÀÇ µðÆúÆ® »çÀÌÁî·Î ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setOrientationRequested (int orientationRequested)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇØ, ÆäÀÌÁöÀÇ ¿ëÁö ¹æÇâÀ» ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setOrientationRequested (PageAttributes.OrientationRequestedType orientationRequested)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö ¹æÇâÀ» ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setOrientationRequestedToDefault ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ¿ëÁö ¹æÇâÀ» µðÆúÆ®·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setOrigin (PageAttributes.OriginType origin)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ (0, 0) Ç¥Çö¸¦ ¹°¸® ÆäÀÌÁöÀÇ Á»󱸼®À¸·Î ÇÏ´ÂÁö Àμ⠹üÀ§ÀÇ Á»󱸼®À¸·Î ÇÏ´ÂÁö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setPrinterResolution (int printerResolution)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ÀüÈÄ º¸³» ¶Ç´Â ¼ÛÀÇ Àμâ ÇØ»óµµ¸¦ 1 ÀÎÄ¡ ´çÀÇ ´å¼ö·Î ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setPrinterResolution (int[] printerResolution)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ÇØ»óµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setPrinterResolutionToDefault ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ ÇÁ¸°ÅÍ ÇØ»óµµ¸¦ µðÆúÆ®·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setPrintQuality (int printQuality)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ǰÁúÀ» ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setPrintQuality (PageAttributes.PrintQualityType printQuality)
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ǰÁúÀ» ÁöÁ¤ÇÕ´Ï´Ù. |
void |
setPrintQualityToDefault ()
ÀÌ·¯ÇÑ ¼Ó¼ºÀ» »ç¿ëÇÏ´Â ÆäÀÌÁöÀÇ Àμâ ǰÁúÀ» µðÆúÆ®·Î ¼³Á¤ÇÕ´Ï´Ù. |
String |
toString ()
ÀÌ PageAttributes ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
finalize , getClass , notify , notifyAll , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public PageAttributes()
public PageAttributes(PageAttributes obj)
obj
- Ä«ÇÇ ´ë»óÀÇ PageAttributespublic PageAttributes(PageAttributes.ColorType color, PageAttributes.MediaType media, PageAttributes.OrientationRequestedType orientationRequested, PageAttributes.OriginType origin, PageAttributes.PrintQualityType printQuality, int[] printerResolution)
color
- ColorType.COLOR ¶Ç´Â ColorType.MONOCHROMEmedia
- MediaType Ŭ·¡½ºÀÇ ÇϳªÀÇ Á¤¼ö ÇʵåorientationRequested
- OrientationRequestedType.PORTRAIT ¶Ç´Â OrientationRequestedType.LANDSCAPEorigin
- OriginType.PHYSICAL ¶Ç´Â OriginType.PRINTABLEprintQuality
- PrintQualityType.DRAFT, PrintQualityType.NORMAL, ¶Ç´Â PrintQualityType.HIGHprinterResolution
- 3 ¿ä¼ÒÀÇ Á¤¼öÇü ¹è¿. ÃÖÃÊÀÇ ¿ä¼Ò¿Í 2 ¹øÂ°ÀÇ ¿ä¼Ò´Â 0 º¸´Ù Å« °ª, 3 ¹øÂ°ÀÇ ¿ä¼Ò´Â 3
¶Ç´Â 4
°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
IllegalArgumentException
- »ó±âÀÇ Á¶°ÇÀÇ 1 °³ ÀÌ»óÀ¸·Î À§¹ÝÇßÀ» °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
public Object clone()
Object
³»ÀÇ clone
Cloneable
public void set(PageAttributes obj)
obj
- Ä«ÇÇ ´ë»óÀÇ PageAttributespublic PageAttributes.ColorType getColor()
public void setColor(PageAttributes.ColorType color)
color
- ColorType.COLOR ¶Ç´Â ColorType.MONOCHROME
IllegalArgumentException
- color °¡ null ÀÇ °æ¿ìpublic PageAttributes.MediaType getMedia()
public void setMedia(PageAttributes.MediaType media)
media
- MediaType Ŭ·¡½ºÀÇ ÇϳªÀÇ Á¤¼ö Çʵå
IllegalArgumentException
- media °¡ null ÀÇ °æ¿ìpublic void setMediaToDefault()
public PageAttributes.OrientationRequestedType getOrientationRequested()
public void setOrientationRequested(PageAttributes.OrientationRequestedType orientationRequested)
orientationRequested
- OrientationRequestedType.PORTRAIT ¶Ç´Â OrientationRequestedType.LANDSCAPE
IllegalArgumentException
- orientationRequested °¡ null ÀÇ °æ¿ìpublic void setOrientationRequested(int orientationRequested)
3
À» ÁöÁ¤Çϸé(ÀÚ) ¼¼·Î ¹æÇâ,4
¸¦ ÁöÁ¤Çϸé(ÀÚ) Ⱦ¹æÇâÀÌ µË´Ï´Ù. ´Ù¸¥ °ªÀ» ÁöÁ¤Çϸé(ÀÚ) IllegalArgumentException °¡ ½½·Î¿ì µË´Ï´Ù. ÇÁ·ÎÆÛƼ·Î ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ì´Â setOrientationRequested(OrientationRequestedType.PORTRAIT)°¡ ºÒ·Á °©´Ï´Ù.
orientationRequested
- 3
¶Ç´Â 4
IllegalArgumentException
- orientationRequested °¡ 3
¶Ç´Â 4
°¡ ¾Æ´Ñ °æ¿ìpublic void setOrientationRequestedToDefault()
public PageAttributes.OriginType getOrigin()
public void setOrigin(PageAttributes.OriginType origin)
origin
- OriginType.PHYSICAL ¶Ç´Â OriginType.PRINTABLE
IllegalArgumentException
- origin °¡ null ÀÇ °æ¿ìpublic PageAttributes.PrintQualityType getPrintQuality()
public void setPrintQuality(PageAttributes.PrintQualityType printQuality)
printQuality
- PrintQualityType.DRAFT, PrintQualityType.NORMAL, ¶Ç´Â PrintQualityType.HIGH
IllegalArgumentException
- printQuality °¡ null ÀÇ °æ¿ìpublic void setPrintQuality(int printQuality)
3
À» ÁöÁ¤Çϸé(ÀÚ) µå·¡ÇÁÆ®,4
¸¦ ÁöÁ¤Çϸé(ÀÚ) Åë»ó,5
¸¦ ÁöÁ¤Çϸé(ÀÚ) °íǰÁúÀÌ µË´Ï´Ù. ´Ù¸¥ °ªÀ» ÁöÁ¤Çϸé(ÀÚ) IllegalArgumentException °¡ ½½·Î¿ì µË´Ï´Ù. ÇÁ·ÎÆÛƼ·Î ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ì´Â setPrintQuality(PrintQualityType.NORMAL)°¡ ºÒ·Á °©´Ï´Ù.
printQuality
- 3
, 43
,4
¶Ç´Â 5
- ¿¹¿Ü:
IllegalArgumentException
- printQuality °¡ 3
,4
¶Ç´Â 5
°¡ ¾Æ´Ñ °æ¿ì
public void setPrintQualityToDefault()
public int[] getPrinterResolution()
3
Àº 1 ÀÎÄ¡ ´çÀÇ ´å¼ö,4
´Â 1 ¼¾Ä¡ ´çÀÇ ´å¼ö°¡ µË´Ï´Ù.
3
¶Ç´Â 4
°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. public void setPrinterResolution(int[] printerResolution)
3
Àº 1 ÀÎÄ¡ ´çÀÇ ´å¼ö,4
´Â 1 ¼¾Ä¡ ´çÀÇ ´å¼ö°¡ µË´Ï´Ù. 1.1 Àμ⠱¸Çö (Toolkit.getPrintJob)¿¡¼´Â º¸³»´Â ¹æ¹ýÇâÀÇ ÇØ»óµµ¿Í ÀüÈļÛÀÇ ÇØ»óµµ´Â °°Àº Çʿ䰡 ÀÖ½À´Ï´Ù. ÇÁ·ÎÆÛƼ·Î ÁöÁ¤ÇÏÁö ¾Ê´Â °æ¿ì´Â setPrinterResolution(72)°¡ ºÒ·Á °©´Ï´Ù.
printerResolution
- 3 ¿ä¼ÒÀÇ Á¤¼öÇü ¹è¿. ÃÖÃÊÀÇ ¿ä¼Ò¿Í 2 ¹øÂ°ÀÇ ¿ä¼Ò´Â 0 º¸´Ù Å« °ª, 3 ¹øÂ°ÀÇ ¿ä¼Ò´Â 3
¶Ç´Â 4
°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
IllegalArgumentException
- »ó±âÀÇ Á¶°ÇÀÇ 1 °³ ÀÌ»óÀ¸·Î À§¹ÝÇßÀ» °æ¿ìpublic void setPrinterResolution(int printerResolution)
72
°¡ ÁöÁ¤µË´Ï´Ù.
printerResolution
- 0 º¸´Ù Å« Á¤¼öÄ¡
IllegalArgumentException
- printerResolution °¡ 0 ÀÌÇÏÀÇ °æ¿ìpublic void setPrinterResolutionToDefault()
public boolean equals(Object obj)
¼·ÎÀÇ ¼Ó¼ºÀÌ ¸ðµÎ °°Àº °æ¿ì¿¡¸¸, 2 °³ÀÇ PageAttributes Àº µ¿ÀÏÇØÁý´Ï´Ù. Çʵ尡 ÀÏÀÇÀÇ °°Àº ¿°Å ¿ÀºêÁ§Æ®¸¦ ÂüÁ¶Çϰí ÀÖ´Â °æ¿ì¿¡¸¸, ¿°ÅÇüÀÇ ¼Ó¼ºÀÌ µ¿ÀÏÇØÁý´Ï´Ù. Áï, º°¸íÀÇ ¹Ìµð¾î´Â ¹ÙÅÁÀ¸·Î µÇ´Â ÀÏÀÇÀÇ ¹Ìµð¾î¿Í °°´Ù¶ó°í ¸»ÇÏ´Â °ÍÀÔ´Ï´Ù. º¸³» ÇØ»óµµ, ÀüÈÄ º¸³» ÇØ»óµµ ¹× ´ÜÀ§°¡ °°Àº °æ¿ì¿¡¸¸, ÇÁ¸°ÅÍÀÇ ÇØ»óµµ°¡ µ¿ÀÏÇØÁý´Ï´Ù.
Object
³»ÀÇ equals
obj
- °°ÀºÁö ¾î¶²Áö°¡ ÆÇÁ¤µÇ´Â ¿ÀºêÁ§Æ®
Object.hashCode()
,
Hashtable
public int hashCode()
Object
³»ÀÇ hashCode
Object.equals(java.lang.Object)
,
Hashtable
public String toString()
Object
³»ÀÇ toString
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.