示例#1
0
  public void paintComponent(Graphics g) {
    super.paintComponent(g);
    int width = frame.getWidth();
    int height = frame.getHeight();
    Point p = new Point(startPoistion.getX(), startPoistion.getY());

    glyph.draw(g, p, width, height);
  }
示例#2
0
 public TextPanel(Glyph g, ControllerInterface controller) {
   this.glyph = g;
   this.controller = controller;
   glyph.registerObservers((Observer) this);
   startPoistion = new Point(20, 50);
 }