|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.Rectangle
public final class Rectangle
Title: Rectangle class
Description:
Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
static Rectangle |
EMPTY
|
int |
height
|
int |
width
|
int |
x
|
int |
y
|
Constructor Summary | |
---|---|
Rectangle()
|
|
Rectangle(int ax,
int ay,
int awidth,
int aheight)
|
|
Rectangle(Point location,
Dimension size)
|
|
Rectangle(Rectangle r)
|
Method Summary | |
---|---|
void |
add(Rectangle r)
|
Point |
center()
Returns the center point of the rectangle |
boolean |
contains(int x2,
int y2)
|
boolean |
contains(Point pos)
|
Rectangle |
copy()
|
static Rectangle |
fromLTRB(int x,
int y,
int right,
int bottom)
|
int |
getBottom()
Gets rectangle Bottom coordinate. |
double |
getHeight()
|
int |
getLeft()
Gets rectangle Left coordinate. |
Point |
getLocation()
|
int |
getRight()
Gets rectangle Right coordinate. |
int |
getTop()
Gets rectangle Top coordinate. |
double |
getWidth()
|
void |
grow(int i,
int j)
|
void |
inflate(int horizontal,
int vertical)
|
void |
intersect(Rectangle value)
|
static void |
intersect(Rectangle r1,
Rectangle r2,
Rectangle dest)
|
boolean |
intersects(Rectangle r)
|
boolean |
isEmpty()
|
void |
offset(int w,
int h)
|
void |
setBottom(int value)
Sets rectangle Bottom coordinate. |
void |
setLeft(int value)
Sets rectangle Left coordinate. |
void |
setRight(int value)
Sets rectangle Right coordinate. |
void |
setTop(int value)
Sets rectangle Top coordinate. |
void |
union(Rectangle r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Rectangle EMPTY
public int x
public int y
public int width
public int height
Constructor Detail |
---|
public Rectangle(Point location, Dimension size)
public Rectangle()
public Rectangle(int ax, int ay, int awidth, int aheight)
public Rectangle(Rectangle r)
Method Detail |
---|
public Point center()
public Rectangle copy()
public int getLeft()
public void setLeft(int value)
public int getRight()
public void setRight(int value)
public int getTop()
public void setTop(int value)
public int getBottom()
public void setBottom(int value)
public static Rectangle fromLTRB(int x, int y, int right, int bottom)
public void inflate(int horizontal, int vertical)
public void intersect(Rectangle value)
public void offset(int w, int h)
w
- h
- public Point getLocation()
public void grow(int i, int j)
public boolean contains(int x2, int y2)
public boolean contains(Point pos)
public void add(Rectangle r)
public void union(Rectangle r)
public double getWidth()
public double getHeight()
public static void intersect(Rectangle r1, Rectangle r2, Rectangle dest)
public boolean isEmpty()
public boolean intersects(Rectangle r)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |