00001
00002
00003
00004
00005
00006
00007 package org.swtchart;
00008
00012 public interface IAxis {
00013
00015 public enum Direction {
00016
00018 X,
00019
00021 Y
00022 }
00023
00025 public enum Position {
00026
00028 Primary,
00029
00031 Secondary
00032 }
00033
00041 int getId();
00042
00050 Direction getDirection();
00051
00057 Position getPosition();
00058
00065 void setPosition(Position position);
00066
00073 void setRange(Range range);
00074
00080 Range getRange();
00081
00087 ITitle getTitle();
00088
00094 IAxisTick getTick();
00095
00106 void enableLogScale(boolean enabled) throws IllegalStateException;
00107
00113 boolean isLogScaleEnabled();
00114
00122 IGrid getGrid();
00123
00128 void adjustRange();
00129
00133 void zoomIn();
00134
00141 void zoomIn(double coordinate);
00142
00146 void zoomOut();
00147
00154 void zoomOut(double coordinate);
00155
00159 void scrollUp();
00160
00164 void scrollDown();
00165
00174 void enableCategory(boolean enabled);
00175
00181 boolean isCategoryEnabled();
00182
00190 void setCategorySeries(String[] series);
00191
00198 String[] getCategorySeries();
00199
00207 int getPixelCoordinate(double dataCoordinate);
00208
00217 double getDataCoordinate(int pixelCoordinate);
00218
00226 void addDisposeListener(IDisposeListener listener);
00227 }