public class RectangleGlyph extends Glyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_RECTTYPE
_more_
|
java.awt.Rectangle |
bounds
_more_
|
static java.lang.String |
CIRCLE
_more_
|
static java.lang.String |
FCIRCLE
_more_
|
static java.lang.String |
FRECTANGLE
_more_
|
static java.lang.String |
FROUNDRECT
_more_
|
static java.lang.String |
RECTANGLE
_more_
|
static java.lang.String |
ROUNDRECT
_more_
|
static int |
TYPE_CIRCLE
_more_
|
static int |
TYPE_RECT
_more_
|
static int |
TYPE_RRECT
_more_
|
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 |
---|
RectangleGlyph()
_more_
|
RectangleGlyph(int x,
int y)
_more_
|
RectangleGlyph(java.lang.String typeName,
int x,
int y,
int w,
int h)
_more_
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
clone()
_more_
|
double |
distance(int x,
int y)
_more_
|
int |
getBottom()
_more_
|
java.awt.Rectangle |
getBounds()
_more_
|
boolean |
getEqualSides()
_more_
|
int |
getLeft()
_more_
|
static java.awt.Point |
getPoint(java.lang.String pt,
java.awt.Rectangle b)
_more_
|
java.lang.String |
getPositionAttr()
_more_
|
java.lang.String |
getStretchPoint(int x,
int y)
_more_
|
boolean |
getSymetricReshape()
_more_
|
int |
getTop()
_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 |
setAttr(java.lang.String name,
java.lang.String value)
_more_
|
void |
setPoints(int[] p,
int cnt)
_more_
|
void |
setSize(int w,
int h)
_more_
|
protected void |
setType(java.lang.String typeName)
_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, paintHighlight, paintSelection, paintSelectionPoints, pickable, processAttrs, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY
public static final java.lang.String RECTANGLE
public static final java.lang.String FRECTANGLE
public static final java.lang.String ROUNDRECT
public static final java.lang.String FROUNDRECT
public static final java.lang.String CIRCLE
public static final java.lang.String FCIRCLE
public static final java.lang.String ATTR_RECTTYPE
public java.awt.Rectangle bounds
public static final int TYPE_RECT
public static final int TYPE_RRECT
public static final int TYPE_CIRCLE
public RectangleGlyph()
public RectangleGlyph(int x, int y)
x
- y
- public RectangleGlyph(java.lang.String typeName, int x, int y, int w, int h)
typeName
- x
- y
- w
- h
- public boolean getEqualSides()
public boolean getSymetricReshape()
protected void setType(java.lang.String typeName)
typeName
- protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
public java.awt.Rectangle getBounds()
public int getBottom()
public int getTop()
public int getLeft()
public void paint(java.awt.Graphics g, DisplayCanvas c)
public double distance(int x, int y)
public java.lang.String stretchTo(int x, int y, java.lang.String pt, boolean correct)
public static java.awt.Point getPoint(java.lang.String pt, java.awt.Rectangle b)
pt
- b
- 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 void setPoints(int[] p, int cnt)
public java.lang.String getPositionAttr()
public void setAttr(java.lang.String name, java.lang.String value)
public void setSize(int w, int h)
w
- h
-