org.opensourcephysics.display
Interface Interactive

All Superinterfaces:
Drawable, Measurable
All Known Subinterfaces:
InteractionTarget, InteractiveElement, InteractiveImage, Selectable, Video
All Known Implementing Classes:
AbstractInteractive, AbstractInteractiveElement, AbstractInteractiveTile, BoundedImage, BoundedShape, BoundedTextLine, CartesianInteractive, CartesianType3, Element, ElementArrow, ElementImage, ElementPoints, ElementPolygon, ElementSegment, ElementSet, ElementShape, ElementSpring, ElementText, ElementTrail, GifVideo, Group, GroupDrawable, HighlightableDataset, ImageVideo, InteractionTarget, InteractionTargetCursorPosition, InteractionTargetElementPosition, InteractionTargetElementSize, InteractionTargetGroupDrawableElement, InteractionTargetPoligonMovingPoint, InteractionTargetPoligonPoint, InteractionTargetSetElement, InteractionTargetTracePoint, InteractiveArrow, InteractiveArrow, InteractiveBox, InteractiveCenteredArrow, InteractiveCircle, InteractiveCone, InteractiveCursor, InteractiveCylinder, InteractiveCylinderSimple, InteractiveImage, InteractiveImage, InteractiveLabel, InteractiveParticle, InteractivePlane, InteractivePoints, InteractivePoligon, InteractiveShape, InteractiveSphere, InteractiveSpring, InteractiveSurface, InteractiveText, InteractiveTextLine, InteractiveTrace, Pipe, PoligonsAndTexts, Protractor, Protractor.Tip, Pump, Set, Symbol, Tank, TCircle, TCoordAxes, TLine, TLineProfile, TPoint, TraceSet, TShape, TVector, Valve, VectorField, VectorField3D, 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()