|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.Page
public class Page
Title: Page class.
Description: Chart paging characteristics
Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
protected javax.swing.event.ChangeEvent |
changeEvent
|
protected javax.swing.event.EventListenerList |
listenerList
A list of event listeners for this component. |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart |
Constructor Summary | |
---|---|
Page(Chart c)
|
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.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()
Returns whether the Y Axis for each page is scaled or not. |
javax.swing.event.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()
Returns the first ValueIndex of the current page. |
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(javax.swing.event.ChangeListener l)
Removes a ChangeListener from the button. |
void |
setAutoScale(boolean value)
Set to true to scale the Y Axis for each page. |
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 |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient javax.swing.event.ChangeEvent changeEvent
protected transient javax.swing.event.EventListenerList listenerList
Constructor Detail |
---|
public Page(Chart c)
Method Detail |
---|
protected java.lang.Object readResolve()
public void addChangeListener(javax.swing.event.ChangeListener l)
ChangeListener
to the button.
l
- the listener to be addedpublic void removeChangeListener(javax.swing.event.ChangeListener l)
l
- the listener to be removedpublic javax.swing.event.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)
value
- public boolean getAutoScale()
public int getFirstValueIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |