001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package armyc2.c2sd.graphics2d; 006import armyc2.c2sd.renderer.utilities.Color; 007/** 008 * 009 * @author Michael Deutch 010 */ 011public class Graphics2D { 012 private Font _font=null; 013 private FontMetrics _fontMetrics=null; 014 private FontRenderContext _fontRenderContext=null; 015 public Graphics2D() 016 { 017 _font=new Font("arial",10,10); 018 _fontMetrics=new FontMetrics(_font); 019 } 020 public void setFont(Font value) 021 { 022 _font=value; 023 _fontMetrics=new FontMetrics(_font); 024 } 025 public Font getFont() 026 { 027 return null; 028 } 029 public void setFontMetrics(FontMetrics value) 030 { 031 _fontMetrics=value; 032 } 033 public FontMetrics getFontMetrics() 034 { 035 return _fontMetrics; 036 } 037 public void setColor(Color color) 038 { 039 //return; 040 } 041 public void setBackground(Color color) 042 { 043 //return; 044 } 045 public void setTransform(AffineTransform id) 046 { 047 //return; 048 } 049 public AffineTransform getTransform() 050 { 051 return null; 052 } 053 public void setStroke(BasicStroke stroke) 054 { 055 //return; 056 } 057 public void drawLine(double x1, double y1, double x2, double y2 ) 058 { 059 //return; 060 } 061 public void dispose() 062 { 063 //return; 064 } 065 public void rotate(double theta, double x, double y) 066 { 067 //return; 068 } 069 public void clearRect(double x, double y, double width, double height) 070 { 071 //return; 072 } 073 public void drawString(String s, double x, double y) 074 { 075 //return; 076 } 077 public FontRenderContext getFontRenderContext() 078 { 079 return _fontRenderContext; 080 } 081}