lipsync/trunk/bocoree/XmlPoint.cs
kbinani 9de5d2e51e [trunk] (ry
git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@18 b1f601f4-4f45-0410-8980-aecacb008692
2010-03-17 03:14:08 +00:00

110 lines
1.8 KiB
C#

/*
* XmlPoint.cs
* Copyright (c) 2009 kbinani
*
* This file is part of bocoree.
*
* bocoree is free software; you can redistribute it and/or
* modify it under the terms of the BSD License.
*
* bocoree is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#if JAVA
package org.kbinani;
import java.awt.*;
#else
using System.Xml.Serialization;
using bocoree.java.awt;
namespace bocoree
{
#endif
public class XmlPoint
{
#if !JAVA
[XmlIgnore]
#endif
public int x;
#if !JAVA
[XmlIgnore]
#endif
public int y;
public XmlPoint()
{
}
public XmlPoint( int x_, int y_ )
{
x = x_;
y = y_;
}
public XmlPoint( Point p )
{
x = p.x;
y = p.y;
}
public Point toPoint()
{
return new Point( x, y );
}
public int getX()
{
return x;
}
public void setX( int value )
{
x = value;
}
public int getY()
{
return y;
}
public void setY( int value )
{
y = value;
}
#if !JAVA
public int X
{
get
{
return getX();
}
set
{
setX( value );
}
}
public int Y
{
get
{
return getY();
}
set
{
setY( value );
}
}
#endif
}
#if !JAVA
}
#endif