2009-10-01 18:46:46 +02:00
|
|
|
/*
|
2010-02-04 06:57:00 +01:00
|
|
|
* This file is part of NavalPlan
|
2009-10-01 18:46:46 +02:00
|
|
|
*
|
2010-07-19 09:36:44 +02:00
|
|
|
* Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
|
2009-10-01 18:46:46 +02:00
|
|
|
* Desenvolvemento Tecnolóxico de Galicia
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2009-04-14 17:51:03 +02:00
|
|
|
package org.zkoss.ganttz;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
2009-08-03 13:13:14 +02:00
|
|
|
public interface IDatesMapper {
|
2009-04-14 17:51:03 +02:00
|
|
|
|
2010-05-13 12:57:08 +02:00
|
|
|
final long MILISECONDS_PER_HOUR = 3600000;
|
|
|
|
|
|
2009-04-14 17:51:03 +02:00
|
|
|
int toPixels(Date date);
|
|
|
|
|
|
|
|
|
|
Date toDate(int pixel);
|
|
|
|
|
|
|
|
|
|
int toPixels(long milliseconds);
|
|
|
|
|
|
|
|
|
|
long toMilliseconds(int pixels);
|
|
|
|
|
|
2010-05-13 12:57:08 +02:00
|
|
|
int toPixelsAbsolute(long milliseconds);
|
|
|
|
|
|
|
|
|
|
long getMilisecondsPerPixel();
|
|
|
|
|
|
2010-06-09 17:56:40 +02:00
|
|
|
int getHorizontalSize();
|
|
|
|
|
|
2009-04-14 17:51:03 +02:00
|
|
|
}
|