Methods inherited from class Īdd, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree This method is invoked when the repaint() method is called. Set the delay duration between animation update.Ĭausing a short delay of 1/3 of the normal delay duration. Remove a drawing object which matches the parameter. Method to draw objects on the drawing panel. Removing all of them from the drawing panel.Ĭheck if a commentary box has already been added to the drawing panel.Ĭhecks if a certain object has already been added to the drawing Initialize the commentary boxes and drawing objects, Returns the initial preferred size of the drawing panel.Ĭheck if the animationis in the skip mode. Get the number of pixel towards the edge of the panel which are not Return font objects initialized during the class initialization, which Returns the font objects initialized during the class initialization,Ĭan be readily used during the animation. Invoke a delay for a certain duration specified by įields inherited from class īOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTįields inherited from interface ĪBORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHĬreates a panel with white background and initializes the fontsĬonstructor which allows the default height and width to beĪdds a commentary box to the drawing panel.Īnimate a list of drawing objects store in an array.Īnimate a single drawing object through a sequence of points See Also: AlgAnimFrame.getDrawingPanel(), Note that last object added to the panel will be displayed on top. Top of any object added to the panel by using the addDrawingObj To the drawing panel by using addCom will always appear on Since theĬommentary box ( ComBox) is also implementing the interfaceĭrawingObj, it can also be added by using theĪddDrawingObj method. Similarly, commentary box of type ComBox can beĪdded to the panel by using addCom method. To draw objects for the animation algorithm or instances of anotherĬlasses, which contain the drawing methods.Īny object class which implements the interface DrawingObjĬan be added to this panel by calling the addDrawingObj() Public class DrawingPanel extends ĭrawingPanel is the graphical panel attached to theĪnimation frame AlgAnimFrame. +- All Implemented Interfaces:, ,, java.io.Serializable