cz.cuni.jagrlib.iface
Interface LineRenderAnti

All Superinterfaces:
LineRender, Property, Render
All Known Implementing Classes:
LineAntialias, LineAntialiasSimple, LineClipping

public interface LineRenderAnti
extends LineRender

Rendering interface for stroked lines with anti-aliasing.

Since:
0.24
See Also:
LineRenderAnti.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, double wid)
          Draws a line from [x1,y1] to [x2,y2].
 void drawLine(int x1, int y1, int x2, int y2, double wid)
          Draws a line from [x1,y1] to [x2,y2].
 double setWidth(double wid)
          Sets default line width in pixels.
 
Methods inherited from interface cz.cuni.jagrlib.iface.LineRender
drawLine, drawLine
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

setWidth

double setWidth(double wid)
Sets default line width in pixels.

Parameters:
wid - New line width in pixels.
Returns:
The old line width in pixels.

drawLine

void drawLine(int x1,
              int y1,
              int x2,
              int y2,
              double wid)
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.
wid - Line width in pixels.

drawLine

void drawLine(double x1,
              double y1,
              double x2,
              double y2,
              double wid)
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.
wid - Line width in pixels.