| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectimage.Image
image.Line
public class Line
Class representing a Line from (0,0) to the given (X,Y).
    new Line(30, 30, "black")
  
 
    new Line(-30, 20, "red")
  
 
    new Line(30, -20, "red")
  
 
| Constructor Summary | |
|---|---|
| Line(double x,
     double y,
     java.lang.String color)Create a Line from (0,0) to doubles (X,Y) of the given color | |
| Line(int x,
     int y,
     java.lang.String color)Create a Line from (0,0) to ints (X,Y) of the given color | |
| Line(Posn p,
     java.lang.String color)Create a Line from (0,0) to doubles (X,Y) of the given color | |
| Method Summary | |
|---|---|
|  int | height()Return the height of this Line Image | 
|  void | paint(java.awt.Graphics g,
      int xx,
      int yy)Draw this image into a Graphics | 
|  int | width()Return the width of this Line Image | 
| Methods inherited from class image.Image | 
|---|
| flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Line(double x,
            double y,
            java.lang.String color)
public Line(int x,
            int y,
            java.lang.String color)
public Line(Posn p,
            java.lang.String color)
| Method Detail | 
|---|
public void paint(java.awt.Graphics g,
                  int xx,
                  int yy)
paint in class Imagepublic int width()
width in class Imagepublic int height()
height in class Image| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||