Package | Description |
---|---|
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.graphic.model |
Document structure and graphic primitives.
|
jpicedt.graphic.toolkit |
Controller (document editing through UI actions)
|
jpicedt.graphic.view |
Document appearance.
|
Modifier and Type | Method and Description |
---|---|
PicAttributeSet |
Pool.getAttributeSet(Pool.Key key)
Convenience for retrieving a "PicAttributeSet" value ; can be used in conjunction with
static methods defined in jpicedt.graphic.model.StyleConstants to retrieve
attributes values with less burden.
|
Constructor and Description |
---|
InstanciationExpression(java.lang.String tag,
Element prototype,
PicAttributeSet attributes,
Pool pl) |
Modifier and Type | Method and Description |
---|---|
protected Arrow |
EepicViewFactory.createArrow(PicAttributeSet set,
PicAttributeName direction) |
protected java.awt.Paint |
EepicViewFactory.createPaintForInterior(PicAttributeSet set) |
protected java.awt.Paint |
EepicViewFactory.createPaintForOutline(PicAttributeSet set) |
protected java.awt.Stroke |
EepicViewFactory.createStroke(PicAttributeSet set) |
protected void |
EepicViewFactory.paintHatches(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint hatches (vlines,...) depending on the FILL_STYLE attributes of the given set.
|
protected void |
EepicViewFactory.paintOverStrike(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint overstrike ; overriden to do nothing
|
protected void |
EepicViewFactory.paintShadow(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint shadow ; overriden to do nothing, since eepic and LaTeX don't support shadowing
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Paint |
LatexViewFactory.createPaintForInterior(PicAttributeSet set)
Returns LATEX_FILL, ie black filling only is allowed.
|
Modifier and Type | Field and Description |
---|---|
protected PicAttributeSet |
AbstractElement.attributeSet
the attribute set
|
protected PicAttributeSet |
PicAttributeSet.parent
if non-null, used as the resolving parent when name is not found in current set
|
Modifier and Type | Method and Description |
---|---|
PicAttributeSet |
PicAttributeSet.copyAttributes()
return a copy of this PicAttributeSet with the same resolving parent as the source,
and which is guaranteed not to change over time.
|
PicAttributeSet |
AbstractElement.getAttributeSet()
Returns the AttributeSet bound to this AbstractElement.
|
PicAttributeSet |
Element.getAttributeSet() |
PicAttributeSet |
PicAttributeSet.getResolveParent()
Returns the resolving parent, or DEFAULT_SET if it's null.
|
Modifier and Type | Method and Description |
---|---|
static double |
StyleConstants.getArrowGlobalScaleLength(PicAttributeSet set)
Returns the scale-factor for the arrow length
|
static double |
StyleConstants.getArrowGlobalScaleWidth(PicAttributeSet set)
Returns the scale-factor for the arrow width
|
static double |
StyleConstants.getArrowInsetScale(PicAttributeSet set)
Returns the arrow inset scale-factor (actual inset = ARROW_INSET * actual length)
|
static double |
StyleConstants.getArrowLengthScale(PicAttributeSet set)
Returns the arrow length scale-factor (actual length (or height) = actual width * ARROW_LENGTH)
|
static double |
StyleConstants.getArrowWidthLineWidthScale(PicAttributeSet set)
Returns the linewidth scale-factor for the arrow width (width = line-width-scale * line-width + minimum_size)
|
static double |
StyleConstants.getArrowWidthMinimumMm(PicAttributeSet set)
Returns the relative size for arrows (width = linewidth-scale * line-width + minimum_size)
|
static double |
StyleConstants.getBracketLengthScale(PicAttributeSet set)
Returns the bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH)
|
static double |
StyleConstants.getDashOpaque(PicAttributeSet set)
Return the opaque dash length , guaranteed to be positive.
|
static double |
StyleConstants.getDashTransparent(PicAttributeSet set)
Return the transparent dash length , guaranteed to be positive.
|
static java.lang.String |
StyleConstants.getDimen(PicAttributeSet set)
Return a String (OUTER, MIDDLE or INNER) indicating whether the dimensions of boxes, circles,...
|
static double |
StyleConstants.getDotSep(PicAttributeSet set)
Return the dot separation, guaranteed to be positive.
|
static java.awt.Color |
StyleConstants.getDoubleLineColor(PicAttributeSet set)
Return the double-line colour
|
static double |
StyleConstants.getDoubleLineSep(PicAttributeSet set)
Return the DoubleLine separation, guaranteed to be positive.
|
static java.awt.Color |
StyleConstants.getFillColor(PicAttributeSet set)
Return the fill colour
|
static java.lang.String |
StyleConstants.getFillStyle(PicAttributeSet set)
Return the fill style
|
static double |
StyleConstants.getHatchAngle(PicAttributeSet set)
Return the hatch angle, guaranteed to be b/w -90 and 90.
|
static java.awt.Color |
StyleConstants.getHatchColor(PicAttributeSet set)
Return the hatch colour
|
static double |
StyleConstants.getHatchSep(PicAttributeSet set)
Return the distance b/w hatches, guaranteed to be positive
|
static double |
StyleConstants.getHatchWidth(PicAttributeSet set)
Return the hatch width, guaranteed to be positive
|
static Arrow |
StyleConstants.getLeftArrow(PicAttributeSet set)
Return the left arrow
|
static java.awt.Color |
StyleConstants.getLineColor(PicAttributeSet set)
Return the stroke color
|
static java.lang.String |
StyleConstants.getLineStyle(PicAttributeSet set)
Return the line style
|
static double |
StyleConstants.getLineWidth(PicAttributeSet set)
Return the line width, guaranteed to be positive.
|
static java.awt.Color |
StyleConstants.getOverStrikeColor(PicAttributeSet set)
Return the border color
|
static double |
StyleConstants.getOverStrikeWidth(PicAttributeSet set)
Return the overstrike width, guaranteed to be positive.
|
static double |
StyleConstants.getPolydotsAngle(PicAttributeSet set)
Returns the factor by which dots are to be rotated (in degrees and CCW)
|
static double |
StyleConstants.getPolydotsHorizontalScale(PicAttributeSet set)
Returns the factor by which dots are to be scaled horizontally
|
static double |
StyleConstants.getPolydotsSizeLineWidthScale(PicAttributeSet set)
Returns the line-width scale for polygon dots (size = linewidth-scale * line-width + minimum_size)
|
static double |
StyleConstants.getPolydotsSizeMinimumMm(PicAttributeSet set)
Returns the minimum size of polygon dots (size = linewidth-scale * line-width + minimum_size)
|
static java.lang.String |
StyleConstants.getPolydotsStyle(PicAttributeSet set)
Returns the style of polygon dots
|
static double |
StyleConstants.getPolydotsVerticalScale(PicAttributeSet set)
Returns the factor by which dots are to be scaled vertically
|
static java.lang.String |
StyleConstants.getPstCustom(PicAttributeSet set)
Return the pst custom parameters
|
static Arrow |
StyleConstants.getRightArrow(PicAttributeSet set)
Return the right arrow
|
static double |
StyleConstants.getRoundedBracketLengthScale(PicAttributeSet set)
Returns the rounded-bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH)
|
static double |
StyleConstants.getShadowAngle(PicAttributeSet set)
Return the shadow angle, guaranteed to lie b/w -180 and 180
|
static java.awt.Color |
StyleConstants.getShadowColor(PicAttributeSet set)
Return the shadow colour
|
static double |
StyleConstants.getShadowSize(PicAttributeSet set)
Return the shadow size , guaranteed to be positive.
|
static double |
StyleConstants.getTBarWidthLineWidthScale(PicAttributeSet set)
Returns the linewidth-scale for T-bars (width = linewidth-scale * line-width + relative_width)
|
static double |
StyleConstants.getTBarWidthMinimumMm(PicAttributeSet set)
Returns the relative-width for T-bars (width = linewidth-scale * line-width + relative_width)
|
static boolean |
StyleConstants.isDoubleLine(PicAttributeSet set)
Return whether double-line is on or off
|
static boolean |
StyleConstants.isOverStrike(PicAttributeSet set)
Return whether overstrike is on or off
|
static boolean |
StyleConstants.isPolydotsSuperimposed(PicAttributeSet set)
Returns true if dots superimpose on underlying curve
|
static boolean |
StyleConstants.isShadow(PicAttributeSet set)
Return whether shadow is on or off
|
static void |
StyleConstants.setArrowGlobalScaleLength(PicAttributeSet set,
double d)
Sets the scale-factor for the arrow length
|
static void |
StyleConstants.setArrowGlobalScaleWidth(PicAttributeSet set,
double d)
Sets the scale-factor for the arrow width
|
static void |
StyleConstants.setArrowInsetScale(PicAttributeSet set,
double d)
Sets the arrow inset scale-factor (actual inset = ARROW_INSET * actual length)
|
static void |
StyleConstants.setArrowLengthScale(PicAttributeSet set,
double d)
Sets the arrow length scale-factor (actual length (or height) = actual width * ARROW_LENGTH)
|
static void |
StyleConstants.setArrowWidthLineWidthScale(PicAttributeSet set,
double d)
Sets the the linewidth scale-factor for the arrow width (width = line-width-scale * line-width + minimum_size)
|
static void |
StyleConstants.setArrowWidthMinimumMm(PicAttributeSet set,
double d)
Sets the relative-size for arrows (width = linewidth-scale * line-width + minimum_size)
|
void |
PicAttributeSet.setAttributes(PicAttributeSet src)
Sets several name/value pairs at a time from the given set.
|
void |
AbstractElement.setAttributeSet(PicAttributeSet attributeSet)
Bind the given attributes set to this Element.
|
void |
BranchElement.setAttributeSet(PicAttributeSet set)
set AttributeSet for this BranchElement and propagate to children
|
void |
Element.setAttributeSet(PicAttributeSet attributeSet) |
static void |
StyleConstants.setBracketLengthScale(PicAttributeSet set,
double d)
Sets the bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH)
|
static void |
StyleConstants.setDashOpaque(PicAttributeSet set,
double d)
set the opaque dash length
|
static void |
StyleConstants.setDashTransparent(PicAttributeSet set,
double d)
set the transparent dash length
|
static void |
StyleConstants.setDimen(PicAttributeSet set,
java.lang.String style)
set the "dimen" parameter to OUTER, MIDDLE or INNER.
|
static void |
StyleConstants.setDotSep(PicAttributeSet set,
double d)
set the dot separation
|
static void |
StyleConstants.setDoubleLine(PicAttributeSet set,
boolean b)
set whether double-line is on or off
|
static void |
StyleConstants.setDoubleLineColor(PicAttributeSet set,
java.awt.Color c)
Return the double-line colour
|
static void |
StyleConstants.setDoubleLineSep(PicAttributeSet set,
double d)
set the DoubleLine separation
|
static void |
StyleConstants.setFillColor(PicAttributeSet set,
java.awt.Color c)
set the fill colour
|
static void |
StyleConstants.setFillStyle(PicAttributeSet set,
java.lang.String style)
set the fill style to NONE, SOLID, HLINES, ...
|
static void |
StyleConstants.setHatchAngle(PicAttributeSet set,
double d)
set the hatch angle
|
static void |
StyleConstants.setHatchColor(PicAttributeSet set,
java.awt.Color c)
set the hatch colour
|
static void |
StyleConstants.setHatchSep(PicAttributeSet set,
double d)
set the distance b/w hatches
|
static void |
StyleConstants.setHatchWidth(PicAttributeSet set,
double d)
set the hatch width
|
static void |
StyleConstants.setLeftArrow(PicAttributeSet set,
Arrow a)
set the left arrow
|
static void |
StyleConstants.setLineColor(PicAttributeSet set,
java.awt.Color c)
set the stroke color
|
static void |
StyleConstants.setLineStyle(PicAttributeSet set,
java.lang.String style)
set the line style
|
static void |
StyleConstants.setLineWidth(PicAttributeSet set,
double width)
set the line width
|
static void |
StyleConstants.setOverStrike(PicAttributeSet set,
boolean b)
set whether overstrike is on or off
|
static void |
StyleConstants.setOverStrikeColor(PicAttributeSet set,
java.awt.Color c)
set the border color
|
static void |
StyleConstants.setOverStrikeWidth(PicAttributeSet set,
double width)
set the overstrike width
|
static void |
StyleConstants.setPolydotsAngle(PicAttributeSet set,
double d)
Sets the factor by which dots are to be rotated (in degrees and CCW)
|
static void |
StyleConstants.setPolydotsHorizontalScale(PicAttributeSet set,
double d)
Sets the factor by which dots are to be scaled horizontally
|
static void |
StyleConstants.setPolydotsSizeLineWidthScale(PicAttributeSet set,
double d)
Sets the line-width scale for polygon dots (size = linewidth-scale * line-width + minimum_size)
|
static void |
StyleConstants.setPolydotsSizeMinimumMm(PicAttributeSet set,
double d)
Sets the minimum size of polygon dots (size = linewidth-scale * line-width + minimum_size)
|
static void |
StyleConstants.setPolydotsStyle(PicAttributeSet set,
java.lang.String s)
Sets the style of polygon dots
|
static void |
StyleConstants.setPolydotsSuperimposed(PicAttributeSet set,
boolean b)
Sets whether dots superimpose on underlying curve or not
|
static void |
StyleConstants.setPolydotsVerticalScale(PicAttributeSet set,
double d)
Sets the factor by which dots are to be scaled vertically
|
static void |
StyleConstants.setPstCustom(PicAttributeSet set,
java.lang.String s)
set pst custom parameters
|
void |
PicAttributeSet.setResolveParent(PicAttributeSet parent)
set the resolving parent.
|
static void |
StyleConstants.setRightArrow(PicAttributeSet set,
Arrow a)
set the right arrow
|
static void |
StyleConstants.setRoundedBracketLengthScale(PicAttributeSet set,
double d)
Sets the rounded-bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH)
|
static void |
StyleConstants.setShadow(PicAttributeSet set,
boolean b)
set whether shadow is on or off
|
static void |
StyleConstants.setShadowAngle(PicAttributeSet set,
double d)
set the shadow angle
|
static void |
StyleConstants.setShadowColor(PicAttributeSet set,
java.awt.Color c)
set the shadow colour
|
static void |
StyleConstants.setShadowSize(PicAttributeSet set,
double d)
set the ShadowSize
|
static void |
StyleConstants.setTBarWidthLineWidthScale(PicAttributeSet set,
double d)
Sets the linewidth-scale for T-bars (width = linewidth-scale * line-width + relative_width)
|
static void |
StyleConstants.setTBarWidthMinimumMm(PicAttributeSet set,
double d)
Sets the relative-width for T-bars (width = linewidth-scale * line-width + relative_width)
|
void |
Arrow.syncAttributes(PicAttributeSet set)
Configure the parameters of this arrow (size, scale, inset, ...) from the
given attribute set, aka view/model synchronization.
|
Constructor and Description |
---|
AbstractCurve(boolean closed,
PicAttributeSet set)
Creates a new empty Abstract curve with the given set of attributes
|
AbstractCurve(int nbSegments,
boolean closed,
PicAttributeSet set)
Creates a new Abstract curve with the given number of segments, and attaches the given attribute set to it.
|
AbstractElement(PicAttributeSet attributeSet)
construct an AbstractElement with no parent and the given PicAttributeSet.
|
BranchElement(PicAttributeSet attributeSet)
construct a BranchElement with no parent and the given PicAttributeSet
|
DefaultLeafElement(int nPts,
PicAttributeSet attributeSet)
construct a DefaultElement with no parent and the given PicAttributeSet,
and the given number of specification points.
|
PicAttributeSet(PicAttributeSet src)
cloning constructor
|
PicCircleFrom3Points(boolean plain,
int closure,
PicAttributeSet set)
Creates a new arc or circle reduced to a single point located at (0,0),
with the given closure and attribute set.
|
PicCircleFrom3Points(PicAttributeSet set)
Creates a new (full) circle reduced to a single point located at (0,0), with the given attribute set.
|
PicCircleFrom3Points(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
boolean plain,
int closure,
PicAttributeSet set)
Create a new arc or circle whose geometry is specified by the 3 given points, and
with the given attribute set.
|
PicCircleFrom3Points(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
PicAttributeSet set)
Create a new circle whose geometry is specificed by the the 3 given points, and
with the given attribute set.
|
PicEllipse(int closure,
PicAttributeSet set)
Create a new PicEllipse, centered at (0,0), with a null radius,
the given closure type, and the given attribute set.
|
PicEllipse(PicAttributeSet set)
Create a new PicEllipse, centered at (0,0), with a null radius, and the given attribute set.
|
PicEllipse(PicPoint p1,
PicPoint p2,
PicPoint p3,
int closure,
PicAttributeSet set)
Create a new PicEllipse object using the 3 given points as 3 consecutive points of the
surrounding parallelogram, and the given attribute set.
|
PicGroup(PicAttributeSet attributeSet)
construct a PicGroup with no parent and the given PicAttributeSet
|
PicMultiCurve(boolean closed,
PicAttributeSet set)
Create a new empty multi curve with the given set of attribute
|
PicMultiCurve(PicPoint[] pts,
PicAttributeSet set)
Create a new multi-curve filled with the given array of PicPoint's, each
segment being a curved Bezier segment.
|
PicMultiCurve(PicPoint pt1,
PicAttributeSet set)
Create a new open multi curve reduced to the given point, and the given attribute set
|
PicMultiCurve(PicPoint pt1,
PicPoint pt2,
PicAttributeSet set)
Create a new straight open multi curve with the two given points, and the given attribute set.
|
PicNodeConnection(DefaultLeafElement _nodeA,
DefaultLeafElement _nodeB,
java.lang.String _edgeType,
PicAttributeSet set) |
PicParallelogram(PicAttributeSet set)
Creates a new PicParallelogram reduced to (0,0), with the given attribute set
|
PicParallelogram(PicPoint pt,
PicAttributeSet set)
Create a new PicParallelogram reduced to a point located at the given position
|
PicParallelogram(PicPoint pt1,
PicPoint pt2,
PicPoint pt3,
PicAttributeSet set)
Create a new PicParallelogram object using the 3 given points as 3 consecutive points of the parallelogram.
|
PicPsCurve(boolean closed,
PicAttributeSet set)
Create a new empty pscurve with the given attribute set.
|
PicPsCurve(PicPoint[] polyPts,
boolean closed,
double a,
double b,
double c,
PicAttributeSet set)
Create a new pscurve initialized from the given array of PicPoint's.
|
PicPsCurve(PicPoint[] polygonPts,
boolean closed,
PicAttributeSet set)
Create a new pscurve initialized from the given array of PicPoint's, using the
default curvature values.
|
PicSmoothPolygon(boolean closed,
PicAttributeSet set)
Create a new empty smooth polygon with the given attribute set.
|
PicSmoothPolygon(PicPoint[] polygonPts,
boolean closed,
double[] smoothCoeffs,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's, using the
given array of smoothness values.
|
PicSmoothPolygon(PicPoint[] polyPts,
boolean closed,
double smoothCoeff,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's.
|
PicSmoothPolygon(PicPoint[] polygonPts,
boolean closed,
PicAttributeSet set)
Create a new smooth polygon initialized from the given array of PicPoint's, using the
default smoothness value.
|
PicText(PicAttributeSet set)
Creates a PicText object with the following default values :
empty string,
frame and alignment according to the attribute set
and anchor point at (0,0)
|
PicText(PicPoint ptA,
PicAttributeSet set)
Creates a PicText object with the following default values :
empty string, frame and alignment according to the attribute set |
PicText(PicPoint ptA,
java.lang.String textString,
PicAttributeSet set)
Create a new PicText object with the whole bunch of parameters !
|
TextEditable(java.lang.String textString,
PicPoint anchorPoint,
PicAttributeSet set)
Construct a new TextEditable with the given content and attribute set
|
Modifier and Type | Method and Description |
---|---|
PicAttributeSet |
EditorKit.getInputAttributes()
get the input attributes for the PECanvas attached to this EditorKit
|
Modifier and Type | Method and Description |
---|---|
void |
EditorKit.setInputAttributes(PicAttributeSet set)
set the input attributes for the PECanvas attached to this EditorKit
|
Modifier and Type | Method and Description |
---|---|
protected Arrow |
DefaultViewFactory.createArrow(PicAttributeSet set,
PicAttributeName direction) |
protected java.awt.Paint |
DefaultViewFactory.createPaintForInterior(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting the interior of a shape.
|
protected java.awt.Paint |
DefaultViewFactory.createPaintForOutline(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting an outline,
or null if LINE_STYLE is NONE.
|
protected java.awt.Stroke |
DefaultViewFactory.createStroke(PicAttributeSet set) |
protected void |
DefaultViewFactory.paintHatches(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint hatches (vlines,...) depending on the FILL_STYLE attributes of the given set.
|
protected void |
DefaultViewFactory.paintOverStrike(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint overstrike depending on the OVER_STRIKE attribute and rel.
|
protected void |
DefaultViewFactory.paintShadow(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint shadow depending on the SHADOW attribute and rel.
|
Submit a bug : syd@jpicedt.org