|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.util.Insets2D
public abstract class Insets2D
Abstract class that stores insets for all four directions.
Please use this instead of java.awt.Insets, as the java class does not support double values.
Nested Class Summary | |
---|---|
static class |
Insets2D.Double
Class that stores insets as double values. |
Constructor Summary | |
---|---|
Insets2D()
Creates a new Insets2D object. |
Method Summary | |
---|---|
abstract double |
getBottom()
Returns the insets at the bottom. |
abstract double |
getLeft()
Returns the insets at the left. |
abstract double |
getRight()
Returns the insets at the right. |
abstract double |
getTop()
Returns the insets at the top. |
abstract void |
setInsets(double top,
double left,
double bottom,
double right)
Sets the insets to the specified values. |
abstract void |
setInsets(Insets2D insets)
Sets the insets according to the specified insets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Insets2D()
Method Detail |
---|
public abstract double getTop()
public abstract double getLeft()
public abstract double getBottom()
public abstract double getRight()
public abstract void setInsets(Insets2D insets)
insets
- Insets to be set.public abstract void setInsets(double top, double left, double bottom, double right)
top
- Top insets.left
- Left insets.bottom
- Bottom insets.right
- Right insets.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |