Logo Search packages:      
Sourcecode: wims version File versions

rene::zirkel::macro::Macro Class Reference

Inheritance diagram for rene::zirkel::macro::Macro:

rene::zirkel::construction::Construction

List of all members.


Detailed Description

Macros are stored as constructions. Some of the construction objects are parameters, which divide into two groups: primary parapemers and secondary parameters (e.g. endpoints of a segment). Moreover, there is a separate list of the primary parameters and the prompts to display to the user at each primary parameter. Some objects are marked as targets.

Definition at line 21 of file Macro.java.


Public Member Functions

void add (ConstructionObject o)
void addAddEventListener (AddEventListener ael)
void added (ConstructionObject o)
void addError (String s)
void addNoCheck (ConstructionObject o)
void addParameter (ConstructionObject o)
void addTarget (ConstructionObject o)
void addTranslator (Translator t)
void back ()
boolean before (ConstructionObject first, ConstructionObject second)
boolean canAlternate ()
void changed (boolean flag)
boolean changed ()
synchronized void clear ()
void clearAfter (ConstructionObject after)
void clearConstructables ()
void clearErrors ()
void clearParameters ()
void clearRekFlags ()
void clearSwitches ()
void clearTargets ()
void clearTranslations ()
void clearTranslators ()
Object clone ()
void computeNeedsOrdering ()
void computeTracks (ZirkelCanvas zc)
int countParameters ()
int countPrompts ()
int countTail (ConstructionObject o)
int countTargets ()
void delete ()
void delete (boolean clearUndo)
boolean dependsDirectlyOn (ConstructionObject o, ConstructionObject on)
boolean dependsOn (ConstructionObject o, ConstructionObject on)
boolean dependsOnRek (ConstructionObject o, ConstructionObject on)
void determineChildren ()
boolean determineConstructables (ConstructionObject o)
void determineConstructables ()
void dontAlternate (boolean flag)
void doOrder ()
void dovalidate ()
void dovalidateDebug ()
Enumeration elements ()
ConstructionObject find (String name, ConstructionObject until)
ConstructionObject find (String name)
ConstructionObject findInclusive (String name, ConstructionObject until)
String getComment ()
Enumeration getErrors ()
double getH ()
String getJobComment ()
String getLast (int i)
String getName ()
Vector getParameters ()
ConstructionObject[] getParams ()
double getPixel ()
String[] getPromptFor ()
int getPromptFor (String s)
String getPromptName (String s)
String[] getPrompts ()
Enumeration getSortedElements ()
Vector getTargets ()
Construction getTranslation ()
double getW ()
double getX ()
double getY ()
boolean hasFixed ()
void haveChanged ()
boolean haveSwitched ()
void hideDuplicates (boolean flag)
boolean hideDuplicates ()
int indexOf (ConstructionObject o)
void initLast ()
void interpret (ZirkelCanvas zc, String s) throws ConstructionException
void interpret (ZirkelCanvas zc, String s, String comment) throws ConstructionException
boolean intersectionBecameInvalid ()
boolean isFixed (int i)
boolean isProtected ()
ConstructionObject last ()
ConstructionObject lastButOne ()
ConstructionObject lastByNumber ()
ConstructionObject lastDep (ConstructionObject o)
synchronized void load (XmlTree tree, ZirkelCanvas zc) throws ConstructionException
boolean loading ()
 Macro (ZirkelCanvas zc, XmlTree tree) throws ConstructionException
 Macro (ZirkelCanvas zc, String name, String comment, String s[])
void needsOrdering ()
boolean noteSwitch ()
boolean promptFor (String s)
synchronized void readConstruction (XmlTree tree) throws ConstructionException
void recursiveValidate (ConstructionObject o, ConstructionObject avoid)
void removeAddEventListener (AddEventListener ael)
boolean reorder (ConstructionObject o1, ConstructionObject o2)
void reorderConstruction ()
void runTranslators (Construction from)
void save (XmlWriter xml)
void saveMacro (XmlWriter xml)
void setComment (String s)
void setFixed (int i, boolean f)
void setH (double h)
void setJobComment (String s)
void setLast (String name, int i)
void setName (String name)
void setOriginalOrder (boolean flag)
void setParameterAsConstructables ()
void setParams (ConstructionObject p[])
void setPixel (double pixel)
void setPromptFor (String s[])
void setPromptName (int i, String s)
void setProtected (boolean flag)
void setTranslation (Construction C)
void setXYW (double x, double y, double w)
void shouldSwitch (boolean flag)
void shouldSwitch (boolean flag, boolean note)
boolean shouldSwitch ()
void switchBack ()
void testParameter (ConstructionObject o) throws ConstructionException
void translateOffsets (ZirkelCanvas zc)
void undo ()
void updateCircleDep ()
void updateCount ()
void updateTexts (ConstructionObject o, String oldname)
void validate (ConstructionObject o, ConstructionObject avoid)

Public Attributes

boolean Animate = false
boolean AnimateBreakpoints = false
String AnimateDelay = null
boolean AnimateLoop = false
boolean AnimateNegative = false
boolean AnimateOriginal = false
String AnimateP = null
long AnimateTime = 1000
Vector AnimateV = null
String BackgroundFile = null
boolean BlockSimulation = false
boolean BoldFont = Global.getParameter("options.boldfont",false)
boolean Changed = false
ChangedListener CL = null
String Comment = ""
int DefaultColor = Global.getParameter("options.color",0)
int DefaultColorType = Global.getParameter("options.colortype",0)
int DefaultType = Global.getParameter("options.type",0)
boolean DontAlternateIntersections = false
boolean Fixed []
boolean Hidden = false
String Icons = ""
String JobComment = ""
boolean LargeFont = Global.getParameter("options.largefont",false)
String LastParams []
boolean Loading = false
boolean LongNames = Global.getParameter("options.longnames",false)
String Name
boolean Obtuse = Global.getParameter("options.obtuse",false)
int Omit = 0
boolean Paint = false
Vector Parameters
ConstructionObject Params []
boolean Partial = Global.getParameter("options.partial",false)
boolean PartialLines = Global.getParameter("options.plines",false)
String PromptFor [] = new String[0]
String PromptName [] = new String[0]
String Prompts []
boolean ResizeBackground = false
boolean Restricted = Global.getParameter("options.restricted",true)
boolean ShowAll = false
boolean ShowNames = Global.getParameter("options.shownames",false)
boolean ShowValues = Global.getParameter("options.showvalues",false)
boolean Solid = Global.getParameter("options.solid",false)
boolean SuperHide = false
Vector Targets
String TrackO = null
String TrackP = null
String TrackPM = null
Vector TrackPO
Construction TranslateInto
MyVector TranslatorList = new MyVector()
Vector V
boolean Vectors = Global.getParameter("options.arrow",false)

Package Attributes

int Count = 0
Vector Errors = new Vector()
boolean HideDuplicates = true
Interpreter Int = new Interpreter(this)
boolean IntersectionBecameInvalid
boolean NeedsOrdering = false
boolean NoteSwitch = false
ObjectConstructor ObjectConstructors []
double Pixel = 100
boolean Protected = false
boolean ShouldSwitch = false
Vector Undo = new Vector()
Vector VOld = null

Static Package Attributes

static final long serialVersionUID = Zirkel.Version

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index