Package simtools.diagram

Examples of simtools.diagram.DiagramParameters


    }
   
    public class TestDiagramComponent extends DiagramComponent {

        public TestDiagramComponent(){
            super(new DiagramParameters(), TestShapesContainer.this);
        }
View Full Code Here



  public ShapesContainer(String name) {
      super();
     
      _diagParam=new DiagramParameters();
      _diagParam.name=name;
      _oldCompounds=new Vector();
     
      createSelectionAndComponent();
  }
View Full Code Here

   * @param x
   * @param y
   * @param zoomIn
   */
  protected void wheel(int x,int y, boolean zoomIn){
    DiagramParameters param = selection.getElementContainer().getComponent().getParameters();
   
    x1 = (int) ((double) x / param.scale) - param.xmargin;
    y1 = (int) ((double) y / param.scale) - param.ymargin;
    plot1=getSelectedPlot(x1,y1);
   
View Full Code Here

   * Start the zoom at the mouse pressed location
   * @param x mouse location X coordinate
   * @param y mouse location Y coordinate
   */
  public void press(int x, int y){
    DiagramParameters param = selection.getElementContainer().getComponent()
            .getParameters();
    x1 = (int) ((double) x / param.scale) - param.xmargin;
    y1 = (int) ((double) y / param.scale) - param.ymargin;
    plot1=getSelectedPlot(x1,y1);
   
View Full Code Here

   * @param x mouse location X coordinate
   * @param y mouse location Y coordinate
   */
  public void drag(int x,int y){
    displayCrossLocation(x,y);
    DiagramParameters param = selection.getElementContainer().getComponent()
    .getParameters();
    x2 = (int) ((double) x / param.scale) - param.xmargin;
    y2 = (int) ((double) y / param.scale) - param.ymargin;
   
    if (kindOfZoom==PlotZoom.ZOOM_BOX){
View Full Code Here

   * @param x mouse location X coordinate
   * @param y mouse location Y coordinate
   */
  public void release(int x, int y){
    if (kindOfZoom==PlotZoom.ZOOM_BOX){
      DiagramParameters param = selection.getElementContainer().getComponent()
      .getParameters();
      x2 = (int) ((double) x / param.scale) - param.xmargin;
      y2 = (int) ((double) y / param.scale) - param.ymargin;

      // 1) look for the first shape with
View Full Code Here

   * Display the plot coordinates for this point
   * @param x X coordinate location wrt diagram frame
   * @param y Y coordinate location wrt diagram frame
   */
  protected void displayCrossLocation(int x, int y){
    DiagramParameters param = selection.getElementContainer().getComponent().getParameters();
    double selX=(x/param.scale)-param.xmargin;
    double selY=(y/param.scale)-param.ymargin;
    Plot p=plot1;
    if(p==null){
      p=getSelectedPlot(selX,selY);
View Full Code Here

TOP

Related Classes of simtools.diagram.DiagramParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.