Logo Search packages:      
Sourcecode: wims version File versions

rene::zirkel::ZirkelCanvas Class Reference

Inheritance diagram for rene::zirkel::ZirkelCanvas:

List of all members.


Detailed Description

Author:
Rene Main class, doing most of the work in the C.a.R. application. This canvas handles mouse and keyboard input, displays the construction and has tools to save and load constructions.

Definition at line 36 of file ZirkelCanvas.java.


Public Member Functions

void actionPerformed (ActionEvent e)
synchronized void addDrawing (Drawing d)
void added (Construction c, ConstructionObject o)
void addJobTarget (ConstructionObject target, boolean visible)
void addObject (ConstructionObject o)
void addStatusListener (StatusListener sl)
void allowRightMouse (boolean flag)
void appendMacro (Macro m)
synchronized void back ()
void bind (PointObject p)
void breakpointLast (boolean flag, boolean hiding)
void callCDAction (String action)
void callCDItem (String action, boolean flag)
void callCDToggleItem (String action)
boolean canConvert (Construction c, TwoPointLineObject o)
boolean changed ()
void check ()
boolean check (Construction c)
Macro chooseMacro (String name)
Macro chooseMacro ()
Vector chooseMacros ()
synchronized void clear ()
synchronized void clearDrawings ()
void clearIndicated ()
void clearJob ()
void clearMacros ()
void clearNonprotectedMacros ()
void clearPreview ()
void clearProtectedMacros ()
void clearSelected ()
void clearTargets ()
double col (double x)
Macro copyMacro (Macro m, String name, boolean fixed[])
LatexOutput createBB (String filename, int w, int h, double dpi)
void createCurve ()
void createFunction ()
double dCenter (double x, double y)
void defineMacro (String name, String comment, Construction c) throws ConstructionException
void defineMacro (Construction c, Macro m, boolean targetsonly, boolean superhide, String prompt[], boolean hideduplicates) throws ConstructionException
void delete (Vector v)
void delete (ConstructionObject o)
void deleteMacro (MacroItem m)
void deleteMacros (Vector v)
boolean depends (ConstructionObject o, ConstructionObject on)
boolean displayJob ()
void displayJob (boolean flag)
Image doLoadImage (String filename)
synchronized void doMouseDragged (MouseEvent e)
synchronized void dovalidate ()
double dx (double c)
double dx (int c)
double dy (double r)
double dy (int r)
void editLast ()
boolean enabled (String function)
void endWaiting ()
void filter (MyVector v, int x, int y)
void filter (MyVector v, int x, int y, boolean choice)
ConstructionObject findSelectedObject ()
String format (double x)
void freeJob ()
boolean getBoldFont ()
String getComment ()
Construction getConstruction ()
ObjectConstructor getCurrentTool ()
int getDefaultColor ()
int getDefaultColorType ()
int getDefaultType ()
Frame getFrame ()
double getGridSize ()
String getJobComment ()
boolean getLargeFont ()
boolean getLongNames ()
Vector getMacros ()
Dimension getMinimumSize ()
boolean getObtuse ()
ObjectConstructor getOC ()
boolean getPartial ()
boolean getPartialLines ()
Dimension getPreferredSize ()
boolean getRestricted ()
int getShowColor ()
boolean getShowHidden ()
boolean getShowNames ()
boolean getShowValues ()
boolean getSolid ()
boolean getVectors ()
void grab (boolean flag)
boolean haveMacros ()
boolean haveNonprotectedMacros ()
int height ()
void hideDuplicates ()
void hideDuplicates (ConstructionObject from)
void hideMessage ()
boolean hides (ConstructionObject o)
void indicate (MyVector v)
void indicate (MyVector v, boolean showname)
void indicateCircleLineObjects (int x, int y)
void indicateCircles (int x, int y)
void indicateConstructableObjects (int x, int y)
void indicateCreatePoint (int x, int y, boolean multiple)
void indicateIntersectedObjects (int x, int y)
void indicateLineObjects (int x, int y)
void indicateMoveableObjects (int x, int y)
void indicateMoveableObjects (int x, int y, boolean control)
void indicateObjects (int x, int y)
void indicateObjects (int x, int y, boolean showname)
void indicatePointObjects (int x, int y, ConstructionObject until)
void indicatePointObjects (int x, int y)
void indicatePointonObjects (int x, int y)
void indicatePointsOrLines (int x, int y)
void indicateRays (int x, int y)
void indicateSegments (int x, int y)
ConstructionObject indicateTryCreateIntersection (int x, int y, boolean ask)
void indicateTwoPointLines (int x, int y)
void indicateWithSelector (int x, int y, Selector sel, ConstructionObject until)
void indicateWithSelector (int x, int y, Selector sel)
boolean inTargets (String s)
boolean isInside (double x, double y)
boolean isJob ()
boolean isNewPoint ()
boolean isPreview ()
void itemStateChanged (ItemEvent e)
void load (InputStream in) throws Exception
void load (InputStream in, boolean construction, boolean macros) throws Exception
void loadDrawings (XmlTree tree) throws ConstructionException
String loadImage ()
void loadMacro (BufferedReader in, String name) throws ConstructionException
void loadRun (InputStream is)
void magnify (double f)
double maxX ()
double maxY ()
double minX ()
double minY ()
synchronized void mouseClicked (MouseEvent e)
synchronized void mouseDragged (MouseEvent e)
void mouseEntered (MouseEvent e)
synchronized void mouseExited (MouseEvent e)
synchronized void mouseMoved (MouseEvent e)
synchronized void mousePressed (MouseEvent e)
synchronized void mouseReleased (MouseEvent e)
void mouseWheelMoved (MouseWheelEvent e)
void movePreview (MouseEvent e)
boolean needed (Construction c, ConstructionObject o, ConstructionObject besides)
void newImage ()
void notifyChanged ()
synchronized void paint (Graphics g)
synchronized void paintDrawings (MyGraphics g)
int paintHotEqn (int c, int r, Graphics g)
void paintTrack (MyGraphics g)
void paintUntil (ConstructionObject o)
void pause (boolean flag)
double pointSize ()
void prepareForPreview (MouseEvent e)
synchronized void print (Graphics g, int W, int H)
void protectMacros ()
void range (PrimitiveCircleObject c)
void recompute ()
void reloadCD ()
void renameABC (ConstructionObject o, boolean enforce, boolean reset)
void renameMacro (Macro macro, String name)
void repaintCD ()
boolean replaceMacro (Macro m, int i, boolean all)
void reset ()
synchronized void resetGraphics ()
void resetSum ()
void returnPressed ()
double row (double y)
void save (OutputStream o, boolean construction, boolean macros, boolean protectedmacros, Vector Macros, String Restrict) throws IOException
void saveDrawings (XmlWriter xml)
void saveEPS (String filename)
void saveFIG (String filename)
void savePDF (String filename)
synchronized boolean savePNG (String filename, boolean latex)
void savePreviewAsPNG (String filename)
void saveSVG (String filename)
int scale (int x)
ConstructionObject select (MyVector v)
ConstructionObject select (MyVector v, boolean choice)
ConstructionObject select (MyVector v, int x, int y)
ConstructionObject select (MyVector v, int x, int y, boolean choice)
void selectAllMoveableVisibleObjects ()
PrimitiveCircleObject selectCircle (int x, int y)
PrimitiveCircleObject selectCircle (int x, int y, boolean multiple)
ConstructionObject selectCircleLine (int x, int y)
ConstructionObject selectCircleLine (int x, int y, boolean multiple)
MyVector selectCircleLineObjects (int x, int y)
MyVector selectCircleLineObjects (int x, int y, boolean multiple)
MyVector selectCircleLineObjects (int x, int y, boolean multiple, boolean testlocal)
void selectCircles (int x, int y, boolean multiple)
ConstructionObject selectConstructableObject (int x, int y)
MyVector selectConstructableObjects (int x, int y)
MyVector selectConstructableObjects (int x, int y, boolean multiple)
PointObject selectCreatePoint (int x, int y, boolean multiple)
PointObject selectCreatePoint (int x, int y)
PointObject selectCreatePoint (int x, int y, boolean multiple, boolean any)
ConstructionObject selectImmediateMoveableObject (int x, int y)
ConstructionObject selectImmediateMoveablePoint (int x, int y)
double selectionSize ()
ConstructionObject selectLabel (int x, int y)
PrimitiveLineObject selectLine (int x, int y)
PrimitiveLineObject selectLine (int x, int y, boolean multiple)
void selectLineObjects (int x, int y, boolean multiple)
ConstructionObject selectMoveableObject (int x, int y)
void selectMoveableObjects (int x, int y)
void selectMoveableObjects (int x, int y, boolean control)
ConstructionObject selectMoveablePoint (int x, int y)
ConstructionObject selectObject (int x, int y)
ConstructionObject selectObject (int x, int y, boolean multiple)
MyVector selectObjects (int x, int y)
MyVector selectObjects (int x, int y, boolean multiple)
PointObject selectPoint (int x, int y, ConstructionObject until)
PointObject selectPoint (int x, int y, boolean multiple, ConstructionObject until)
PointObject selectPoint (int x, int y)
PointObject selectPoint (int x, int y, boolean multiple)
void selectPointObjects (int x, int y, boolean multiple, ConstructionObject until)
void selectPointObjects (int x, int y, boolean multiple)
ConstructionObject selectPointonObject (int x, int y)
ConstructionObject selectPointonObject (int x, int y, boolean multiple)
MyVector selectPointonObjects (int x, int y)
MyVector selectPointonObjects (int x, int y, boolean multiple)
MyVector selectPointonObjects (int x, int y, boolean multiple, boolean testlocal)
void selectPointsOrLines (int x, int y, boolean multiple)
RayObject selectRay (int x, int y)
RayObject selectRay (int x, int y, boolean multiple)
void selectRays (int x, int y, boolean multiple)
SegmentObject selectSegment (int x, int y)
SegmentObject selectSegment (int x, int y, boolean multiple)
void selectSegments (int x, int y, boolean multiple)
TwoPointLineObject selectTwoPointLine (int x, int y)
TwoPointLineObject selectTwoPointLine (int x, int y, boolean multiple)
void selectTwoPointLines (int x, int y, boolean multiple)
ConstructionObject selectWithSelector (int x, int y, Selector sel)
ConstructionObject selectWithSelector (int x, int y, Selector sel, boolean choice)
ConstructionObject selectWithSelector (int x, int y, Selector sel, ConstructionObject until)
ConstructionObject selectWithSelector (int x, int y, Selector sel, ConstructionObject until, boolean choice)
void set (FixedCircleObject c)
void set (FixedAngleObject a)
void setAway (IntersectionObject p, boolean away)
void setBackground (Image i)
void setBoldFont (boolean flag)
void setComment (String s)
void setCurveCenter (FunctionObject p)
void setDefaultColor (int c)
void setDefaultColorType (int c)
void setDefaultType (int c)
void setDoneListener (DoneListener dl)
void setFrame (Frame f)
void setFrozen (boolean f)
void setGrid ()
void setHidden (boolean flag)
void setHotEqn (String s)
void setInteractive (boolean flag)
void setJob (ConstructionObject last)
void setJobComment (String s)
void setLargeFont (boolean flag)
void setLongNames (boolean flag)
void setMacroBar (MacroBar m)
void setObtuse (boolean flag)
void setPartial (boolean flag)
void setPartialLines (boolean flag)
void setPreviewObject (MoveableObject o)
void setPrompt (String s)
void setReadOnly (boolean flag)
void setRestricted (boolean flag)
void setShowColor (int i)
void setShowGrid (boolean flag)
void setShowHidden (boolean flag)
void setShowNames (boolean flag)
void setShowValues (boolean flag)
void setSolid (boolean flag)
void setSuddenTool (ObjectConstructor oc)
void setTextField (TextField t)
void setTool (ObjectConstructor oc)
void setVectors (boolean flag)
void setZirkelCanvasListener (ZirkelCanvasInterface zci)
void shift (double dx, double dy)
boolean showGrid ()
boolean showHidden ()
void showMessage (String s)
void showStatus ()
void showStatus (String s)
void sort (MyVector V)
void sortRow (MyVector V)
void startWaiting ()
void storeMacro (Macro m, boolean all)
void toggleShowGrid ()
ConstructionObject tryCreateIntersection (int x, int y, boolean ask)
synchronized void undo ()
void update (Graphics g)
void updateBreakHide ()
void updateDigits ()
void updateMacroBar ()
void updateTexts (ConstructionObject o, String oldname)
void validate ()
void warning (String s)
void warning (String s, String help)
int width ()
double x (int c)
double y (int r)
 ZirkelCanvas (boolean readonly)
 ZirkelCanvas (boolean readonly, boolean replay, boolean hidden)

