/ *   
 
   *   P R O J E C T :   N y A R T o o l k i t C S ( E x t e n s i o n ) 
 
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   *   T h e   N y A R T o o l k i t C S   i s   C #   e d i t i o n   A R T o o l K i t   c l a s s   l i b r a r y . 
 
   *   C o p y r i g h t   ( C ) 2 0 0 8 - 2 0 0 9   R y o   I i z u k a 
 
   * 
 
   *   T h i s   p r o g r a m   i s   f r e e   s o f t w a r e :   y o u   c a n   r e d i s t r i b u t e   i t   a n d / o r   m o d i f y 
 
   *   i t   u n d e r   t h e   t e r m s   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e   a s   p u b l i s h e d   b y 
 
   *   t h e   F r e e   S o f t w a r e   F o u n d a t i o n ,   e i t h e r   v e r s i o n   3   o f   t h e   L i c e n s e ,   o r 
 
   *   ( a t   y o u r   o p t i o n )   a n y   l a t e r   v e r s i o n . 
 
   *   
 
   *   T h i s   p r o g r a m   i s   d i s t r i b u t e d   i n   t h e   h o p e   t h a t   i t   w i l l   b e   u s e f u l , 
 
   *   b u t   W I T H O U T   A N Y   W A R R A N T Y ;   w i t h o u t   e v e n   t h e   i m p l i e d   w a r r a n t y   o f 
 
   *   M E R C H A N T A B I L I T Y   o r   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E .     S e e   t h e 
 
   *   G N U   G e n e r a l   P u b l i c   L i c e n s e   f o r   m o r e   d e t a i l s . 
 
   * 
 
   *   Y o u   s h o u l d   h a v e   r e c e i v e d   a   c o p y   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e 
 
   *   a l o n g   w i t h   t h i s   p r o g r a m .     I f   n o t ,   s e e   < h t t p : / / w w w . g n u . o r g / l i c e n s e s / > . 
 
   *   
 
   *   F o r   f u r t h e r   i n f o r m a t i o n   p l e a s e   c o n t a c t . 
 
   * 	 h t t p : / / n y a t l a . j p / n y a t o o l k i t / 
 
   * 	 < a i r m a i l ( a t ) e b o n y . p l a l a . o r . j p >   o r   < n y a t l a ( a t ) n y a t l a . j p > 
 
   *   
 
   * / 
 
 u s i n g   S y s t e m ; 
 
 u s i n g   S y s t e m . D i a g n o s t i c s ; 
 
 u s i n g   j p . n y a t l a . n y a r t o o l k i t . c s . c o r e ; 
 
 
 
 n a m e s p a c e   j p . n y a t l a . n y a r t o o l k i t . c s . r p f 
 
 
 
 { 
 
 / * * 
 
   *   L o w R e s o l u t i o n L a b e l i n g S a m p l e r (un0QR0000g0Y00000000P}g0SQ0S0~0Y00
 
   *   Q[k0o00A r e a D a t a I t e m n0ƖT0ca0~0Y00
 
   *   A r e a D a t a I t e m o0CQ;uPk0[Y000L a b e l i n g P}gh0CQ;uPn0`1Xn0000g0Y00
 
   * / 
 
 p u b l i c   c l a s s   L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t 
 
 { 
 
 	 / * * 
 
 	   *   000Q[L0g0M0j0D0Qt|g0o00L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t I t e m g0[W0f0O0`0U0D00
 
 	   * 
 
 	   * / 
 
 	 p u b l i c   c l a s s   I t e m   :   N y A R M a n a g e d O b j e c t 
 
 	 { 
 
 	 	 / * * 
 
 	 	   *   0y0000[an000000000g0Y00
 
 	 	   * / 
 
 	 	 p u b l i c   N y A R I n t P o i n t 2 d   e n t r y _ p o s = n e w   N y A R I n t P o i n t 2 d ( ) ; 
 
 	 	 / * * 
 
 	 	   *   0y0000[an0{V00000000c{W0_0$Pg0Y000000`1XK00{U00~0Y00
 
 	 	   * / 
 
 	 	 p u b l i c   N y A R I n t R e c t         b a s e _ a r e a     = n e w   N y A R I n t R e c t ( ) ; 
 
 	 	 / * * 
 
 	 	   *   0y0000[an0{V-N_00000000k0c{W0_0$Pg0Y000000`1XK00{U00~0Y00
 
 	 	   * / 
 
 	 	 p u b l i c   N y A R I n t P o i n t 2 d   b a s e _ a r e a _ c e n t e r = n e w   N y A R I n t P o i n t 2 d ( ) ; 
 
 	 	 / * * 
 
 	 	   *   000wb_n0[҉ݍn02 WN$P
 
 	 	   * / 
 
 	 	 p u b l i c   i n t   b a s e _ a r e a _ s q _ d i a g o n a l ; 
 
 	 	 
 
 	 	 p u b l i c   i n t   l e b e l i n g _ t h ; 
 
 	 	 
 
 	 	 p u b l i c   I t e m ( I N y A R M a n a g e d O b j e c t P o o l O p e r a t e r   i _ p o o l ) : 
 
                         b a s e ( i _ p o o l ) 
 
 	 	 { 
 
 	 	 } 
 
 	 } 	 
 
 	 / * * 
 
 	   *   A r e a n0P o o l 000
 
 	   * 
 
 	   * / 
 
 	 p r i v a t e   c l a s s   A r e a P o o l   :   N y A R M a n a g e d O b j e c t P o o l < I t e m > 
 
 	 { 
 
 	 	 p u b l i c   A r e a P o o l ( i n t   i _ l e n g t h ) 
 
 	 	 { 
 
 	 	 	 b a s e . i n i t I n s t a n c e ( i _ l e n g t h ) ; 
 
 	 	 	 r e t u r n ; 
 
 	 	 } 
 
 	 	 p r o t e c t e d   o v e r r i d e   I t e m   c r e a t e E l e m e n t ( ) 
 
 	 	 { 
 
 	 	 	 r e t u r n   n e w   I t e m ( t h i s . _ o p _ i n t e r f a c e ) ; 
 
 	 	 } 
 
 	 } 
 
 	 / * * 
 
 	   *   A r e a n0S t a c k 000
 
 	   * 
 
 	   * / 
 
 	 p r i v a t e   c l a s s   A r e a S t a c k   :   N y A R P o i n t e r S t a c k < I t e m > 
 
 	 { 
 
 	 	 p u b l i c   A r e a S t a c k ( i n t   i _ l e n g t h ) 
 
 	 	 { 
 
 	 	 	 b a s e . i n i t I n s t a n c e ( i _ l e n g t h ) ; 
 
 	 	 } 
 
 	 } 
 
 	 / * * 
 
 	   *   CQ
 
 	   * / 
 
 	 p r i v a t e   A r e a P o o l   _ p o o l ; 
 
 	 p r i v a t e   A r e a S t a c k   _ s t a c k ; 
 
 
 
 	 p u b l i c   L o w R e s o l u t i o n L a b e l i n g S a m p l e r O u t ( i n t   i _ l e n g t h ) 
 
 	 { 
 
 	 	 t h i s . _ p o o l = n e w   A r e a P o o l ( i _ l e n g t h ) ; 
 
 	 	 t h i s . _ s t a c k = n e w   A r e a S t a c k ( i _ l e n g t h ) ; 
 
 	 	 r e t u r n ; 
 
 	 } 
 
 	 / * * 
 
 	   *   S a m p l e r L0OF0peg0Y00000o08^O(uW0~0[000
 
 	   *   S a m p l e r O u t n0Q[0RgrKak0W0~0Y00
 
 	   *   @ p a r a m   i _ s o u r c e 
 
 	   * / 
 
 	 p u b l i c   v o i d   i n i t i a l i z e P a r a m s ( ) 
 
 	 { 
 
 	 	 / / Wn000n0-[
 
 	 	 
 
 	 	 I t e m [ ]   i t e m s = t h i s . _ s t a c k . g e t A r r a y ( ) ; 
 
 	 	 / / 0000Q[n0RgS
 
 	 	 f o r ( i n t   i = t h i s . _ s t a c k . g e t L e n g t h ( ) - 1 ; i > = 0 ; i - - ) { 
 
 	 	 	 i t e m s [ i ] . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	 i t e m s [ i ] = n u l l ; 
 
 	 	 } 
 
 	 	 / / 00000000
 
 	 	 t h i s . _ s t a c k . c l e a r ( ) ; 
 
 	 } 
 
 	 p u b l i c   I t e m   p r e P u s h ( ) 
 
 	 { 
 
 	 	 I t e m   r e s u l t = t h i s . _ p o o l . n e w O b j e c t ( ) ; 
 
 	 	 i f ( r e s u l t = = n u l l ) { 
 
 	 	 	 r e t u r n   n u l l ; 
 
 	 	 } 
 
 	 	 i f ( t h i s . _ s t a c k . p u s h ( r e s u l t ) = = n u l l ) { 
 
 	 	 	 r e s u l t . r e l e a s e O b j e c t ( ) ; 
 
 	 	 	 r e t u r n   n u l l ; 
 
 	 	 } 
 
 	 	 r e t u r n   r e s u l t ; 
 
 	 	 
 
 	 } 
 
 	 / * * 
 
 	   *   iQW0_0000000n0MR0ԏW0~0Y00
 
 	   *   @ r e t u r n 
 
 	   * / 
 
 	 p u b l i c   I t e m [ ]   g e t A r r a y ( ) 
 
 	 { 
 
 	 	 r e t u r n   t h i s . _ s t a c k . g e t A r r a y ( ) ; 
 
 	 } 
 
 	 / * * 
 
 	   *   iQW0_0000000n0}pe0ԏW0~0Y00
 
 	   *   @ r e t u r n 
 
 	   * / 
 
 	 p u b l i c   i n t   g e t L e n g t h ( ) 
 
 	 { 
 
 	 	 r e t u r n   t h i s . _ s t a c k . g e t L e n g t h ( ) ; 
 
 	 } 
 
 } 
 
 } 