Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Layout
org.gnu.gnome.Canvas
public class Canvas
extends Layout
Constructor Summary | |
| |
| |
|
Method Summary | |
static Canvas |
|
boolean | |
Color |
|
long |
|
CanvasItem |
|
RgbDither |
|
CanvasItem |
|
CanvasItem |
|
CanvasItem |
|
double |
|
CanvasGroup |
|
double |
|
double |
|
double |
|
double |
|
double |
|
double |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
double |
|
double |
|
double |
|
double |
|
public Canvas()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Construct a new Canvas.
public Canvas(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Constructs a new Canvas object form a native resource.
- Parameters:
handle
- The handle to the native resource.
public Canvas(boolean useAntialiased)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Constructs a new Canvas.
public static Canvas getCanvas(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public boolean getCenterScrollRegion()
public Color getColor(String spec)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Takes a string specification for a color and allocates it into the specified GdkColor.
- Parameters:
spec
- The color to allocate.
public long getColorPixel(int rgba)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Allocates a color from the RGB value passed into this function.
- Parameters:
rgba
- The RGB value.
public CanvasItem getCurrentCanvasItem()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The item containing the mouse pointer, or NULL if none.
public RgbDither getDither()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns the dither mode of an antialiased canvas. Only applicable to antialiased canvases - ignored by non-antialiased convases.
public CanvasItem getFocusedCanvasItem()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The currently focused item, or NULL if none.
public CanvasItem getGrabbedCanvasItem()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The item that holds a pointer grab, or NULL if none.
public CanvasItem getItemAt(double x, double y)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns the item that is at the specified position in world coordinates, or NULL if no item is there.
- Parameters:
x
- The horizontal coordinate.y
- The vertical coordinate.
public double getPixelsPerUnit()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Scaling factor to be used for display.
public CanvasGroup getRoot()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns the root canvas item group of the canvas
public double getScrollOffsetX()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns the horizontal scroll offset of the canvas in canvas pixel coordinates.
- Returns:
- The scroll offset x coordinate.
public double getScrollOffsetY()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns the vertical scroll offset of the canvas in canvas pixel coordinates.
- Returns:
- The scroll offset y coordinate.
public double getScrollX1()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The x1 coordinate of the scrolling region.
public double getScrollX2()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The x2 coordinate of the scrolling region.
public double getScrollY1()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The y1 coordinate of the scrolling region.
public double getScrollY2()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
The y2 coordinate of the scrolling region.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void requestRedraw(int x1, int y1, int x2, int y2)
public void scrollTo(int cx, int cy)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Scrolls the canvas to the specified offsets, given in canvas pixel coordinates.
- Parameters:
cx
- Horizontal coordinate.cy
- Vertical coordinate.
public void setCenterScrollRegion(boolean center)
public void setDither(RgbDither dither)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Controls the dithering used when the canvas renders. Only applicable to antialiased canvases - ignored by non-antialiased canvases.
public void setPixelsPerUnit(double n)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Sets the number of pixels that correspond to one unit in world coordinates.
- Parameters:
n
- The number of pixels
public void setScrollRegion(double x1, double y1, double x2, double y2)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Convenience method to set all 4 coordinates of the scroll region at once.
- Parameters:
x1
- First horizontal coordinate.y1
- First vertical coordinate.x2
- Second horizontal coordinate.y2
- Second vertical coordinate.
public void setScrollX1(double x1)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the scroll region's X1 coordinate.
- Parameters:
x1
-
public void setScrollX2(double x2)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the scroll region's X2 coordinate.
- Parameters:
x2
-
public void setScrollY1(double y1)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the scroll region's Y1 coordinate.
- Parameters:
y1
-
public void setScrollY2(double y2)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the scroll region's Y2 coordinate.
- Parameters:
y2
-
public void update()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Requests that the canvas be repainted immediately instead of during the idle loop.
public double windowToWorldX(double winx)
public double windowToWorldY(double winy)
public double worldToWindowX(double worldx)
public double worldToWindowY(double worldy)