|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.PolyGlyph
public class PolyGlyph
Class PolyGlyph
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.ui.drawing.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 Summary | |
|---|---|
PolyGlyph()
_more_ |
|
| Method Summary | |
|---|---|
void |
addPoint(int x,
int y)
_more_ |
protected Object |
clone()
_more_ |
double |
distance(int x,
int y)
_more_ |
static double |
distance(Point p1,
Point p2)
_more_ |
static void |
drawPolyLine(Graphics g,
int[] xs,
int[] ys)
_more_ |
int |
findMinIndex(int x,
int y,
double threshold)
_more_ |
Rectangle |
getBounds()
_more_ |
CanvasCommand |
getCreateCommand(DisplayCanvas canvas,
AWTEvent event,
int x,
int y)
_more_ |
String |
getPositionAttr()
_more_ |
String |
getStretchPoint(int x,
int y)
_more_ |
void |
moveBy(int x,
int y)
_more_ |
void |
moveTo(int x,
int y)
_more_ |
void |
paint(Graphics g,
DisplayCanvas c)
_more_ |
void |
paintHighlight(Graphics g,
DisplayCanvas c)
_more_ |
void |
paintLines(Graphics g,
DisplayCanvas c,
int w,
boolean fill)
_more_ |
void |
setPoints(int[] p,
int cnt)
_more_ |
String |
stretchTo(int x,
int y,
String pt,
boolean correct)
_more_ |
| Methods inherited from class ucar.unidata.ui.drawing.Glyph |
|---|
boundsChanged, canStretch, distance, doRemove, flipY, getAttrs, getBackground, getBackground, getBeingCreated, getCursor, getFilled, getForeground, getId, getLineWidth, getMoveCommand, getPersistent, getPointOnRect, getPointOnRect, getRectPointName, getRepaintBounds, getStretchPoint, getStretchy, getXml, initDone, makeAttr, notifyChange, paintSelection, paintSelectionPoints, pickable, processAttrs, setAttr, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolyGlyph()
| Method Detail |
|---|
public CanvasCommand getCreateCommand(DisplayCanvas canvas,
AWTEvent event,
int x,
int y)
getCreateCommand in class Glyphcanvas - event - x - y -
protected Object clone()
throws CloneNotSupportedException
clone in class GlyphCloneNotSupportedExceptionpublic Rectangle getBounds()
getBounds in class Glyph
public void setPoints(int[] p,
int cnt)
setPoints in class Glyphp - cnt -
public void paintHighlight(Graphics g,
DisplayCanvas c)
paintHighlight in class Glyphg - c -
public void paint(Graphics g,
DisplayCanvas c)
paint in class Glyphg - c -
public void paintLines(Graphics g,
DisplayCanvas c,
int w,
boolean fill)
g - c - w - fill -
public void addPoint(int x,
int y)
x - y - public String getPositionAttr()
public double distance(int x,
int y)
distance in class Glyphx - y -
public void moveBy(int x,
int y)
moveBy in class Glyphx - y -
public void moveTo(int x,
int y)
moveTo in class Glyphx - y -
public int findMinIndex(int x,
int y,
double threshold)
x - y - threshold -
public String getStretchPoint(int x,
int y)
getStretchPoint in class Glyphx - y -
public String stretchTo(int x,
int y,
String pt,
boolean correct)
stretchTo in class Glyphx - y - pt - correct -
public static double distance(Point p1,
Point p2)
p1 - p2 -
public static void drawPolyLine(Graphics g,
int[] xs,
int[] ys)
g - xs - ys -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||