hep.aida.ref.plotter
Class BoxStyle
- java.lang.Object
-
- hep.aida.ref.plotter.WeakStyleListener
-
- hep.aida.ref.plotter.BaseStyle
-
- hep.aida.ref.plotter.BoxStyle
-
- All Implemented Interfaces:
- IBaseStyle, IBoxStyle, StyleListener
public class BoxStyle extends BaseStyle implements IBoxStyle
-
-
Field Summary
-
Fields inherited from interface hep.aida.IBoxStyle
BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, MIDDLE_LEFT, MIDDLE_RIGHT, TOP_CENTER, TOP_LEFT, TOP_RIGHT
-
-
Constructor Summary
Constructors Constructor and Description BoxStyle()
-
Method Summary
All Methods Instance Methods Concrete 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 class hep.aida.ref.plotter.BaseStyle
addParent, addParentList, availableParameterOptions, availableParameters, child, children, deepestSetParameter, isMyParent, isParameterSet, isParameterSet, isVisible, name, parameter, parameterValue, parentList, removeAllParents, removeParent, reset, setParameter, setParameter, setParameter, setParameterDefault, setParent, setParentList, setVisible, styleChanged, type
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hep.aida.IBaseStyle
availableParameterOptions, availableParameters, child, children, isVisible, name, parameterValue, reset, setParameter, setParameter, setVisible, type
-
-
-
-
Method Detail
-
backgroundStyle
public IFillStyle backgroundStyle()
Get the IFillStyle that controls the background of the scene part.- Specified by:
backgroundStylein interfaceIBoxStyle- Returns:
- The background IFillStyle.
-
setBackgroundStyle
public boolean setBackgroundStyle(IFillStyle fillStyle)
- Specified by:
setBackgroundStylein interfaceIBoxStyle
-
foregroundStyle
public 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?)- Specified by:
foregroundStylein interfaceIBoxStyle- Returns:
- The foreground IFillStyle.
-
setForegroundStyle
public boolean setForegroundStyle(IFillStyle fillStyle)
- Specified by:
setForegroundStylein interfaceIBoxStyle
-
borderStyle
public IBorderStyle borderStyle()
Get the border style of the scene part.- Specified by:
borderStylein interfaceIBoxStyle- Returns:
- The border style.
-
setBorderStyle
public boolean setBorderStyle(IBorderStyle borderStyle)
- Specified by:
setBorderStylein interfaceIBoxStyle
-
setX
public boolean setX(double x)
Set and get the x and y coordinate of the box's origin.
-
setHeight
public boolean setHeight(double height)
Set and get the height and the width of the box.
-
setPlacement
public boolean setPlacement(int originDefinition)
Get and specify the origin's definition. The default is BOTTOM_LEFT.- Specified by:
setPlacementin interfaceIBoxStyle
-
setUnits
public boolean setUnits(int unitsDefinition)
Get and specify the definition of the units used for the size and origin's position. The default is PIXELS.
-
-
DMelt 3.0 © DataMelt by jWork.ORG