Class DetectorLayerUI

java.lang.Object
org.jlab.geom.gui.DetectorLayerUI

public class DetectorLayerUI extends Object
Author:
gavalian
  • Field Details

    • drawRegion

      public Rectangle drawRegion
    • selectionListener

      public IDetectorComponentSelection selectionListener
    • componentColorEven

      public Color componentColorEven
    • componentColorOdd

      public Color componentColorOdd
    • componentColorSelected

      public Color componentColorSelected
  • Constructor Details

    • DetectorLayerUI

      public DetectorLayerUI()
  • Method Details

    • setComponents

      public void setComponents(ArrayList<DetectorComponentUI> uic)
    • reset

      public void reset()
    • setSelectionListener

      public void setSelectionListener(IDetectorComponentSelection listener)
    • updateDrawRegion

      public void updateDrawRegion()
    • getX

      public int getX(float x, int w)
    • getY

      public int getY(float y, int h)
    • getCoordinateX

      public int getCoordinateX(int x, int w)
    • getCoordinateY

      public int getCoordinateY(int y, int h)
    • getClickedComponent

      public DetectorComponentUI getClickedComponent(int x, int y, int width, int height)
    • draw2D

      public void draw2D(Graphics2D g2d, int xoff, int yoff, int width, int height)