org.freehep.graphicsio
Class PolylinePathConstructor
java.lang.Object
org.freehep.graphicsio.AbstractPathConstructor
org.freehep.graphicsio.QuadToCubicPathConstructor
org.freehep.graphicsio.CubicToLinePathConstructor
org.freehep.graphicsio.PolylinePathConstructor
- All Implemented Interfaces:
- PathConstructor
- Direct Known Subclasses:
- CGMPathConstructor
- public abstract class PolylinePathConstructor
- extends CubicToLinePathConstructor
- Version:
- $Id: PolylinePathConstructor.java,v 1.3 2005/01/01 07:34:45 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- PolylinePathConstructor.java
Field Summary |
protected boolean |
closed
|
protected boolean |
fill
|
Method Summary |
void |
closePath(double x0,
double y0)
Closes the path by drawing a straight line to the last point which was
argument to move. |
void |
line(double x,
double y)
Draws a line from the current point to (x,y) and make (x,y)
the current point. |
void |
move(double x,
double y)
Makes (x,y) the current point. |
void |
writePolyline()
|
protected abstract void |
writePolyline(Vector polyline)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
closed
protected boolean closed
fill
protected boolean fill
PolylinePathConstructor
public PolylinePathConstructor(boolean fill)
PolylinePathConstructor
public PolylinePathConstructor(boolean fill,
double resolution)
move
public void move(double x,
double y)
throws IOException
- Description copied from interface:
PathConstructor
- Makes (x,y) the current point.
- Specified by:
move
in interface PathConstructor
- Overrides:
move
in class QuadToCubicPathConstructor
- Throws:
IOException
line
public void line(double x,
double y)
throws IOException
- Description copied from interface:
PathConstructor
- Draws a line from the current point to (x,y) and make (x,y)
the current point.
- Specified by:
line
in interface PathConstructor
- Overrides:
line
in class QuadToCubicPathConstructor
- Throws:
IOException
closePath
public void closePath(double x0,
double y0)
throws IOException
- Description copied from interface:
PathConstructor
- Closes the path by drawing a straight line to the last point which was
argument to move.
- Specified by:
closePath
in interface PathConstructor
- Overrides:
closePath
in class QuadToCubicPathConstructor
- Throws:
IOException
writePolyline
public void writePolyline()
throws IOException
- Throws:
IOException
writePolyline
protected abstract void writePolyline(Vector polyline)
throws IOException
- Throws:
IOException
Copyright © 2000-2004 FreeHEP, All Rights Reserved.