org.opensourcephysics.display
Interface Interactive

All Superinterfaces:
Drawable, Measurable
All Known Subinterfaces:
InteractiveImage, Selectable, Video
All Known Implementing Classes:
AbstractInteractive, BoundedImage, BoundedShape, BoundedTextLine, CartesianInteractive, CartesianType3, GifVideo, HighlightableDataset, ImageVideo, InteractiveArrow, InteractiveCenteredArrow, InteractiveCircle, InteractiveImage, InteractiveLabel, InteractiveShape, InteractiveTextLine, Protractor, Protractor.Tip, TCircle, TCoordAxes, TLine, TLineProfile, TPoint, TShape, TVector, VideoAdapter, XAxis, XYAxis, YAxis

public interface Interactive
extends Measurable

Interactive defines how an object must behave so that it can interact with a drawable panel.

Version:
1.0
Author:
Wolfgang Christian, Francisco Equembre

Method Summary
 Interactive findInteractive(DrawingPanel panel, int _xpix, int _ypix)
           
 double getX()
           
 double getY()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setX(double x)
           
 void setXY(double x, double y)
           
 void setY(double y)
           
 
Methods inherited from interface org.opensourcephysics.display.Measurable
getXMax, getXMin, getYMax, getYMin, isMeasured
 
Methods inherited from interface org.opensourcephysics.display.Drawable
draw
 

Method Detail

findInteractive

Interactive findInteractive(DrawingPanel panel,
                            int _xpix,
                            int _ypix)

setEnabled

void setEnabled(boolean enabled)

isEnabled

boolean isEnabled()

setXY

void setXY(double x,
           double y)

setX

void setX(double x)

setY

void setY(double y)

getX

double getX()

getY

double getY()