public class Page extends TeeBase
Title: Page class.
Description: Chart paging characteristics
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected ChangeEvent |
changeEvent |
protected EventListenerList |
listenerList
A list of event listeners for this component.
|
chart, InternalUse
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a
ChangeListener to the button. |
protected void |
fireStateChanged()
Notifies all listeners that have registered interest for
notification on this event type.
|
boolean |
getAutoScale() |
ChangeListener[] |
getChangeListeners()
Returns an array of all the
ChangeListener s added
to this PageNavigator with addChangeListener(). |
int |
getCount()
Gets the number of pages, according to MaxPointsPerPage property.
TChart.Page.MaxPointsPerPage must be greater than zero to activate auto paging. |
int |
getCurrent()
The current page number.
Run-time only. |
int |
getFirstValueIndex() |
int |
getMaxPointsPerPage()
The number of points displayed per page.
Default value: 0 |
boolean |
getScaleLastPage()
Determines how the last Chart page will be displayed.
It only has effect when TChart.MaxPointsPerPage is greater than zero. |
void |
next()
Moves to next page ( Current + 1 )
When MaxPointsPerPage is greater than Zero, TeeChart automatically divides point values in Pages. |
void |
previous()
Moves to previous page ( Current - 1 )
When MaxPointsPerPage is greater than Zero, TeeChart automatically divides point values in Pages. |
protected java.lang.Object |
readResolve() |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button.
|
void |
setAutoScale(boolean value) |
void |
setCurrent(int value)
Sets the current page number.
|
void |
setMaxPointsPerPage(int value)
Sets the number of points displayed per page.
MaxPointsPerPage controls "TeeChart AutoPaging". |
void |
setScaleLastPage(boolean value)
Determines how the last Chart page will be displayed.
Default value: true |
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
protected transient ChangeEvent changeEvent
protected transient EventListenerList listenerList
public Page(Chart c)
protected java.lang.Object readResolve()
public void addChangeListener(ChangeListener l)
ChangeListener
to the button.l
- the listener to be addedpublic void removeChangeListener(ChangeListener l)
l
- the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeListener
s added
to this PageNavigator with addChangeListener().ChangeListener
s added or an empty
array if no listeners have been addedprotected void fireStateChanged()
EventListenerList
public int getCount()
public int getCurrent()
public void setCurrent(int value)
value
- intpublic int getMaxPointsPerPage()
public void setMaxPointsPerPage(int value)
Example:
myChart.getPage().setMaxPointsPerPage(6);
value
- intgetMaxPointsPerPage()
public boolean getScaleLastPage()
public void setScaleLastPage(boolean value)
value
- booleangetScaleLastPage()
public void next()
public void previous()
public void setAutoScale(boolean value)
public boolean getAutoScale()
public int getFirstValueIndex()