Public Attributes

boolean AxesOnly = false
ConstructionDisplayPanel CDP = null
double DX
double DY
boolean GridBold = false
int GridColor = 0
boolean GridLabels = true
boolean GridLarge = false
int GridThickness = ConstructionObject.THIN
Image I = null
int IH = 0
int IW = 0
String MacroCurrentComment
MacroMenu MM = null
boolean ProtectMacros = false
double Scale = 1.0
double SelectionPointFactor = Global.getParameter("selectionsize",1.5)
boolean ShowGrid = false
boolean SmartBoardPreview = false
Dimension UseSize = null
boolean Visual = Global.getParameter("options.visual",true)
double Xmin
double Ymin

Static Public Attributes

static double AnglesFactor = 1.0
static double EditFactor = 1000000.0
static double LengthsFactor = 100.0

Package Functions

boolean defineMacro ()
void dopaint (MyGraphics IG)
void dopaintFig (MyGraphicsFig IG)
void paintAxes (MyGraphics IG)
void paintGrid (MyGraphics IG)
boolean rekformat (double h, int k)

Package Attributes

boolean All
boolean AllowRightMouse = true
int AngleLast
Image Background = null
MyVector Breaks = new MyVector()
Construction C = new Construction()
int CC = 0
CheckboxMenuItem CheckboxHidden
boolean Control = false
Construction COriginal
DoneListener DL
boolean Dragging = false
MyVector Drawings = new MyVector()
DragThread DT = null
MenuItem Empty
Frame F = new Frame()
FontMetrics FM
double FontSize = 12.0
boolean Frozen = false
sHotEqn HE = null
MyGraphics IG
MyVector Indicated = new MyVector()
PointObject IndicatePoint = null
boolean Interactive = true
boolean IntersectionYes = false
boolean Job = false
String Last = ""
ConstructionObject LastNonPreview = null
ConstructionObject LastPaint = null
int LineLast
Vector Macros = new Vector()
MacroBar MBar
double MinFontSize = 12.0
double MinPointSize = 3.0
int Moved = 0
MessageWindow MW
int nc
boolean NewPoint = false
ObjectConstructor OC = new MoverTool()
Image OldBackground = null
PopupMenu PM
int PointLast
double PointSize = 4.0
final double PointSizeFactor = 240.0
boolean Preview = false
MoveableObject PreviewObject = null
boolean ReadOnly
MenuItem Replay
boolean RightClicked = false
int ShowColor = 0
boolean ShowHidden = false
StatusListener SL = null
ConstructionObject TargetO []
ConstructionObject TargetS []
Vector Targets = new Vector()
TextField TF
MyVector V = new MyVector()
int xg [] = new int[64]
int yg [] = new int[64]
ZirkelCanvasInterface ZCI

Static Package Attributes

static char c [] = new char[20]

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

Generated by  Doxygen 1.6.0   Back to index