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.void
drawLayer
(Graphics2D g2d, ViewWorld world) void
fill
(List<DetectorDataDgtz> detectorData, String options) updating the detector shapes with the data from detector Bank.org.jlab.groot.math.Dimension1D
org.jlab.groot.math.Dimension2D
getName()
int
getShapeByXY
(double x, double y) boolean
isActive()
void
setActive
(boolean flag) setOpacity
(int op) void
setSelected
(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
-