Package org.jlab.detector.view
Class DetectorView2D.DetectorViewLayer2D
java.lang.Object
org.jlab.detector.view.DetectorView2D.DetectorViewLayer2D
- Enclosing class:
- DetectorView2D
Layer class to keep shapes in. it computes it's boundaries automatically;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddShape(DetectorShape2D shape) adding a shape to the layer.voiddrawLayer(Graphics2D g2d, ViewWorld world) voidfill(List<DetectorDataDgtz> detectorData, String options) updating the detector shapes with the data from detector Bank.org.jlab.groot.math.Dimension1Dorg.jlab.groot.math.Dimension2DgetName()intgetShapeByXY(double x, double y) booleanisActive()voidsetActive(boolean flag) setOpacity(int op) voidsetSelected(DetectorShape2D shape) setShowHitMap(boolean flag)
-
Constructor Details
-
DetectorViewLayer2D
public DetectorViewLayer2D()
-
-
Method Details
-
addShape
adding a shape to the layer.- Parameters:
shape-- Returns:
-
getShapes
-
getOpacity
public int getOpacity() -
isActive
public boolean isActive() -
setActive
-
setOpacity
-
setShowHitMap
-
getName
-
setName
-
setSelected
-
resetSelection
public void resetSelection() -
getShapeByXY
-
getAxisRange
public org.jlab.groot.math.Dimension1D getAxisRange() -
getBounds
public org.jlab.groot.math.Dimension2D getBounds() -
fill
updating the detector shapes with the data from detector Bank.- Parameters:
detectorData-options-
-
drawLayer
-