org.cresques.px
Class PxLine
java.lang.Object
org.cresques.px.PxObj
org.cresques.px.PxLine
- All Implemented Interfaces:
- Colored, Drawable, Extent.Has, IPoint
- public class PxLine
- extends PxObj
- implements IPoint, Colored
Constructor Summary |
PxLine(int x,
int y,
int x2,
int y2,
java.awt.Color color)
|
PxLine(IPoint p,
IPoint p2,
java.awt.Color color)
|
Method Summary |
java.awt.Color |
c()
|
java.awt.Color |
c(java.awt.Color color)
|
void |
draw(java.awt.Graphics2D g,
ViewPortData vp)
|
void |
setStroke(java.awt.Stroke stroke)
|
int |
x()
|
int |
x(int x)
|
int |
x2()
|
int |
x2(int x)
|
int |
y()
|
int |
y(int y)
|
int |
y2()
|
int |
y2(int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PxLine
public PxLine(IPoint p,
IPoint p2,
java.awt.Color color)
PxLine
public PxLine(int x,
int y,
int x2,
int y2,
java.awt.Color color)
x
public int x()
- Specified by:
x
in interface IPoint
x
public int x(int x)
- Specified by:
x
in interface IPoint
y
public int y()
- Specified by:
y
in interface IPoint
y
public int y(int y)
- Specified by:
y
in interface IPoint
x2
public int x2()
x2
public int x2(int x)
y2
public int y2()
y2
public int y2(int y)
c
public java.awt.Color c()
- Specified by:
c
in interface Colored
c
public java.awt.Color c(java.awt.Color color)
- Specified by:
c
in interface Colored
setStroke
public void setStroke(java.awt.Stroke stroke)
draw
public void draw(java.awt.Graphics2D g,
ViewPortData vp)
- Specified by:
draw
in interface Drawable