org.gnu.gdk

Class Span

public class Span extends MemStruct

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.gdk.Span.

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()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the width of the Span.

getX

public int getX()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the x coordinate.

getY

public int getY()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Retrieve the y coordinate.

setWidth

public void setWidth(int width)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Set the width of the Span.

Parameters: width

setX

public void setX(int x)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Set the x coordinate.

Parameters: x

setY

public void setY(int y)

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Set the y coordinate.

Parameters: y