JavaTM 2 Platform
Standard Ed. 5.0

java.awt.image.renderable
ÀÎÅÍÆäÀ̽º ContextualRenderedImageFactory

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
RenderedImageFactory

public interface ContextualRenderedImageFactory
extends RenderedImageFactory

ContextualRenderedImageFactory´Â RenderableImageOp ÀνºÅϽº°£¿¡ ´Ù¸¥ ±â´ÉÀ» À§ÇÑ ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ RenderableImage¿¡ ´ëÇÑ ´Ù¾çÇÑ Á¶ÀÛÀº º¹¼öÀÇ ContextualRenderedImageFactory ÀνºÅϽº¸¦ »ç¿ëÇØ RenderedImageOp µîÀÇ ´ÜÀÏÀÇ Å¬·¡½º¿¡ ÀÇÇØ ½ÇÇàÇÒ ¼ö ÀÖ°Ô µË´Ï´Ù. ContextualRenderedImageFactory´Â ¡¸CRIF¡¹¶ó°í »ý·«ÇØÁý´Ï´Ù.

·»´õ¸µ¿¡ Á¸ÇÏÁö ¾Ê´Â üÀÎÀ¸·Î »ç¿ëµÇ´Â ¸ðµç Á¶ÀÛÀº ContextualRenderedImageFactory¸¦ ±¸ÇöÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÀÌ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϴ Ŭ·¡½º´Â Àμö ¾øÀ½ÀÇ »ý¼ºÀÚ¸¦ Á¦°øÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.


¸Þ¼­µå °³¿ä
 RenderedImage create (RenderContext  renderContext, ParameterBlock  paramBlock)
          RenderContext¿Í Á¶ÀÛÀÇ ¼Ò½º¿Í ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock¸¦ ÁöÁ¤ÇØ, ·»´õ¸µ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 Rectangle2D getBounds2D (ParameterBlock  paramBlock)
          ·»´õ¸µ¿¡ Á¸ÇÏÁö ¾Ê´Â ½ºÆäÀ̽º¿¡¼­ÀÇ, ÁöÁ¤µÈ ¼Ò½º¼¼Æ®¿¡ ´ëÇؼ­ ½ÇÇàµÇ´Â Á¶ÀÛÀÇ Ãâ·ÂÀ» À§ÇÑ ¹Ù¿îµù¹Ú½º¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Object getProperty (ParameterBlock  paramBlock, String  name)
          À̸§ ÆĶó¹ÌÅÍ·Î ÁöÁ¤µÈ ÇÁ·ÎÆÛƼÀÇ ´ëÀÀÇÏ´Â ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 String [] getPropertyNames ()
          getProperty¿¡ ÀÇÇØ ÀνĵǴ À̸§ÀÇ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean isDynamic ()
          °°Àº Àμö¸¦ »ç¿ëÇØ ÇàÇÑ ¿¬¼ÓÇÑ ·»´õ¸µ (Áï, create(RenderContext, ParameterBlock)ÀÇ È£Ãâ)ÀÇ °á°ú°¡ ´Ù¸¥ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 RenderContext mapRenderContext (int i, RenderContext  renderContext, ParameterBlock  paramBlock, RenderableImage  image)
          Á¶ÀÛÀÇ Ãâ·Â RenderContext¸¦, °¢ Á¶ÀÛÀÇ ¼Ò½ºÀÇ RenderContext¿¡ ¸ÅÇÎ ÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º java.awt.image.renderable. RenderedImageFactory ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
create
 

¸Þ¼­µåÀÇ »ó¼¼

mapRenderContext

RenderContext  mapRenderContext(int i,
                               RenderContext  renderContext,
                               ParameterBlock  paramBlock,
                               RenderableImage  image)
Á¶ÀÛÀÇ Ãâ·Â RenderContext¸¦, °¢ Á¶ÀÛÀÇ ¼Ò½ºÀÇ RenderContext¿¡ ¸ÅÇÎ ÇÕ´Ï´Ù. ÀÌ°ÍÀº ¾ÆÇɸ¿Çΰú °°Àº ÀüüÀûÀ¸·Î ¶Ç´Â ºÎºÐÀûÀ¸·Î ´ÜÁö RenderContext ¿¡¼­ÀÇ º¯°æÀ¸·Î¼­ Ç¥ÇöÇÒ ¼ö ÀÖ´Â Á¶ÀÛÀ̳ª, ó¸® ÀÛ¾÷À̳ª ´ë¿ªÆøÀÇ Àý¾àÀ» À§Çؼ­ ¼Ò½º¸¦ ³·Àº È­Áú·Î ·»´õ¸µ ÇÏ·Á°í ÇÏ´Â Á¶ÀÛÀÇ °æ¿ì¿¡ Æí¸®ÇÕ´Ï´Ù. ¿¹¸¦ µé¾î ÇÏ»çµîÀÇ Á¶ÀÛ¿¡¼­´Â ÀÌ µµ±¸¸¦ »ç¿ëÇØ, ÇÊ¿äÀÌ»óÀ¸·Î °íÈ­ÁúÀÇ ¼Ò½º¸¦ ÃëµæÇÏÁö ¾Ê°Ô ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
i - ¼Ò½º À̹ÌÁöÀÇ À妽º
renderContext - Á¶ÀÛ¿¡ Àû¿ëµÇ´Â RenderContext
paramBlock - Á¶ÀÛÀÇ ¼Ò½º ¹× ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock
image - ·»´õ¸µ µÇ´Â RenderableImage
¹Ýȯ°ª:
ÁöÁ¤µÈ ParameterBlock¿¡ Æ÷ÇԵǰí ÀÖ´Â ÆĶó¹ÌÅÍ Vector ÁöÁ¤µÈ À妽º¿¡ ÀÖ´Â ¼Ò½º RenderContext

