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 float
getHeight()
Returns the canvas height.float
getMaxX()
Returns the x coordinate of the bottom right position.float
getMaxY()
Returns the y coordinate of the bottom right position.float
getWidth()
Returns the canvas width.float
getX()
Returns the x coordinate of the top left position.float
getY()
Returns the y coordinate of the top left position.
-
-
-
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
-
-