hep.aida
Interface IBoxStyle
-
- All Superinterfaces:
- IBaseStyle
- All Known Subinterfaces:
- IRotatableBoxStyle
- All Known Implementing Classes:
- BoxStyle
public interface IBoxStyle extends IBaseStyle
Generic style for any "scene part" on the plot. Scene parts are independent plottable objects like statistics and legend box, data area, title area etc etc.
-
-
Field Summary
Fields Modifier and Type Field and Description static intBOTTOM_CENTERConstants specifying position of the box's origin.static intBOTTOM_LEFTConstants specifying position of the box's origin.static intBOTTOM_RIGHTConstants specifying position of the box's origin.static intCENTERConstants specifying position of the box's origin.static intMIDDLE_LEFTConstants specifying position of the box's origin.static intMIDDLE_RIGHTConstants specifying position of the box's origin.static intTOP_CENTERConstants specifying position of the box's origin.static intTOP_LEFTConstants specifying position of the box's origin.static intTOP_RIGHTConstants specifying position of the box's origin.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IFillStylebackgroundStyle()Get the IFillStyle that controls the background of the scene part.IBorderStyleborderStyle()Get the border style of the scene part.IFillStyleforegroundStyle()Get the IFillStyle that controls the foreground of the scene part.doubleheight()intplacement()booleansetBackgroundStyle(IFillStyle fillStyle)booleansetBorderStyle(IBorderStyle borderStyle)booleansetForegroundStyle(IFillStyle fillStyle)booleansetHeight(double height)Set and get the height and the width of the box.booleansetPlacement(int originDefinition)Get and specify the origin's definition.booleansetUnits(int unitsDefinition)Get and specify the definition of the units used for the size and origin's position.booleansetWidth(double width)booleansetX(double x)Set and get the x and y coordinate of the box's origin.booleansetY(double y)intunits()doublewidth()doublex()doubley()-
Methods inherited from interface hep.aida.IBaseStyle
availableParameterOptions, availableParameters, child, children, isVisible, name, parameterValue, reset, setParameter, setParameter, setVisible, type
-
-
-
-
Field Detail
-
BOTTOM_LEFT
static final int BOTTOM_LEFT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
MIDDLE_LEFT
static final int MIDDLE_LEFT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
TOP_LEFT
static final int TOP_LEFT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
TOP_CENTER
static final int TOP_CENTER
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
TOP_RIGHT
static final int TOP_RIGHT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
MIDDLE_RIGHT
static final int MIDDLE_RIGHT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
BOTTOM_RIGHT
static final int BOTTOM_RIGHT
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
BOTTOM_CENTER
static final int BOTTOM_CENTER
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
CENTER
static final int CENTER
Constants specifying position of the box's origin.- See Also:
- Constant Field Values
-
-
Method Detail
-
backgroundStyle
IFillStyle backgroundStyle()
Get the IFillStyle that controls the background of the scene part.- Returns:
- The background IFillStyle.
-
setBackgroundStyle
boolean setBackgroundStyle(IFillStyle fillStyle)
-
foregroundStyle
IFillStyle foregroundStyle()
Get the IFillStyle that controls the foreground of the scene part. The foreground controls the color of what appears in front unless otherwise specified by other styles. (Is this really needed?)- Returns:
- The foreground IFillStyle.
-
setForegroundStyle
boolean setForegroundStyle(IFillStyle fillStyle)
-
borderStyle
IBorderStyle borderStyle()
Get the border style of the scene part.- Returns:
- The border style.
-
setBorderStyle
boolean setBorderStyle(IBorderStyle borderStyle)
-
setX
boolean setX(double x)
Set and get the x and y coordinate of the box's origin.
-
setY
boolean setY(double y)
-
x
double x()
-
y
double y()
-
setHeight
boolean setHeight(double height)
Set and get the height and the width of the box.
-
setWidth
boolean setWidth(double width)
-
height
double height()
-
width
double width()
-
setPlacement
boolean setPlacement(int originDefinition)
Get and specify the origin's definition. The default is BOTTOM_LEFT.
-
placement
int placement()
-
setUnits
boolean setUnits(int unitsDefinition)
Get and specify the definition of the units used for the size and origin's position. The default is PIXELS.
-
units
int units()
-
-
DMelt 3.0 © DataMelt by jWork.ORG