File: DrawStringOperation.java

package info (click to toggle)
libpixie-java 1%3A0.8.4-1
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 1,000 kB
  • ctags: 2,695
  • sloc: java: 11,136; xml: 114; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * Date: Mar 9, 2003
 * Time: 2:05:21 PM
 *
 * $Id: DrawStringOperation.java,v 1.3 2004/11/21 16:29:31 taqua Exp $
 */
package org.jfree.pixie.g2recorder;

import java.awt.Graphics2D;

public class DrawStringOperation implements G2Operation
{
  private String string;
  private float x;
  private float y;

  public DrawStringOperation (final String string, final float x, final float y)
  {
    this.string = string;
    this.x = x;
    this.y = y;
  }

  public void draw (final Graphics2D g2)
  {
    g2.drawString(string, x, y);
  }
}