Package org.gephi.preview.api
Class CanvasSize
- java.lang.Object
-
- org.gephi.preview.api.CanvasSize
-
public class CanvasSize extends Object
A canvas size, with a top left coordinate, a width and an heigth.- Author:
- Jeremy Subtil
-
-
Constructor Summary
Constructors Constructor Description CanvasSize()Constructs the defaultCanvasSize, with both width and height equal to zero.CanvasSize(float x, float y, float width, float height)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetHeight()Returns the canvas height.floatgetMaxX()Returns the x coordinate of the bottom right position.floatgetMaxY()Returns the y coordinate of the bottom right position.floatgetWidth()Returns the canvas width.floatgetX()Returns the x coordinate of the top left position.floatgetY()Returns the y coordinate of the top left position.StringtoString()
-
-
-
Constructor Detail
-
CanvasSize
public CanvasSize(float x, float y, float width, float height)Constructor.- Parameters:
x- The x coordinate of the top left positiony- The y coordinate of the top left positionwidth- The canvas widthheight- The canvas height
-
CanvasSize
public CanvasSize()
Constructs the defaultCanvasSize, with both width and height equal to zero.
-
-
Method Detail
-
getX
public float getX()
Returns the x coordinate of the top left position.- Returns:
- the x coordinate of the top left position
-
getY
public float getY()
Returns the y coordinate of the top left position.- Returns:
- the y coordinate of the top left position
-
getWidth
public float getWidth()
Returns the canvas width.- Returns:
- the canvas width
-
getHeight
public float getHeight()
Returns the canvas height.- Returns:
- the canvas height
-
getMaxX
public float getMaxX()
Returns the x coordinate of the bottom right position.- Returns:
- the x coordinate of the bottom right position
-
getMaxY
public float getMaxY()
Returns the y coordinate of the bottom right position.- Returns:
- the y coordinate of the bottom right position
-
-