|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList fr.emn.lite.Lite fr.emn.inputeditor.LiteLinkHandle
Field Summary |
Fields inherited from class fr.emn.lite.Lite |
model, oldParent, parent, PICK_ACTIVEBOUNDS, PICK_ALL, PICK_DEEPEST, PICK_FIRST, PICK_GRAPHBOUNDS, PICK_INSIDE, PICK_INTER, PICK_MANIPULABLE, visible |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
LiteLinkHandle()
|
Method Summary | |
void |
doPaint(java.awt.Graphics2D g)
Include painting code here. |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds of the Lite object in its own coordinate system. |
java.awt.geom.GeneralPath |
getGhostPath(int maxDepth)
This method returns the ghost shape of this object. |
abstract LiteSlot |
getSlot()
|
protected double |
parametrize(java.awt.geom.Point2D p,
java.awt.geom.Point2D pO,
java.awt.geom.Point2D pI,
java.awt.geom.Point2D res,
java.awt.geom.Point2D resNorm)
transforms a point into "parametric" coordinates according to a segment. |
protected double |
parametrizePath(java.awt.geom.Point2D p,
java.awt.geom.PathIterator pi,
java.awt.geom.Point2D res,
java.awt.geom.Point2D resNorm)
Parametrize according to a general path instead of a single segment. |
boolean |
pick(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D rect,
int strategy,
PickedList picked)
Picks this object with the specified strategy, and adds the results to the picked list. |
void |
setDist(double DIST)
|
void |
setParametricDist(double TDIST)
|
void |
setParametricLocation(double TLOC0,
double TLOC1)
|
void |
setParent(LiteContainer par)
|
Methods inherited from class fr.emn.lite.Lite |
changeTransform, concatenate, context, dist, equals, get, getActiveBounds, getActiveBoundsFrom, getAncestor, getAncestor, getBoundsFrom, getBoundsFromNoCorrect, getChildrenGhostPath, getCommonAncestor, getGhost_old, getGhost, getParent, getShadow, getTransform, getTransformFrom, getTransformNoCopy, isVisible, migrateBack, migrateTo, paint_old, paint, paintChildren, paintShadows, pickChildren, preConcatenate, setContext, setTransform, setVisible, size, toString, transformBounds |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
public LiteLinkHandle()
Method Detail |
public void doPaint(java.awt.Graphics2D g)
Lite
Call PaintChildren if Lite object is a container.
doPaint
in class Lite
public java.awt.geom.Rectangle2D getBounds()
Lite
getBounds
in class Lite
public java.awt.geom.GeneralPath getGhostPath(int maxDepth)
Lite
By default, this method returns the path iterator of this object's bounds and appends its children's ghost path.
getGhostPath
in class Lite
#getChildrenGhostPath()
public abstract LiteSlot getSlot()
protected double parametrize(java.awt.geom.Point2D p, java.awt.geom.Point2D pO, java.awt.geom.Point2D pI, java.awt.geom.Point2D res, java.awt.geom.Point2D resNorm)
protected double parametrizePath(java.awt.geom.Point2D p, java.awt.geom.PathIterator pi, java.awt.geom.Point2D res, java.awt.geom.Point2D resNorm)
public boolean pick(java.awt.Graphics2D g, java.awt.geom.Rectangle2D rect, int strategy, PickedList picked)
Lite
A picking strategy is a combination of a depth strategy and a geometrical strategy.
* Depth filters:
PICK_DEEPEST strategy : Deepest pickable children of this object (or the object itself if none) are added to the picked list. This is the default value.
PICK_FIRST strategy : First pickable children (or the object itself if pickable) are added to the picked list.
PICK_ALL strategy : All pickable objects are added to the list.
* Geometrical filters:
PICK_INTER strategy : Objects have to intersect the picking rectangle to be picked. This is the default value.
PICK_INSIDE strategy : Objects must be inside the picking rectangle to be picked. PICK_ACTIVEBOUNDS strategy PICK_GRAPHBOUNDS strategy * Semantic filters: PICK_MANIPULABLE strategy
pick
in class Lite
rect
- The picking rectanglestrategy
- The picking strategy to be used, i.e. a combination
of a depth strategy and a geometrical strategy. Default value (0) is
PICK_DEEPEST | PICK_INTER.picked
- if this argument is not null, picked objects are added
to the pick list.public void setDist(double DIST)
public void setParametricDist(double TDIST)
public void setParametricLocation(double TLOC0, double TLOC1)
public void setParent(LiteContainer par)
setParent
in class Lite
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |