|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.score.SegmentPath
public class SegmentPath
A sequence of x,y coordinates with some transformations, like polygon, but
not closed JMSL Notation Project
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Constructor Summary | |
---|---|
SegmentPath(int[] xsequence,
int[] ysequence)
|
Method Summary | |
---|---|
void |
flip()
negate y coords |
int |
length()
|
static void |
main(java.lang.String[] args)
|
void |
render(java.awt.Graphics g)
|
void |
renderFilled(java.awt.Graphics g)
treat path as a polygon and draw it filled |
void |
scale(double scale)
scale each point |
java.lang.String |
toString()
|
void |
translate(int x,
int y)
add x, y to each point |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String copyright
Constructor Detail |
---|
public SegmentPath(int[] xsequence, int[] ysequence)
Method Detail |
---|
public int length()
public void flip()
public void translate(int x, int y)
public void scale(double scale)
public void render(java.awt.Graphics g)
public void renderFilled(java.awt.Graphics g)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |