|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.PageAttributes
public final class PageAttributes
ÀμâÇÑ ÆäÀÌÁöÀÇ Ãâ·ÂÀ» Á¦¾îÇÏ´Â ¼Ó¼º ¼¼Æ®ÀÔ´Ï´Ù.
ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â »ö »óÅÂ, ¿ëÁö »çÀÌÁî (¹Ìµð¾îÀÇ Á¾·ù), ¿ëÁö ¹æÇâ, ³í¸®ÀûÀÎ ¿øÁ¡, Àμâ ǰÁú ¹× ÀνºÅϽº¸¦ »ç¿ëÇÏ´Â °¢ ÆäÀÌÁöÀÇ ÇØ»óµµ¸¦ Á¦¾îÇÕ´Ï´Ù. ¼Ó¼º¸íÀº Internet Printing Protocol (IPP) 1.1¿¡ ÁذÅÇØ, ¼Ó¼º°ª´Â ÀϺΰ¡ ÁذÅÇϰí ÀÖ½À´Ï´Ù.
³»ºÎ Ŭ·¡½ºÇüÀ» ÃëÇÏ´Â ¸Þ¼µå¸¦ »ç¿ëÇÏ·Á¸é, ±× ³»ºÎ Ŭ·¡½ºÀÇ Á¤¼ö Çʵ忡 ´ëÇÑ ÂüÁ¶¸¦ °Ç³×ÁÝ´Ï´Ù. Ŭ¶óÀÌ¾ðÆ® ÄÚµå´Â ÀÌ Å¬·¡½º°¡ public »ý¼ºÀÚ¸¦ °¡ÁöÁö ¾Ê±â ¶§¹®¿¡ ³»ºÎ Ŭ·¡½ºÇüÀÇ »õ·Î¿î ÀνºÅϽº¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø½À´Ï´Ù. »ö »óŸ¦ Èæ¹éÀ¸·Î ¼³Á¤ÇÏ·Á¸é, ´ÙÀ½ÀÇ Äڵ带 »ç¿ëÇÕ´Ï´Ù.
import java.awt.PageAttributes; public class MonochromeExample { public void setMonochrome(PageAttributes pageAttributes) { pageAttributes.setColor(PageAttributes.ColorType.MONOCHROME); } }
attributeName
¼³Á¤°ªÀ» Áö¿øÇÏ´Â ¸ðµç IPP ¼Ó¼ºÀº ´ëÀÀÇÏ´Â setattributeNameToDefault
¸Þ¼µå¸¦ °¡Áö°í ÀÖ½À´Ï´Ù. ±âÁ¤Ä¡ÀÇ Çʵå´Â Á¦°øµÇÁö ¾Ê½À´Ï´Ù.
Áßø(Nested) Ŭ·¡½º °³¿ä | |
---|---|
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 ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º 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
, 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.