org.gnu.gdk

Class Span

public class Span extends MemStruct

Represents a horizontal line of pixels starting with the pixel at coordinates x,y and ending before x+width,y.
Constructor Summary
Span(int x, int y, int width)
Method Summary
intgetWidth()
Retrieve the width of the Span.
intgetX()
Retrieve the x coordinate.
intgetY()
Retrieve the y coordinate.
voidsetWidth(int width)
Set the width of the Span.
voidsetX(int x)
Set the x coordinate.
voidsetY(int y)
Set the y coordinate.

Constructor Detail

Span

public Span(int x, int y, int width)

Method Detail

getWidth

public int getWidth()
Retrieve the width of the Span.

getX

public int getX()
Retrieve the x coordinate.

getY

public int getY()
Retrieve the y coordinate.

setWidth

public void setWidth(int width)
Set the width of the Span.

Parameters: width

setX

public void setX(int x)
Set the x coordinate.

Parameters: x

setY

public void setY(int y)
Set the y coordinate.

Parameters: y