|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.axis.AxisSpace
public class AxisSpace
A record that contains the space required at each edge of a plot.
| Constructor Summary | |
|---|---|
AxisSpace()
Creates a new axis space record. |
|
| Method Summary | |
|---|---|
void |
add(double space,
org.jfree.ui.RectangleEdge edge)
Adds space to the top, bottom, left or right edge of the plot area. |
java.lang.Object |
clone()
Returns a clone of the object. |
void |
ensureAtLeast(AxisSpace space)
Ensures that this object reserves at least as much space as another. |
void |
ensureAtLeast(double space,
org.jfree.ui.RectangleEdge edge)
Ensures there is a minimum amount of space at the edge corresponding to the specified axis location. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with another object. |
java.awt.geom.Rectangle2D |
expand(java.awt.geom.Rectangle2D area,
java.awt.geom.Rectangle2D result)
Expands an area by the amount of space represented by this object. |
double |
getBottom()
Returns the space reserved for axes at the bottom of the plot area. |
double |
getLeft()
Returns the space reserved for axes at the left of the plot area. |
double |
getRight()
Returns the space reserved for axes at the right of the plot area. |
double |
getTop()
Returns the space reserved for axes at the top of the plot area. |
int |
hashCode()
Returns a hash code for this object. |
java.awt.geom.Rectangle2D |
reserved(java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
Calculates the reserved area. |
void |
setBottom(double space)
Sets the space reserved for axes at the bottom of the plot area. |
void |
setLeft(double space)
Sets the space reserved for axes at the left of the plot area. |
void |
setRight(double space)
Sets the space reserved for axes at the right of the plot area. |
void |
setTop(double space)
Sets the space reserved for axes at the top of the plot area. |
java.awt.geom.Rectangle2D |
shrink(java.awt.geom.Rectangle2D area,
java.awt.geom.Rectangle2D result)
Shrinks an area by the space attributes. |
java.lang.String |
toString()
Returns a string representing the object (for debugging purposes). |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AxisSpace()
| Method Detail |
|---|
public double getTop()
public void setTop(double space)
space - the space (in Java2D units).public double getBottom()
public void setBottom(double space)
space - the space (in Java2D units).public double getLeft()
public void setLeft(double space)
space - the space (in Java2D units).public double getRight()
public void setRight(double space)
space - the space (in Java2D units).
public void add(double space,
org.jfree.ui.RectangleEdge edge)
space - the space (in Java2D units).edge - the edge (null not permitted).public void ensureAtLeast(AxisSpace space)
space - the other space.
public void ensureAtLeast(double space,
org.jfree.ui.RectangleEdge edge)
space - the space.edge - the location.
public java.awt.geom.Rectangle2D shrink(java.awt.geom.Rectangle2D area,
java.awt.geom.Rectangle2D result)
area - the area to shrink.result - an optional carrier for the result.
public java.awt.geom.Rectangle2D expand(java.awt.geom.Rectangle2D area,
java.awt.geom.Rectangle2D result)
area - the area to expand.result - an optional carrier for the result.
public java.awt.geom.Rectangle2D reserved(java.awt.geom.Rectangle2D area,
org.jfree.ui.RectangleEdge edge)
area - the area.edge - the edge.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - This class won't throw this exception,
but subclasses (if any) might.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare against.
true or false.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||