Package wprover
Class DrawTextProcess
- java.lang.Object
-
- wprover.DrawBase
-
- wprover.DrawProcess
-
- wprover.DrawTextProcess
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.print.Printable,java.util.EventListener
public class DrawTextProcess extends DrawProcess
DrawTextProcess is a class that handles the construction and animation of geometric diagrams based on textual input. It extends the DrawProcess class and provides methods for managing construction steps, point attributes, and geometric constraints.
-
-
Field Summary
-
Fields inherited from class wprover.DrawProcess
ANIMATION, ARROW, AUTOSHOWSTEP, CONSTRUCT_FROM_TEXT, CTrackPt, DEFINEPOLY, DRAWTRIALL, DRAWTRISQISO, EQMARK, EQUIVALENCE, FREE_TRANSFORM, gt, HIDEOBJECT, LOCUS, MOVE, MOVENAME, MULSELECTSOLUTION, nd, NTANGLE, panel, PARALLELOGRAM, PROVE, RA_TRAPEZOID, RAMARK, RATIO, RECTANGLE, SANGLE, SELECT, SETCCTANGENT, SETEQANGLE3P, SETEQSIDE, SETTRACK, SHOWOBJECT, status, TRANSFORM, TRANSLATE, TRAPEZOID, TRIANGLE, U_Obj, VIEWELEMENT, ZOOM_IN, ZOOM_OUT
-
Fields inherited from class wprover.DrawBase
anglelist, BARYCENTER, CatchList, CatchPoint, CatchType, catchX, catchY, CCTANGENT, charset, circlelist, CIRCUMCENTER, constraintlist, CurrentAction, D_3PCIRCLE, D_ABLINE, D_ALINE, D_ANGLE, D_BLINE, D_CCLINE, D_CIR_BY_DIM, D_CIRCLE, D_CIRCLEBYRADIUS, D_IOSTRI, D_LINE, D_MIDPOINT, D_PARELINE, D_PERPLINE, D_PFOOT, D_POINT, D_POLYGON, D_PRATIO, D_PSQUARE, D_PTDISTANCE, D_SQUARE, D_TCLINE, D_TEXT, D_TRATIO, DISTANCE, distancelist, DRAWGRID, file, footMarkLength, footMarkShown, gridColor, GridX, GridY, gxInstance, H_LINE, Height, INCENTER, isPointOnIntersection, isPointOnObject, lan, linelist, LRATIO, MEET, MIRROR, mouseCatchX, mouseCatchY, mouseInside, MouseX, MouseY, name, ORTHOCENTER, otherlist, paraBackup, paraCounter, parameter, pblist, pcircleCounter, PERPWITHFOOT, plineCounter, pnameCounter, pointlist, poly, polygonlist, polylist, POOL, pptrans, SelectList, SETEQANGLE, SNAP, STATUS, textlist, tracelist, V_LINE, Width
-
-
Constructor Summary
Constructors Constructor Description DrawTextProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CLineadd_Line(CPoint a, CPoint b)Adds a line between two points.voidaddAcongFlash(Cond co, boolean cl)Adds an angle congruence flash effect for a given condition.voidaddAllLn(int[] pp)Adds all lines based on the given points.voidaddAngleToList2(CAngle ag)Adds a CAngle to the angle list.voidaddAreaFlash(wprover.MAssertion ass)Adds a flash effect for an area based on an assertion.voidaddAreaFlash1(wprover.MAssertion ass)Adds a flash effect for an area based on an assertion.voidaddaux(CProveText cpt)Processes auxiliary proof text to add the corresponding flashes, marks, or polygons.voidaddAuxPoint(AuxPt ax)Adds an auxiliary point to the construction.voidaddCGFlash(CPoint p1, CPoint p2, CPoint p3, CPoint p4)Adds a flash effect for congruent segments.voidaddConcLineOrCircle(Cond cc)Adds lines or circles based on the given condition.java.util.VectoraddCondAux(Cons co, boolean aux)Adds auxiliary conditions for a given condition.voidaddCongFlash(Cond co, boolean cl)Adds a congruence flash effect for a given condition.JFlashaddFlashAngle(int a, int b, int c, int d)Creates or retrieves a flash angle based on the given point indices.JFlashaddFlashXtermAngle(XTerm x)Creates or retrieves a flash angle based on an XTerm object.booleanaddFreePt(Cons c)Adds a free point to the construction.booleanaddGTPt(Cons c)Adds a geometric term point to the construction.voidaddInfinitelineFlash(CPoint p1, CPoint p2)Adds a flash effect for an infinite line.voidaddlineFlash(CPoint p1, CPoint p2)Adds a flash effect for a line.CLineaddLnWC(CPoint a, CPoint b, int color, int d)Adds a line with specific color and dash style between two points.voidaddObjectFlash(CClass c1, CClass c2, CClass c3)Adds visual flashing effects for up to three objects.CPointaddPt2(int n)Adds a point to the construction by its index.voidaddPt2Line(int p1, int p2, int p3)Adds a point to a line in the construction.voidaddPtEnlargeFlash(CPoint pt)Adds a flash effect to enlarge a point.booleananimateDiagramFromString(java.lang.String s)Animates a diagram from the given string.voidautoConstruct(GTerm g)Automatically constructs the diagram from the given geometric term.voidcleardText()Clears the construction text.JAngleFlashfind_angFlash(CPoint a, CPoint b, CPoint c, CPoint d)Finds and returns a JAngleFlash from the flash list that matches the given four points.ParamfindConstantParam(java.lang.String name)Finds a constant parameter by its name.voidfinishConstruction()Finishes the construction process.voidflashassert(wprover.MAssertion ass)Renders visual flashing effects for a given assertion.voidflashattr(CClass cc, javax.swing.JPanel panel)Adds a flash effect for a geometric class.voidflashCond(Cond co, boolean fb)Renders visual flashing effects for a given condition.voidflashcons(Cons c)Renders visual flashing effects for a given construction.voidflashmnode(wprover.MNode n)Renders visual flashing effects for a given node.voidflashmobj(wprover.MObject obj)Renders visual flashing effects for a given object.voidflashmobj(wprover.MObject obj, boolean clear)Renders visual flashing effects for a given object.JFlashgetAngleFlash(javax.swing.JPanel panel, int p1, int p2, int p3, int p4)Retrieves an angle flash effect for two lines intersecting at a point.JFlashgetAngleFlashLL(javax.swing.JPanel panel, int p, LLine l1, LLine l2)Retrieves an angle flash effect for two lines intersecting at a point.JFlashgetAreaFlash(wprover.MDrObj d)Retrieves an area flash effect for a given drawing object.intgetAreaFlashNumber()Retrieves the number of area flash effects.JFlashgetCond(Cond co, boolean fb)Retrieves a flash effect for a given condition.JFlashgetDrobjFlash(wprover.MDrObj d)Retrieves a flash effect for a given drawing object.JFlashgetFlashCond(javax.swing.JPanel panel, Cond co)Retrieves a flash effect for a given condition.JFlashgetFlashCond(javax.swing.JPanel panel, Cond co, boolean fb)Retrieves a flash effect for a given condition.JFlashgetMAngleFlash(javax.swing.JPanel panel, CPoint p1, CPoint p2, CPoint p3, CPoint p4, int t)Retrieves a modified angle flash effect for two lines intersecting at a point.CPointgetPtN(Cons c, int n)Retrieves a point from a condition by its index.booleaninConstruction()Checks if the construction process is currently active.booleanisConsFinished()Checks if the construction process is finished.booleanisFreePoint(int n)Checks if a point is free.CPointlcmeet(Circle c, CLine ln)Finds the intersection point between a circle and a line.CPointlcmeet(Circle c, CLine ln, CPoint p1)Finds the intersection point between a circle and a line, excluding a specific point.voidmouseDown(double x, double y)Handles mouse down events at the specified coordinates.voidmouseDown(double x, double y, boolean cc)Handles mouse down events at the specified coordinates with an option to clear constraints.voidpointAdded(Cons pt, int type, int[] pp, boolean cc, int index, double x, double y, CPoint cp, java.lang.Object[] pss)Processes the provided construction point and applies the appropriate geometric constraints and operations based on its type.voidsetConstructLines(GTerm g)Sets the construction lines for the given geometric term.voidsetPointAttrAsConstructed(CPoint pt)Sets the attributes of a point as constructed.voidwritePointPosition(java.io.FileOutputStream out)Writes the positions of points to the given output stream.-
Methods inherited from class wprover.DrawProcess
actionPerformed, add_free_transform, add_line, add_PFOOT, add_rcircle, add_sp_angle_value, addADecidedPointWithUnite, addALine, addAngleToList, addCalculationCircle, addCalculationPolygon, addCalculationPX, addCalculationPY, addCgFlash, addCircleToList, addConstraintToList, addCr, addCTMark, addCTMark, addDiagramUpdaterListener, addedMark, addedMark, addFlash, addFlash1, addFlash2, addFlashPolygon, addFlashx, addisoAngle, addLineSlope, addLineToList, addNodeToUndoList, addObjectToList, addOrientedSegment, AddPointToCircle, AddPointToLine, AddPointToLine, AddPointToLineX, addPointToList, addPolygonToList, addSelectPoint, addsquare, addText, addToSelectList, addZeron, all_flash_finished, already_redo, animationOntime, animationStart, animationStop, autoAnimate, autoShowstep, autoUndoRedo, BackupParameter, calcu_m1, calculate, calculate_a_point, calculate_allpt, calculate_allResults, calculate_lccc, calculate_ocir, calculate_oline, calculate_text, calculate_trace, calform, calv_parameter, canAutoAnimate, cancelCurrentAction, CatchAngle, CatchList, charsetAndAddPoly, check_animation, CheckCommonPoint, checkCPfieldExists, clearAll, clearAllConstraint, clearConstruction, clearFlash, clearSelection, CreateANewPoint, CreateANewPoint, defineSpecificAngle, dialog_addText, doFlash, drawAuxLine, drawCurrentAct, drawFlash, drawLineAndAdd, drawSmartPVLine, drawTrackpt, DWButtonDown, DWButtonUp, DWMouseDbClick, DWMouseDrag, DWMouseMove, DWMouseRightClick, DWMouseRightDown, DWMouseWheel, eraseAPoly, ErasedADecidedPoint, fd_angle, fd_angle_4p, fd_angle_m, fd_circle, fd_circle, fd_circleOR, fd_edmark, fd_point, fd_polygon, fd_pt_on_which_circle, fd_pt_on_which_line, fd_rcircle, findPolygon, findPolygon1, flash_node_by_id, flashStep, get_Catch_Intersection, getActionType, getAllConstraint, getAllSolidObj, getANewParam, getAngleByid, getAngleSimpleName, getAnimateC, getCircleByid, getCommonPoint, getConstraintByid, getConstructionFromDraw, GetCurrentAction, getFile, GetFraction, getLastConstructedPoint, getLineByid, getName, getNDGS, getObjectFlash, getObjectInListById, getOjbectById, getParaForSpecificAngle, getParameter, getParameterByindex, getPBList, getPBMono, getPointById, getPointNameByCount, getPolyList, getRedolistSize, getSelectList, getSmartPV, getSnap, getSpecificAngleList, getStatus, getTextLocation, getTraceById, getTraceByPt, getUndoById, getUndolistSize, gterm, isDrawGrid, isFlashFinished, isitSaved, isPointAlreadyExists, isRedoAtEnd, isSnap, Load_global, LoadGGB2, MeetCCToDefineAPoint, MeetDefineAPoint, MeetDefineAPoint, MeetLCToDefineAPoint, meetTwoObject, moveCatch, moveUndoObjectFromList, mulSolutionSelect, need_save, nextProveStep, objectsListMoved, OnCatch, onDBClick, openOutputFile, optmizePolynomial, paintPoint, PolygonTransPointsCreated, popLeadingVariableDialog, popSelect, print, PrintContent, printNDGS, prove_run_to_end, provePlay, proveStop, pushbackup, re_generate_all_poly, recal_allFlash, reCalculate, redo, redo_step, redo_step, redo_step, reduce, removeConstraintFromList, RemoveDiagramUpdaterListener, repaint, resetAux, resetUndo, RightMenuPopup, roundn, run_to_prove, runto, runto1, Save_global, SelectACircle, SelectALine, SelectAllFromXY, SelectAPoint, SelectAPolygon, SelectByRect, SelectFromAList, SelectFromAList, SelectNameText, SelectOneFromXY, selectUndoObjectFromList, setCalMode0, setCalMode1, SetCurrentAction, setCurrentDrawPanel, setCurrentInstance, setcurrentStatus, SetDimension, setFile, setFirstPnt, SetGrid, setMeshStep, setName, setObjectListForFlash, setObjectListForFlash, setObjectListForFlash, setParameter, setParameter, setParameterValue, setRecal, setSavedTag, setSmartPVLine, SetSnap, setStatus, setTimerDelay, setTransformStatus, setUndoListForFlash, setUndoListForFlash1, setUndoStructForDisPlay, SetVarable, Smart, SmartAddPoint, SmartAddPoint, SmartgetApointFromXY, SmartgetApointFromXY, SmartmoveCatch, SmartmoveCatch, SmartmoveCatchLine, SmartmoveCatchPt, SmartPCircle, SmartPLine, SmartPoint, SmartPointOnLine, smartPVDragLine, startFlash, startTrackPt, stateChange, stopTrack, stopUndoFlash, translate_back, Undo, undo_step, undo_step, Undo_step, Undo_stepPure, UndoAdded, UndoAdded, UndoAdded, UndoAdded, UndoPure, updateFlashDelay, viewElement, viewElementFromXY
-
Methods inherited from class wprover.DrawBase
addCircle, addLine, check_cc_inter, check_lc_inter, check_same_side, check_triangle_inside, collv, containFreezedPoint, CreateATempPoint, decide_wu_identical, div_set, drawCatch, drawCatchInterCross, drawCatchObjName, drawCatchRect, drawcircle2p, drawCross, drawGrid, drawList, drawPerpFoot, drawpoint, drawPointNameLocation, drawPointOrCross, drawRect, drawSelect, drawTipRect, drawTipSquare, drawTipTirangle, drawTTFoot, fd_circle, fd_line, find_tmark, findCTMark, findPoint, getBounds, getCatchHVPoint, getPointList, getPoints, getPointSize, getPoolA, getPooln, getTMono, hvCatchPoint, intersect_cc, intersect_ll, isFrozen, isLineDrawn, isZero, near, printPoly, removeFromeListLastNElements, setAntiAlias, setCatchHVPoint, setCurrentDrawEnvironment, setLanguage, setMouseInside, signArea, unfreezeAllPoints, zoom_in, zoom_out
-
-
-
-
Method Detail
-
inConstruction
public boolean inConstruction()
Checks if the construction process is currently active.- Returns:
- true if the construction process is active, false otherwise
-
isConsFinished
public boolean isConsFinished()
Checks if the construction process is finished.- Returns:
- true if the construction process is finished, false otherwise
-
setConstructLines
public void setConstructLines(GTerm g)
Sets the construction lines for the given geometric term.- Parameters:
g- the geometric term
-
cleardText
public void cleardText()
Clears the construction text.
-
animateDiagramFromString
public boolean animateDiagramFromString(java.lang.String s)
Animates a diagram from the given string.- Parameters:
s- the string representing the animation- Returns:
- true if the animation was successfully loaded, false otherwise
-
autoConstruct
public void autoConstruct(GTerm g)
Automatically constructs the diagram from the given geometric term.- Parameters:
g- the geometric term
-
writePointPosition
public void writePointPosition(java.io.FileOutputStream out) throws java.io.IOExceptionWrites the positions of points to the given output stream.- Parameters:
out- the output stream to write to- Throws:
java.io.IOException- if an I/O error occurs
-
addAuxPoint
public void addAuxPoint(AuxPt ax)
Adds an auxiliary point to the construction.- Parameters:
ax- the auxiliary point to add
-
setPointAttrAsConstructed
public void setPointAttrAsConstructed(CPoint pt)
Sets the attributes of a point as constructed.- Parameters:
pt- the point to set attributes for
-
addFreePt
public boolean addFreePt(Cons c)
Adds a free point to the construction.- Parameters:
c- the construction object- Returns:
- true if a free point was added, false otherwise
-
addGTPt
public boolean addGTPt(Cons c)
Adds a geometric term point to the construction.- Parameters:
c- the construction object- Returns:
- true if a geometric term point was added, false otherwise
-
addPt2
public CPoint addPt2(int n)
Adds a point to the construction by its index.- Parameters:
n- the index of the point- Returns:
- the added point
-
addPt2Line
public void addPt2Line(int p1, int p2, int p3)Adds a point to a line in the construction.- Parameters:
p1- the index of the point to addp2- the index of the first point of the linep3- the index of the second point of the line
-
mouseDown
public void mouseDown(double x, double y)Handles mouse down events at the specified coordinates.- Parameters:
x- the x-coordinatey- the y-coordinate
-
mouseDown
public void mouseDown(double x, double y, boolean cc)Handles mouse down events at the specified coordinates with an option to clear constraints.- Parameters:
x- the x-coordinatey- the y-coordinatecc- a flag indicating whether to clear constraints
-
pointAdded
public void pointAdded(Cons pt, int type, int[] pp, boolean cc, int index, double x, double y, CPoint cp, java.lang.Object[] pss)
Processes the provided construction point and applies the appropriate geometric constraints and operations based on its type.This method examines the type of the provided construction object and executes the corresponding logic to update the constraint and geometric element lists. Depending on the provided parameters, it adds points, lines, circles, angles, or other entities and registers constraints related to them.
- Parameters:
pt- the construction object encapsulating geometric data and type informationtype- the specific type of construction operation to executepp- an array of integers representing indices for points and other parameterscc- a boolean flag indicating whether to perform specific additional operationsindex- an identifier used for certain point creation methodsx- the x-coordinate value used for point creation if applicabley- the y-coordinate value used for point creation if applicablecp- a CPoint object that will be updated or used during the constructionpss- an array of additional parameters used for constructing constants or constraints
-
findConstantParam
public Param findConstantParam(java.lang.String name)
Finds a constant parameter by its name.- Parameters:
name- the name of the constant parameter- Returns:
- the constant parameter, or null if not found
-
addObjectFlash
public void addObjectFlash(CClass c1, CClass c2, CClass c3)
Adds visual flashing effects for up to three objects.- Parameters:
c1- the first object to flashc2- the second object to flashc3- the third object to flash
-
flashcons
public void flashcons(Cons c)
Renders visual flashing effects for a given construction.- Parameters:
c- the construction
-
finishConstruction
public void finishConstruction()
Finishes the construction process.
-
addConcLineOrCircle
public void addConcLineOrCircle(Cond cc)
Adds lines or circles based on the given condition.- Parameters:
cc- the condition
-
addAllLn
public void addAllLn(int[] pp)
Adds all lines based on the given points.- Parameters:
pp- the points
-
isFreePoint
public boolean isFreePoint(int n)
Checks if a point is free.- Parameters:
n- the index of the point- Returns:
- true if the point is free, false otherwise
-
lcmeet
public CPoint lcmeet(Circle c, CLine ln)
Finds the intersection point between a circle and a line.- Parameters:
c- the circleln- the line- Returns:
- the intersection point, or null if no intersection
-
lcmeet
public CPoint lcmeet(Circle c, CLine ln, CPoint p1)
Finds the intersection point between a circle and a line, excluding a specific point.- Parameters:
c- the circleln- the linep1- the point to exclude from the search- Returns:
- the intersection point, or null if no intersection
-
flashCond
public void flashCond(Cond co, boolean fb)
Renders visual flashing effects for a given condition.- Parameters:
co- the conditionfb- a flag indicating whether to clear existing flash effects
-
getCond
public JFlash getCond(Cond co, boolean fb)
Retrieves a flash effect for a given condition.- Parameters:
co- the conditionfb- a flag indicating whether to clear existing flash effects- Returns:
- the flash effect
-
addCongFlash
public void addCongFlash(Cond co, boolean cl)
Adds a congruence flash effect for a given condition.- Parameters:
co- the conditioncl- a flag indicating whether to clear existing flash effects
-
addAcongFlash
public void addAcongFlash(Cond co, boolean cl)
Adds an angle congruence flash effect for a given condition.- Parameters:
co- the conditioncl- a flag indicating whether to clear existing flash effects
-
add_Line
public CLine add_Line(CPoint a, CPoint b)
Adds a line between two points.- Parameters:
a- the first pointb- the second point- Returns:
- the line, or null if the points are invalid
-
addLnWC
public CLine addLnWC(CPoint a, CPoint b, int color, int d)
Adds a line with specific color and dash style between two points.- Parameters:
a- the first pointb- the second pointcolor- the color of the lined- the dash style of the line- Returns:
- the line
-
getPtN
public CPoint getPtN(Cons c, int n)
Retrieves a point from a condition by its index.- Parameters:
c- the conditionn- the index of the point- Returns:
- the point, or null if not found
-
addCondAux
public java.util.Vector addCondAux(Cons co, boolean aux)
Adds auxiliary conditions for a given condition.- Parameters:
co- the conditionaux- a flag indicating whether to add auxiliary conditions- Returns:
- a vector of added lines
-
getFlashCond
public JFlash getFlashCond(javax.swing.JPanel panel, Cond co, boolean fb)
Retrieves a flash effect for a given condition.- Parameters:
panel- the panel to display the flash effectco- the conditionfb- a flag indicating whether to clear existing flash effects- Returns:
- the flash effect
-
getFlashCond
public JFlash getFlashCond(javax.swing.JPanel panel, Cond co)
Retrieves a flash effect for a given condition.- Parameters:
panel- the panel to display the flash effectco- the condition- Returns:
- the flash effect
-
getAngleFlash
public JFlash getAngleFlash(javax.swing.JPanel panel, int p1, int p2, int p3, int p4)
Retrieves an angle flash effect for two lines intersecting at a point.- Parameters:
panel- the panel to display the flash effectp1- the first point of the first linep2- the second point of the first linep3- the first point of the second linep4- the second point of the second line- Returns:
- the angle flash effect
-
getMAngleFlash
public JFlash getMAngleFlash(javax.swing.JPanel panel, CPoint p1, CPoint p2, CPoint p3, CPoint p4, int t)
Retrieves a modified angle flash effect for two lines intersecting at a point.- Parameters:
panel- the panel to display the flash effectp1- the first point of the first linep2- the second point of the first linep3- the first point of the second linep4- the second point of the second linet- the type of angle flash effect- Returns:
- the modified angle flash effect
-
getAreaFlashNumber
public int getAreaFlashNumber()
Retrieves the number of area flash effects.- Returns:
- the number of area flash effects
-
getAreaFlash
public JFlash getAreaFlash(wprover.MDrObj d)
Retrieves an area flash effect for a given drawing object.- Parameters:
d- the drawing object- Returns:
- the area flash effect
-
getDrobjFlash
public JFlash getDrobjFlash(wprover.MDrObj d)
Retrieves a flash effect for a given drawing object.- Parameters:
d- the drawing object- Returns:
- the flash effect
-
flashmnode
public void flashmnode(wprover.MNode n)
Renders visual flashing effects for a given node.- Parameters:
n- the node
-
flashmobj
public void flashmobj(wprover.MObject obj)
Renders visual flashing effects for a given object.- Parameters:
obj- the object
-
flashmobj
public void flashmobj(wprover.MObject obj, boolean clear)Renders visual flashing effects for a given object.- Parameters:
obj- the objectclear- whether to clear existing flash effects
-
addlineFlash
public void addlineFlash(CPoint p1, CPoint p2)
Adds a flash effect for a line.- Parameters:
p1- the first point of the linep2- the second point of the line
-
addInfinitelineFlash
public void addInfinitelineFlash(CPoint p1, CPoint p2)
Adds a flash effect for an infinite line.- Parameters:
p1- the first point of the linep2- the second point of the line
-
flashassert
public void flashassert(wprover.MAssertion ass)
Renders visual flashing effects for a given assertion.This method examines the type of the provided
MAssertionand displays the corresponding flash pattern based on the assertion type. It supports various assertion types such as collinearity, parallelism, equality of distances, perpendicularity, cyclic configurations, angle equality, midpoint conditions, congruency, triangle properties, and several others.- Parameters:
ass- the geometric assertion to be processed and flashed; may be null
-
addPtEnlargeFlash
public void addPtEnlargeFlash(CPoint pt)
Adds a flash effect to enlarge a point.- Parameters:
pt- the point to enlarge
-
addCGFlash
public void addCGFlash(CPoint p1, CPoint p2, CPoint p3, CPoint p4)
Adds a flash effect for congruent segments.- Parameters:
p1- the first point of the first segmentp2- the second point of the first segmentp3- the first point of the second segmentp4- the second point of the second segment
-
addAreaFlash1
public void addAreaFlash1(wprover.MAssertion ass)
Adds a flash effect for an area based on an assertion.- Parameters:
ass- the assertion containing the area information
-
addAreaFlash
public void addAreaFlash(wprover.MAssertion ass)
Adds a flash effect for an area based on an assertion.- Parameters:
ass- the assertion containing the area information
-
getAngleFlashLL
public JFlash getAngleFlashLL(javax.swing.JPanel panel, int p, LLine l1, LLine l2)
Retrieves an angle flash effect for two lines intersecting at a point.- Parameters:
panel- the panel to display the flash effectp- the intersection pointl1- the first linel2- the second line- Returns:
- the angle flash effect
-
flashattr
public void flashattr(CClass cc, javax.swing.JPanel panel)
Adds a flash effect for a geometric class.- Parameters:
cc- the geometric classpanel- the panel to display the flash effect
-
find_angFlash
public JAngleFlash find_angFlash(CPoint a, CPoint b, CPoint c, CPoint d)
Finds and returns a JAngleFlash from the flash list that matches the given four points.- Parameters:
a- the first pointb- the second pointc- the third pointd- the fourth point- Returns:
- the matching JAngleFlash if found; otherwise, null
-
addFlashXtermAngle
public JFlash addFlashXtermAngle(XTerm x)
Creates or retrieves a flash angle based on an XTerm object. The flash is added to the flash list and its color is adjusted based on the PV value.- Parameters:
x- the XTerm object containing variable and point indices information- Returns:
- the created or restarted flash; null if the XTerm, its variable, or any required point is not found
-
addFlashAngle
public JFlash addFlashAngle(int a, int b, int c, int d)
Creates or retrieves a flash angle based on the given point indices. The flash is added to the flash list and the panel is repainted.- Parameters:
a- the index of the first pointb- the index of the second pointc- the index of the third pointd- the index of the fourth point- Returns:
- the created or restarted flash; null if any of the points is not found
-
addaux
public void addaux(CProveText cpt)
Processes auxiliary proof text to add the corresponding flashes, marks, or polygons.- Parameters:
cpt- the CProveText object containing condition and proof information
-
addAngleToList2
public void addAngleToList2(CAngle ag)
Adds a CAngle to the angle list. If an angle with similar intersection is already present, the radius is adjusted before adding.- Parameters:
ag- the CAngle object to be added
-
-