public class LineGlyph extends Glyph
ATTR_BGCOLOR, ATTR_CHILDREN, ATTR_CLASS, ATTR_COLOR, ATTR_FILL, ATTR_HEIGHT, ATTR_IMAGE, ATTR_LINEWIDTH, ATTR_PARENT, ATTR_PTS, ATTR_STRETCHY, ATTR_TEXT, ATTR_TYPE, ATTR_WIDTH, baseline, H_SEL_WIDTH, highlightColor, idToGlyph, MIN_DISTANCE_TO_STRETCH, PT_CENTER, PT_H_LEFT, PT_H_MIDDLE, PT_H_RIGHT, PT_LL, PT_LM, PT_LR, PT_ML, PT_MM, PT_MR, PT_P1, PT_P2, PT_PREFIX, PT_UL, PT_UM, PT_UR, PT_V_LOWER, PT_V_MIDDLE, PT_V_UPPER, RECTPOINTNAMES, RECTPOINTS, SEL_WIDTH, TAG_GLYPH, underline, url
Constructor and Description |
---|
LineGlyph(int x1,
int y1)
_more_
|
LineGlyph(int x1,
int y1,
int x2,
int y2)
_more_
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone()
_more_
|
double |
distance(int x,
int y)
_more_
|
java.awt.Rectangle |
getBounds()
_more_
|
java.lang.String |
getPositionAttr()
_more_
|
java.lang.String |
getStretchPoint(int x,
int y)
_more_
|
void |
moveBy(int x,
int y)
_more_
|
void |
moveTo(int x,
int y)
_more_
|
void |
paint(java.awt.Graphics g,
DisplayCanvas c)
_more_
|
void |
paint(java.awt.Graphics g,
DisplayCanvas c,
java.awt.Color color)
_more_
|
void |
paintHighlight(java.awt.Graphics g,
DisplayCanvas c)
_more_
|
void |
paintSelection(java.awt.Graphics g,
DisplayCanvas c)
_more_
|
static double |
ptSegDist(double X1,
double Y1,
double X2,
double Y2,
double PX,
double PY)
_more_
|
static double |
ptSegDistSq(double X1,
double Y1,
double X2,
double Y2,
double PX,
double PY)
_more_
|
void |
setPoints(int[] p,
int cnt)
_more_
|
java.lang.String |
stretchTo(int x,
int y,
java.lang.String pt,
boolean correct)
_more_
|
boundsChanged, canStretch, distance, doRemove, flipY, getAttrs, getBackground, getBackground, getBeingCreated, getCreateCommand, getCursor, getFilled, getForeground, getId, getLineWidth, getMoveCommand, getPersistent, getPointOnRect, getPointOnRect, getRectPointName, getRepaintBounds, getStretchPoint, getStretchy, getXml, initDone, makeAttr, notifyChange, paintSelectionPoints, pickable, processAttrs, setAttr, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY
public LineGlyph(int x1, int y1)
x1
- y1
- public LineGlyph(int x1, int y1, int x2, int y2)
x1
- y1
- x2
- y2
- protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
public java.awt.Rectangle getBounds()
public void setPoints(int[] p, int cnt)
public void paint(java.awt.Graphics g, DisplayCanvas c)
public void paintHighlight(java.awt.Graphics g, DisplayCanvas c)
paintHighlight
in class Glyph
g
- c
- public void paint(java.awt.Graphics g, DisplayCanvas c, java.awt.Color color)
g
- c
- color
- public void paintSelection(java.awt.Graphics g, DisplayCanvas c)
paintSelection
in class Glyph
g
- c
- public java.lang.String getPositionAttr()
public double distance(int x, int y)
public java.lang.String stretchTo(int x, int y, java.lang.String pt, boolean correct)
public java.lang.String getStretchPoint(int x, int y)
getStretchPoint
in class Glyph
x
- y
- public void moveBy(int x, int y)
public void moveTo(int x, int y)
public static double ptSegDistSq(double X1, double Y1, double X2, double Y2, double PX, double PY)
X1
- Y1
- X2
- Y2
- PX
- PY
- public static double ptSegDist(double X1, double Y1, double X2, double Y2, double PX, double PY)
X1
- Y1
- X2
- Y2
- PX
- PY
-