|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.plot2.PlotPosition
@Equality public class PlotPosition
Characterises explicit settings for how to position a plot component in graphics coordinates. This aggregates width and height, giving the external dimensions of the whole plot graphic, and a Padding object, giving the gaps between the dimension and the data region of the plot (this is where axis annotations etc are usually drawn).
Any of these Integer dimensions may be null, indicating that no explicit settings are in force. Where there is no explicit setting, the plotting machinery is expected to come up with sensible defaults.
Constructor Summary | |
---|---|
PlotPosition()
Constructs a PlotPosition with no explicit settings. |
|
PlotPosition(Integer width,
Integer height,
uk.ac.starlink.ttools.plot2.Padding padding)
Constructs a PlotPosition from a Dimension and Insets. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Integer |
getHeight()
Returns the external height for the plot, if specified. |
uk.ac.starlink.ttools.plot2.Padding |
getPadding()
Returns settings for the border between the data region and exterior dimensions of a plot. |
Integer |
getWidth()
Returns the external width for the plot, if specified. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlotPosition()
public PlotPosition(Integer width, Integer height, uk.ac.starlink.ttools.plot2.Padding padding)
width
- external plot width, may be nullheight
- external plot height, may be nullpadding
- border between external plot dimensions
and data region, may be null or have null membersMethod Detail |
---|
public Integer getWidth()
public Integer getHeight()
public uk.ac.starlink.ttools.plot2.Padding getPadding()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |