| /******************************************************************************* |
| * Copyright (c) 2013 Edwin Park and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Edwin Park - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.nebula.widgets.nattable.coordinate; |
| |
| /** |
| * @author esp |
| * |
| */ |
| public class PixelCoordinate { |
| |
| private final int x; |
| private final int y; |
| |
| public PixelCoordinate(int x, int y) { |
| this.x = x; |
| this.y = y; |
| } |
| |
| public int getX() { |
| return this.x; |
| } |
| |
| public int getY() { |
| return this.y; |
| } |
| |
| @Override |
| public String toString() { |
| return "[" + getClass().getName() + " x: " + this.x + ", y: " + this.y + "]"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$ |
| } |
| |
| } |