Package | Description |
---|---|
jpicedt.format.input.latex |
Parser grammar for the LaTeX picture environment format.
|
jpicedt.format.input.pstricks |
Pstricks grammar tree.
|
jpicedt.format.input.util |
This package contains helper classes for building a parser based on the well-known RegExp scheme,
yet with a strong object-oriented approach in mind.
|
jpicedt.format.output.eepic |
Classes (formatter, view factory,...) related to the epic/eepic content-type.
|
jpicedt.format.output.latex |
Classes (formatter, view factory,...) related to the LaTeX (standard) content-type.
|
jpicedt.format.output.pstricks |
Classes (formatter, view factory,...) related to the PsTricks content-type.
|
jpicedt.graphic |
jPicEdt library core classes and packages.
|
jpicedt.graphic.event |
Various events used for the communication between model, view and controler, as well as to
notify external receivers of changes
in the document structure, appearance,...
|
jpicedt.graphic.io.formatter |
Interfaces and base classes useful to implement a formatter for a given format, for instance Pstricks.
|
jpicedt.graphic.model |
Document structure and graphic primitives.
|
jpicedt.graphic.toolkit |
Controller (document editing through UI actions)
|
jpicedt.graphic.view |
Document appearance.
|
Constructor and Description |
---|
LaTeXInstanciationExpression(java.lang.String tag,
Element prototype,
Pool pl) |
Constructor and Description |
---|
PSTInstanciationExpression(java.lang.String tag,
Element prototype,
Pool pl) |
Modifier and Type | Field and Description |
---|---|
Element |
Pool.currentObj
Convenience used to share information (e.g.
|
Constructor and Description |
---|
InstanciationExpression(java.lang.String tag,
Element prototype,
PicAttributeSet attributes,
Pool pl) |
Modifier and Type | Method and Description |
---|---|
void |
EepicFormatter.appendThicknessString(java.lang.StringBuffer buf,
Element obj)
Create a string representation of the thickness command for the given PicObjet in the eepic format,
and append it to the given StringBuffer.
|
Formatter |
EepicFormatter.createFormatter(Element e) |
View |
EepicViewFactory.createView(Element element) |
Modifier and Type | Method and Description |
---|---|
void |
LatexFormatter.appendThicknessString(java.lang.StringBuffer buf,
Element obj)
Create a string representation of the thickness command for the given PicObjet in the LaTeX format,
and append it to the given StringBuffer.
|
Formatter |
LatexFormatter.createFormatter(Element e) |
View |
LatexViewFactory.createView(Element element) |
Modifier and Type | Method and Description |
---|---|
Formatter |
PstricksFormatter.createFormatter(Element e) |
PstricksFormatter.ParameterString |
PstricksFormatter.createParameterString(Element obj)
Returns PsTricks's "standard" parameter string for the given Element:
linewidth=xxx, linecolor=xxxx, doubleline=true/false and rel.
|
static java.lang.StringBuffer |
PstricksUtilities.createPstricksStringFromArrows(Element obj) |
View |
PstricksViewFactory.createView(Element element) |
Modifier and Type | Method and Description |
---|---|
Element[] |
AbstractSelectionHandler.asArray()
Return the selected elements wrapped in an array.
|
Element[] |
SelectionHandler.asArray()
Return the selected elements wrapped in an array (may be a convenience call to asCollection)
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractSelectionHandler.addToSelection(Element e)
Add the given Element to the current selection.
|
void |
SelectionHandler.addToSelection(Element e)
Add the given Element to the current selection
|
protected void |
PECanvas.fireSelectionUpdate(Element[] elements,
SelectionEvent.EventType type)
Notify all listeners that have registered interest for notification on this event type.
|
protected void |
PECanvas.fireSelectionUpdate(Element element,
SelectionEvent.EventType type)
Notify all listeners that have registered interest for notification on this event type.
|
boolean |
PECanvas.isSelected(Element e) |
boolean |
AbstractSelectionHandler.isSelected(Element e,
boolean includeAncestors)
Return whether the given Element is selected or not.
|
boolean |
SelectionHandler.isSelected(Element e,
boolean includeAncestors)
Return whether the given Element is selected or not
|
void |
AbstractSelectionHandler.replaceSelection(Element e)
Replace the current selection with the given element.
|
void |
SelectionHandler.replaceSelection(Element e)
Replace the current selection with the given element.
|
void |
PECanvas.select(Element obj,
boolean incremental)
select the given element
|
void |
AbstractSelectionHandler.unSelect(Element e)
Unselect the given Element, i.e.
|
void |
PECanvas.unSelect(Element obj)
unselect the given object
|
void |
SelectionHandler.unSelect(Element e)
Unselect the given Element, ie remove it from the current selection.
|
Modifier and Type | Field and Description |
---|---|
protected Element[] |
SelectionEvent.elements
the elements that were (un)selected
|
Modifier and Type | Method and Description |
---|---|
Element |
DrawingEvent.getElement()
Return the graphic element that changed
|
Element[] |
SelectionEvent.getElements()
Return the graphic elements that got selected/unselected.
|
Constructor and Description |
---|
SelectionEvent(PECanvas source,
Element[] elements,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas
Use this constructor when several elements were (un)selected.
|
SelectionEvent(PECanvas source,
Element element,
SelectionEvent.EventType type)
a new SelectionEvent sourced from the given PECanvas.
|
Modifier and Type | Method and Description |
---|---|
Formatter |
FormatterFactory.createFormatter(Element e) |
Formatter |
JPICFormatter.createFormatter(Element e)
Return a Formatter able to format the given Element in the JPIC-XML format
|
protected void |
XmlAttributeSet.putCommonAttributes(Element obj)
Fills the given map with XML-like entries (name->value will translate into name="value" once text formatted)
for common attributes of the given Element, that is,
attributes specific to a given subclass of Element are not included here, but should
be handled directly by the appropriate formatter.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCurve
A curve made up of a concatenation of cubic bezier curves and straight lines,
hereafter globally denoted as "segments".
|
class |
AbstractElement
An abstract class that can serve as the basis class for elements of a Drawing.
|
class |
BranchElement
An abstract class for Element's that allow children.
|
class |
DefaultLeafElement
This is a default implementation of AbstractElement targetting leaf Element's, i.e.
|
class |
Drawing.RootElement
the Element that is the root of the tree of Element's in this Drawing.
|
class |
PicCircleFrom3Points
A class implementing either a circle or an arc, whose geometry is specified by a PicEllipse,
yet is further controllable by three additional points :
this may either be a plain circle going through these three points,
or an arc going from P_1 to P_3 through P_2, in which case a pie or a chord may be added as well.
Superclass control-points are still available here, yet geometry is constrained to a circle by invoking e.g. |
class |
PicEllipse
Ellipse or arc, based on parallelogram
The geometrical model of this ellipse (or its arc counterpart) is based on a parallelogram, yet is equivalent to an ellipse rotated around its center. |
class |
PicGroup
A concrete implementation of BranchElement that is suited for building groups of elements.
|
class |
PicMultiCurve
PicMultiCurve is basically an AbstractCurve where each subdivision point has
additionnal features regarding 2nd-order smoothness and symmetry.
|
class |
PicNodeConnection
This class represents a connection between two DefaultLeafElement's.
|
class |
PicParallelogram
A class implementing a parallelogram.
|
class |
PicPsCurve
A multicurve, either closed or not, going through a set of control points.
|
class |
PicSmoothPolygon
A multicurve, either close or not, whose geometry is specified using a polygon, in such a way that the curve snakes
"smoothly" along the polygon.
|
class |
PicText
Textual elements, possibly surrounded by a box (currently, only rectangular, oval and circular shapes
are supported).
|
class |
TextEditable
An abstract class for Element's that have a textual representation, and [pending:removed as of 1.3.2]
whose text can be graphically edited
|
Modifier and Type | Field and Description |
---|---|
protected Element |
DefaultPointIndexIterator.elem |
protected Element |
AbstractElement.parent
the parent of this element
|
Modifier and Type | Method and Description |
---|---|
Element |
BranchElement.getChildAt(int childIndex) |
Element |
Drawing.DefaultDrawingEvent.getElement() |
Element |
Drawing.getElement(int i) |
Element |
AbstractElement.getParent()
Gets the parent of the element.
|
Element |
Drawing.RootElement.getParent()
Gets the parent of the element.
|
Element |
Element.getParent()
Gets the parent of the element.
|
Modifier and Type | Method and Description |
---|---|
void |
BranchElement.addChild(Element child)
add the given child to this BranchElement, setting its parent to this.
|
void |
BranchElement.addChild(int position,
Element child)
insert the given child in this BranchElement at the given position, setting its parent to this,
and create a view for the child using the ViewFactory that produced the View for this
BranchElement.
|
void |
Drawing.addElement(Element element)
Add the given element to this Drawing
|
void |
BranchElement.bringBackward(Element obj)
Move the given child one position backward, i.e.
|
void |
BranchElement.bringForward(Element obj)
Move the given child one position forward, i.e.
|
void |
BranchElement.bringToBack(Element obj)
Move the given child to back (i.e.
|
void |
BranchElement.bringToFront(Element obj)
Move the given child to front, i.e.
|
boolean |
BranchElement.contains(Element o) |
protected void |
Drawing.fireChangedUpdate(Element changed,
DrawingEvent.EventType type)
Notify all listeners that have registered interest for notification on this event type.
|
void |
BranchElement.forwardChangedUpdate(Element child,
DrawingEvent.EventType eventType)
Called by a child of this BranchElement to inform its parent of some change that occured to it or one of its children.
|
void |
DefaultLeafElement.forwardChangedUpdate(Element child,
DrawingEvent.EventType eventType)
Called by a child of this element to inform its parent of some change that occured to it or one of its children.
|
void |
Drawing.RootElement.forwardChangedUpdate(Element child,
DrawingEvent.EventType eventType)
Called by a child to inform of some change that occured to it or one of its children.
|
void |
Element.forwardChangedUpdate(Element child,
DrawingEvent.EventType eventType)
Called by a child of this element to inform its parent of some change that occured to it or one of its children.
|
void |
PicNodeConnection.forwardChangedUpdate(Element node,
DrawingEvent.EventType eventType)
Called by a child-node (=a DefaultLeafElement) to inform this connection of some change that occured to
one of its nodes.
|
int |
BranchElement.getChildIndex(Element node)
Returns the index of the given Element in the receivers children.
|
boolean |
BranchElement.isToBack(Element obj) |
boolean |
BranchElement.isToFront(Element obj) |
void |
BranchElement.removeChild(Element child)
remove the given child from this BranchElement, setting its parent to null so that
the given child become (possibly) eligible for garbage collection if there are no other
reference to it.
|
void |
Drawing.removeElement(Element element)
Remove the given graphic object from this Drawing, overriden so as to
update selection if this element was selected.
|
void |
BranchElement.replaceChild(int position,
Element newChild)
replace the child at the given position by the given child
|
void |
Drawing.replaceElement(Element src,
Element dest)
Replace the given "src" element with the given "dest" element, if "src" belongs to this drawing.
|
void |
Drawing.replaceElement(int index,
Element element)
Replace the element at the given index with the given graphic element
No effet if "element" already belongs to the drawing.
|
void |
AbstractElement.setParent(Element p)
Sets the parent of this element to be the given element.
|
void |
Drawing.RootElement.setParent(Element p)
Sets the parent of the element.
|
void |
Element.setParent(Element p)
Sets the parent of the element.
|
Constructor and Description |
---|
DefaultPointIndexIterator(Element e)
create a new PointIndexIterator for the given Element
|
Drawing.DefaultDrawingEvent(Element element,
DrawingEvent.EventType type) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSelectionHandler
Stores references to selected Element's.
|
Modifier and Type | Method and Description |
---|---|
Element[] |
DefaultSelectionHandler.asArray() |
protected Element |
AbstractMouseTransform.getClone()
Return the clone of the target element, which was init'd by
startTransform |
Element |
EditPointMouseTransformFactory.SelectedPointsHandler.getElement()
returns the current target Element
|
Element |
DefaultSelectionHandler.getParent()
Gets the parent of the element.
|
protected Element |
PEAction.getSelectedObject()
Returns the selected graphic element in the target board ;
|
protected Element |
AbstractMouseTransform.getTarget()
Return the element this transform acts upon
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultSelectionHandler.addChild(Element child)
overriden so that the parent of the added element isn't set to this, and its view is left unchanged.
|
void |
DefaultSelectionHandler.addToSelection(Element e)
Add the given Element to the current selection
|
boolean |
DefaultSelectionHandler.isSelected(Element e,
boolean includeAncestors) |
protected boolean |
EditPointMouseTransformFactory.isValidTarget(Element e)
Return true is the given element is a valid target for this factory.
|
void |
DefaultSelectionHandler.removeChild(Element child)
overriden so as to leave child's parent and view unchanged.
|
void |
DefaultSelectionHandler.replaceSelection(Element e)
Replace the current selection with the given element.
|
void |
EditPointMouseTransformFactory.SelectedPointsHandler.setElement(Element e)
sets the current Element and clears the list of selected-points
|
void |
DefaultSelectionHandler.unSelect(Element e)
Unselect the given Element, ie remove it from the current selection.
|
Constructor and Description |
---|
AbstractMouseTransform(Element target) |
DrawToolFactory.GenericDrawTool(Element prototype,
EditPointConstraint constraint)
The
drawPoints array gets computed
from all available control-points for the given element. |
DrawToolFactory.GenericDrawTool(Element prototype,
EditPointConstraint constraint,
int[][] drawPoints) |
EditElementMouseTransformFactory._MoveControlPointTransform(Element target,
int pointIndex,
EditPointConstraint constraint,
java.lang.String helpMessage,
Grid grid) |
EditElementMouseTransformFactory._MoveElementTransform(Element target,
PicPoint clickPt,
Grid grid) |
EditElementMouseTransformFactory.MoveControlPointTransform(Element target,
int pointIndex,
EditPointConstraint constraint,
java.lang.String helpMessage,
Grid grid) |
EditElementMouseTransformFactory.MoveElementTransform(Element target,
PicPoint clickPt,
Grid grid) |
EditElementMouseTransformFactory.SelectElementsInAreaTransform(Element target,
boolean addToSelection) |
EditElementMouseTransformFactory.UnselectTransform(Element target) |
EditPointMouseTransformFactory.SelectElementTransform(Element target) |
MoveTool(EditorKit kit,
Element target) |
RotateTool(EditorKit kit,
Element target) |
ScaleTool(EditorKit kit,
Element target) |
TransferableGraphic(Element[] elements,
java.lang.String formatted)
Construct a new TransferableGraphic from a clone of the given elements and the given String
containing the formatted representation of the elements (this depends on the ContentType of
of the caller).
|
Modifier and Type | Field and Description |
---|---|
protected Element |
AbstractView.element
the graphic element that this View renders
|
protected Element |
DefaultHighlighterFactory.DefaultHighlighter.element
highlighted Element
|
Modifier and Type | Method and Description |
---|---|
Element |
HitInfo.Composite.getClickedChild() |
Element |
AbstractView.getElement() |
Element |
DefaultHighlighterFactory.DefaultHighlighter.getElement()
returns the higlighted Element
|
Element |
View.getElement() |
Element |
HitInfo.getTarget() |
Modifier and Type | Method and Description |
---|---|
Highlighter |
DefaultHighlighterFactory.createHighlighter(Element element) |
Highlighter |
HighlighterFactory.createHighlighter(Element element) |
View |
DefaultViewFactory.createView(Element element) |
View |
ViewFactory.createView(Element element) |
void |
AbstractView.setElement(Element e)
set the element the View is responsible for rendering
|
void |
View.setElement(Element e)
set the element the View is responsible for rendering
|
Constructor and Description |
---|
AbstractView(Element element)
construct a new View for the given Element
|
AbstractView(Element element,
Highlighter h)
construct a new View for the given Element, delegating highlighting
to the given Highlighter.
|
DefaultHighlighterFactory.DefaultHighlighter(Element element) |
DefaultViewFactory.LeafElementView(Element e)
construct a new View for the given Element
|
HitInfo.EnvelopeStroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
Deprecated.
|
HitInfo.HighlighterStroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent) |
HitInfo.Interior(Element clickedObject,
PEMouseEvent mouseEvent)
construct a new HitInfo.Interior that occured on the given Element
|
HitInfo.Point(Element clickedObject,
java.util.ArrayList pointIndices,
PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given points simultaneously.
|
HitInfo.Point(Element clickedObject,
int pointIndex,
PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given point index
|
HitInfo.Stroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
construct a new HitInfo.Stroke that occured on the stroke of the given Element
|
HitInfo(Element clickedObject,
PEMouseEvent mouseEvent)
Construct a new HitInfo when a click occured on an object's end-point
|
Submit a bug : syd@jpicedt.org