001         package com.croftsoft.core.animation.painter;
002    
003         /*********************************************************************
004         * Abstract XYPainter implementation of (x,y) accessor/mutator ops.
005         *
006         * @version
007         *   2003-07-05
008         * @since
009         *   2002-03-05
010         * @author
011         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
012         *********************************************************************/
013    
014         public abstract class  AbstractXYPainter
015           implements XYPainter
016         //////////////////////////////////////////////////////////////////////
017         //////////////////////////////////////////////////////////////////////
018         {
019    
020         protected int  x;
021    
022         protected int  y;
023    
024         //////////////////////////////////////////////////////////////////////
025         // constructor methods
026         //////////////////////////////////////////////////////////////////////
027    
028         /*********************************************************************
029         * Main constructor.
030         *********************************************************************/
031         public  AbstractXYPainter (
032           int  x,
033           int  y )
034         //////////////////////////////////////////////////////////////////////
035         {
036           this.x = x;
037    
038           this.y = y;
039         }
040    
041         //////////////////////////////////////////////////////////////////////
042         // accessor methods
043         //////////////////////////////////////////////////////////////////////
044    
045         public int   getX  ( ) { return x;  }
046    
047         public int   getY  ( ) { return y;  }
048    
049         //////////////////////////////////////////////////////////////////////
050         // mutator methods
051         //////////////////////////////////////////////////////////////////////
052    
053         public void  setX ( int  x ) { this.x = x; }
054    
055         public void  setY ( int  y ) { this.y = y; }
056    
057         //////////////////////////////////////////////////////////////////////
058         //////////////////////////////////////////////////////////////////////
059         }