Package org.opensourcephysics.display
Class BoundedTextLine
java.lang.Object
org.opensourcephysics.display.AbstractInteractive
org.opensourcephysics.display.InteractiveShape
org.opensourcephysics.display.BoundedShape
org.opensourcephysics.display.BoundedImage
org.opensourcephysics.display.BoundedTextLine
- All Implemented Interfaces:
- ImageObserver,- Drawable,- Interactive,- Measurable,- Selectable
A BoundedTextLine is a line of text that can be rotated and scaled using a mouse.
- Version:
- 1.0
- Author:
- W. Christian
- 
Nested Class SummaryNested classes/interfaces inherited from class org.opensourcephysics.display.BoundedShapeBoundedShape.BoundedShapeLoaderNested classes/interfaces inherited from class org.opensourcephysics.display.InteractiveShapeInteractiveShape.InteractiveShapeLoader
- 
Field SummaryFields inherited from class org.opensourcephysics.display.BoundedImageimageFields inherited from class org.opensourcephysics.display.InteractiveShapeedgeColor, height, pixelPt, pixelSized, shape, shapeClass, theta, toPixels, trIS, width, xoff, yoffFields inherited from class org.opensourcephysics.display.AbstractInteractivecolor, x, yFields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
- 
Constructor SummaryConstructorsConstructorDescriptionBoundedTextLine(String text, double x, double y) Constructor BoundedTextLine
- 
Method SummaryMethods inherited from class org.opensourcephysics.display.BoundedImageimageUpdateMethods inherited from class org.opensourcephysics.display.BoundedShapecreateBoundedArrow, createBoundedCenteredArrow, createBoundedCircle, createBoundedEllipse, createBoundedImage, createBoundedRectangle, createBoundedTriangle, findInteractive, getBounds2D, getLoader, getPreferredCursor, isHeightDrag, isInside, isRotateDrag, isSelected, isWidthDrag, isXYDrag, setHeightDrag, setRotateDrag, setSelected, setWidthDrag, setXYDrag, toggleSelected, toStringMethods inherited from class org.opensourcephysics.display.InteractiveShapecontains, createArrow, createCenteredArrow, createCircle, createEllipse, createImage, createRectangle, createSquare, createTextLine, createTriangle, getHeight, getPixelPt, getRotateInstance, getRotateInstance, getScaleInstance, getShape, getTranslateInstance, getWidth, getXMax, getXMin, getYMax, getYMin, isMeasured, setHeight, setMarkerColor, setMeasured, setOffset, setPixelSized, setTheta, setWidth, setX, setXY, setY, tranform, transformMethods inherited from class org.opensourcephysics.display.AbstractInteractivegetX, getY, isEnabled, setEnabledMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.InteractivegetX, getY, isEnabled, isInteractive, setEnabled, setX, setXY, setYMethods inherited from interface org.opensourcephysics.display.MeasurablegetXMax, getXMin, getYMax, getYMin, isMeasured
- 
Constructor Details- 
BoundedTextLineConstructor BoundedTextLine- Parameters:
- text-
- x-
- y-
 
 
- 
- 
Method Details- 
setFontSets the font text font.- Parameters:
- font- Font
 
- 
getFontGets the font.- Returns:
- Font
 
- 
drawDraws the image.- Specified by:
- drawin interface- Drawable
- Overrides:
- drawin class- BoundedImage
- Parameters:
- panel- the world in which the arrow is viewed
- g- the graphics context upon which to draw
 
 
-