Package ucar.unidata.ui.drawing
Class RectangleGlyph
java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CompositeGlyph
,ImageGlyph
,MetSymbol
Class RectangleGlyph
- Author:
- IDV development team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
_more__more_static final String
_more_static final String
_more_static final String
_more_static final String
_more_static final String
_more_static final String
_more_static final int
_more_static final int
_more_static final int
_more_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
ConstructorsConstructorDescription_more_RectangleGlyph
(int x, int y) _more_RectangleGlyph
(String typeName, int x, int y, int w, int h) _more_ -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
_more_double
distance
(int x, int y) _more_int
_more__more_boolean
_more_int
getLeft()
_more_static Point
_more__more_getStretchPoint
(int x, int y) _more_boolean
_more_int
getTop()
_more_void
moveBy
(int x, int y) _more_void
moveTo
(int x, int y) _more_void
paint
(Graphics g, DisplayCanvas c) _more_void
_more_void
setPoints
(int[] p, int cnt) _more_void
setSize
(int w, int h) _more_protected void
_more__more_Methods inherited from class ucar.unidata.ui.drawing.Glyph
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
-
Field Details
-
RECTANGLE
_more_- See Also:
-
FRECTANGLE
_more_- See Also:
-
ROUNDRECT
_more_- See Also:
-
FROUNDRECT
_more_- See Also:
-
CIRCLE
_more_- See Also:
-
FCIRCLE
_more_- See Also:
-
ATTR_RECTTYPE
_more_- See Also:
-
bounds
_more_ -
TYPE_RECT
public static final int TYPE_RECT_more_- See Also:
-
TYPE_RRECT
public static final int TYPE_RRECT_more_- See Also:
-
TYPE_CIRCLE
public static final int TYPE_CIRCLE_more_- See Also:
-
-
Constructor Details
-
RectangleGlyph
public RectangleGlyph()_more_ -
RectangleGlyph
public RectangleGlyph(int x, int y) _more_- Parameters:
x
-y
-
-
RectangleGlyph
_more_- Parameters:
typeName
-x
-y
-w
-h
-
-
-
Method Details
-
getEqualSides
public boolean getEqualSides()_more_- Returns:
- _more_
-
getSymetricReshape
public boolean getSymetricReshape()_more_- Returns:
- _more_
-
setType
_more_- Parameters:
typeName
-
-
clone
_more_- Overrides:
clone
in classGlyph
- Returns:
- _more_
- Throws:
CloneNotSupportedException
-
getBounds
_more_ -
getBottom
public int getBottom()_more_- Returns:
- _more_
-
getTop
public int getTop()_more_- Returns:
- _more_
-
getLeft
public int getLeft()_more_- Returns:
- _more_
-
paint
_more_ -
distance
public double distance(int x, int y) _more_ -
stretchTo
_more_ -
getPoint
_more_- Parameters:
pt
-b
-- Returns:
- _more_
-
getStretchPoint
_more_- Overrides:
getStretchPoint
in classGlyph
- Parameters:
x
-y
-- Returns:
- _more_
-
moveBy
public void moveBy(int x, int y) _more_ -
moveTo
public void moveTo(int x, int y) _more_ -
setPoints
public void setPoints(int[] p, int cnt) _more_ -
getPositionAttr
_more_- Returns:
- _more_
-
setAttr
_more_ -
setSize
public void setSize(int w, int h) _more_- Parameters:
w
-h
-
-