cz.cuni.jagrlib.iface
Interface LineRender

All Superinterfaces:
Property, Render
All Known Subinterfaces:
LineRenderAnti
All Known Implementing Classes:
LineAntialias, LineAntialiasSimple, LineBresenham, LineClipping

public interface LineRender
extends Render

Rendering interface for stroked lines.

Since:
0.01
See Also:
LineRender.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Render
LINE_CAP, LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE, LINE_JOIN, LINE_JOIN_BEVEL, LINE_JOIN_DISJOINT, LINE_JOIN_MITER, LINE_JOIN_OVERLAP, LINE_JOIN_ROUND, LINE_WIDTH, PROJECTION, RENDER_STYLE, RENDER_STYLE_FLAT, RENDER_STYLE_GOURAUD, RENDER_STYLE_LINE, RENDER_STYLE_PHONG, RENDER_STYLE_TEXTURE
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 void drawLine(double x1, double y1, double x2, double y2)
          Draws a line from [x1,y1] to [x2,y2].
 void drawLine(int x1, int y1, int x2, int y2)
          Draws a line from [x1,y1] to [x2,y2].
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

drawLine

void drawLine(int x1,
              int y1,
              int x2,
              int y2)
Draws a line from [x1,y1] to [x2,y2].

Parameters:
x1 - X coordinate of the starting pixel.
y1 - Y coordinate of the starting pixel.
x2 - X coordinate of the line end.
y2 - Y coordinate of the line end.

drawLine

void drawLine(double x1,
              double y1,
              double x2,
              double y2)
Draws a line from [x1,y1] to [x2,y2].

Parameters:
x1 - X coordinate of the starting pixel.
y1 - Y coordinate of the starting pixel.
x2 - X coordinate of the line end.
y2 - Y coordinate of the line end.