create

RenderedImage  create(RenderContext  renderContext,
                     ParameterBlock  paramBlock)
RenderContext¿Í Á¶ÀÛÀÇ ¼Ò½º¿Í ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock¸¦ ÁöÁ¤ÇØ, ·»´õ¸µ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. Ãâ·ÂÀº RenderedImage ·Î RenderContext¸¦ ±âº»À¸·ÎÀÇÇØ À̹ÌÁö ÇÁ·¹Àο¡¼­ÀÇ Å©±â¿Í ¹èÄ¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ·»´õ¸µ¿¡ Á¸ÇÏÁö ¾Ê´Â Á¶ÀÛÀÌ Æ¯Á¤ÀÇ RenderContext¿¡ ÀûÇÕÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â ¡¸´É·Â¡¹À» ÁÝ´Ï´Ù.

ÆĶó¹ÌÅÍ:
renderContext - ·»´õ¸µ¸¦ ÁöÁ¤ÇÏ´Â RenderContext
paramBlock - Á¶ÀÛÀÇ ¼Ò½º ¹× ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock
¹Ýȯ°ª:
ÁöÁ¤µÈ ParameterBlock ¼Ò½º ¹× ÆĶó¹ÌÅÍ¿Í ÁöÁ¤µÈ RenderContext ·»´õ¸µ ¸í·É¿¡ ÇÑ RenderedImage

getBounds2D

Rectangle2D  getBounds2D(ParameterBlock  paramBlock)
·»´õ¸µ¿¡ Á¸ÇÏÁö ¾Ê´Â ½ºÆäÀ̽º¿¡¼­ÀÇ, ÁöÁ¤µÈ ¼Ò½º¼¼Æ®¿¡ ´ëÇؼ­ ½ÇÇàµÇ´Â Á¶ÀÛÀÇ Ãâ·ÂÀ» À§ÇÑ ¹Ù¿îµù¹Ú½º¸¦ ¸®ÅÏÇÕ´Ï´Ù. °æ°è´Â Rectangle2D, Áï ¾çÃàÀ¸·Î µû¸¥ 2 ¿·À» °¡Á®, Äڳʸ¦ ºÎµ¿ ¼Ò¼öÁ¡ ÁÂÇ¥·Î °¡Áö´Â ±¸ÇüÀ¸·Î¼­ ¸®Åϵ˴ϴ٠.

ÆĶó¹ÌÅÍ:
paramBlock - Á¶ÀÛÀÇ ¼Ò½º ¹× ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock
¹Ýȯ°ª:
Ãâ·ÂÀÇ ·»´õ¸µ¿¡ Á¸ÇÏÁö ¾Ê´Â ¹Ù¿îµù¹Ú½º¸¦ ÁöÁ¤ÇÏ´Â Rectangle2D

getProperty

Object  getProperty(ParameterBlock  paramBlock,
                   String  name)
À̸§ ÆĶó¹ÌÅÍ·Î ÁöÁ¤µÈ ÇÁ·ÎÆÛƼÀÇ ´ëÀÀÇÏ´Â ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ±× ÇÁ·ÎÆÛƼ¸¦ ÁöÁ¤ÇÏ´Â ¼Ò½º°¡ ´Ù¼ö ÀÖÀ» ¶§´Â ÇÁ·ÎÆÛƼÀÇ ¾î´À ÀνºÅϽº¸¦ µ¹·ÁÁÖ´ÂÁö¸¦ ÁöÁ¤ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
paramBlock - Á¶ÀÛÀÇ ¼Ò½º ¹× ÆĶó¹ÌÅÍ°¡ Æ÷ÇԵǰí ÀÖ´Â ParameterBlock
name - ¸ñÀûÀÇ ÇÁ·ÎÆÛƼ¸¦ ÁöÁ¤ÇÏ´Â String
¹Ýȯ°ª:
¿ä±¸µÈ ÇÁ·ÎÆÛƼÀÇ °ª¿¡ÀÇ °´Ã¼ ÂüÁ¶

getPropertyNames

String [] getPropertyNames()
getProperty¿¡ ÀÇÇØ ÀνĵǴ À̸§ÀÇ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÇÁ·ÎÆÛƼ¸íÀÇ ¸®½ºÆ®

isDynamic

boolean isDynamic()
°°Àº Àμö¸¦ »ç¿ëÇØ ÇàÇÑ ¿¬¼ÓÇÑ ·»´õ¸µ (Áï, create(RenderContext, ParameterBlock)ÀÇ È£Ãâ)ÀÇ °á°ú°¡ ´Ù¸¥ °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ±âÁ¸ÀÇ ·»´õ¸µ°¡ ij½¬¿¡ Æ÷ÇÔ ¹× Àç»ç¿ëµÉÁö ¾î¶³Áö¸¦ ÆÇÁ¤Çϱâ À§Çؼ­ »ç¿ëµË´Ï´Ù. true°¡ µ¹·ÁÁÖ°íÁö¸é ¹®Á¦´Â ¾ø½À´Ï´Ù.

¹Ýȯ°ª:
°°Àº Àμö¸¦ »ç¿ëÇØ ÇàÇÑ ¿¬¼ÓÇÑ ·»´õ¸µÀÇ °á°ú°¡ ´Ù¸¥ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.