|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.event.ChartPanner
public class ChartPanner
A class that can pan a chart, but provides no UI to do so. Instead, this class may be called by other UI elements - in particular it is used by the MouseDragPanner class. You will probably not need to use this class directly, but may wish to do so on occasions if you have alternative GUI elements in your user-interface that should drive chart panning.
As a user of this class, you can find out when a pan has occurred by registering as a
PanListener
Constructor Summary | |
---|---|
ChartPanner(Chart chart)
|
|
ChartPanner(Chart chart,
boolean horizontalPan,
boolean verticalPan)
|
Method Summary | |
---|---|
void |
addPanListener(PanListener listener)
Register an object's interest in pan events |
void |
drag(Point dragStart,
Point dragEnd)
|
protected void |
firePan()
|
protected void |
firePan(int xOffset,
int yOffset)
|
protected void |
firePan(PanEvent event)
|
double |
getFrictionCoefficient()
Returns the current friction coefficient, used with the continuous panning feature |
Range<?> |
getXLimits()
|
Range<?> |
getYLimits()
|
boolean |
isContinuous()
Returns a boolean to indicate whether the pan is continuous. |
boolean |
isHorizontalPan()
|
boolean |
isVerticalPan()
|
void |
removePanListener(PanListener listener)
De-register an object's interest in pan events |
void |
resetSpeeds()
|
void |
setContinuous(boolean continuous)
Specify whether the pan is continuous. |
void |
setFrictionCoefficient(double friction)
Specify the friction coefficient used with the continuous panning feature. |
void |
setHorizontalPan(boolean horizontalPan)
|
void |
setVerticalPan(boolean verticalPan)
|
void |
setXLimits(Range<?> xLimits)
|
void |
setYLimits(Range<?> yLimits)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartPanner(Chart chart)
public ChartPanner(Chart chart, boolean horizontalPan, boolean verticalPan)
Method Detail |
---|
public boolean isHorizontalPan()
public void setHorizontalPan(boolean horizontalPan)
public boolean isVerticalPan()
public void setVerticalPan(boolean verticalPan)
public boolean isContinuous()
public void setContinuous(boolean continuous)
continuous
- whether the pan should be continuouspublic void resetSpeeds()
public double getFrictionCoefficient()
public void setFrictionCoefficient(double friction)
friction
- the friction coefficientpublic void addPanListener(PanListener listener)
listener
- the object interested in pan eventspublic void removePanListener(PanListener listener)
listener
- the object no longer interested in pan eventsprotected void firePan()
protected void firePan(int xOffset, int yOffset)
protected void firePan(PanEvent event)
public Range<?> getXLimits()
public void setXLimits(Range<?> xLimits)
public Range<?> getYLimits()
public void setYLimits(Range<?> yLimits)
public void drag(Point dragStart, Point dragEnd)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |