234 @Override
235 public CssMetaData<ValueAxis<? extends Number>,Number> getCssMetaData() {
236 return StyleableProperties.MINOR_TICK_COUNT;
237 }
238 };
239 public final int getMinorTickCount() { return minorTickCount.get(); }
240 public final void setMinorTickCount(int value) { minorTickCount.set(value); }
241 public final IntegerProperty minorTickCountProperty() { return minorTickCount; }
242
243 // -------------- CONSTRUCTORS -------------------------------------------------------------------------------------
244
245 /**
246 * Create a auto-ranging ValueAxis
247 */
248 public ValueAxis() {
249 minorTickPath.getStyleClass().add("axis-minor-tick-mark");
250 getChildren().add(minorTickPath);
251 }
252
253 /**
254 * Create a non-auto-ranging ValueAxis with the given upper & lower bound
255 *
256 * @param lowerBound The lower bound for this axis, ie min plottable value
257 * @param upperBound The upper bound for this axis, ie max plottable value
258 */
259 public ValueAxis(double lowerBound, double upperBound) {
260 this();
261 setAutoRanging(false);
262 setLowerBound(lowerBound);
263 setUpperBound(upperBound);
264 }
265
266 // -------------- PROTECTED METHODS --------------------------------------------------------------------------------
267
268
269 /**
270 * This calculates the upper and lower bound based on the data provided to invalidateRange() method. This must not
271 * effect the state of the axis, changing any properties of the axis. Any results of the auto-ranging should be
272 * returned in the range object. This will we passed to setRange() if it has been decided to adopt this range for
273 * this axis.
274 *
|
234 @Override
235 public CssMetaData<ValueAxis<? extends Number>,Number> getCssMetaData() {
236 return StyleableProperties.MINOR_TICK_COUNT;
237 }
238 };
239 public final int getMinorTickCount() { return minorTickCount.get(); }
240 public final void setMinorTickCount(int value) { minorTickCount.set(value); }
241 public final IntegerProperty minorTickCountProperty() { return minorTickCount; }
242
243 // -------------- CONSTRUCTORS -------------------------------------------------------------------------------------
244
245 /**
246 * Create a auto-ranging ValueAxis
247 */
248 public ValueAxis() {
249 minorTickPath.getStyleClass().add("axis-minor-tick-mark");
250 getChildren().add(minorTickPath);
251 }
252
253 /**
254 * Create a non-auto-ranging ValueAxis with the given upper & lower bound
255 *
256 * @param lowerBound The lower bound for this axis, ie min plottable value
257 * @param upperBound The upper bound for this axis, ie max plottable value
258 */
259 public ValueAxis(double lowerBound, double upperBound) {
260 this();
261 setAutoRanging(false);
262 setLowerBound(lowerBound);
263 setUpperBound(upperBound);
264 }
265
266 // -------------- PROTECTED METHODS --------------------------------------------------------------------------------
267
268
269 /**
270 * This calculates the upper and lower bound based on the data provided to invalidateRange() method. This must not
271 * effect the state of the axis, changing any properties of the axis. Any results of the auto-ranging should be
272 * returned in the range object. This will we passed to setRange() if it has been decided to adopt this range for
273 * this axis.
274 *
|