Package ucar.unidata.ui.drawing
Class CompositeGlyph
java.lang.Object
ucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
ucar.unidata.ui.drawing.CompositeGlyph
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
GroupGlyph
Class CompositeGlyph
- Author:
- IDV development team
-
Field Summary
Fields inherited from class ucar.unidata.ui.drawing.RectangleGlyph
ATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECT
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
ConstructorsModifierConstructorDescriptionprotected
CompositeGlyph
(String type) _more_protected
CompositeGlyph
(String type, int x, int y) _more_protected
CompositeGlyph
(String type, int x, int y, List newChildren) _more_protected
CompositeGlyph
(String type, List newChildren) _more_ -
Method Summary
Modifier and TypeMethodDescriptionvoid
_more_void
_more_void
_more_void
_more_protected Object
clone()
_more_double
distance
(int x, int y) _more_getAttrs()
_more_boolean
_more__more_getStretchPoint
(int x, int y) _more_void
moveTo
(int x, int y) _more_void
paint
(Graphics g, DisplayCanvas c) _more_protected void
_more_void
removeChild
(Glyph g) _more_void
_more_void
_more_void
setFilled
(boolean c) _more_void
_more_void
setLineWidth
(int c) _more__more_void
unGroup()
_more_Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph
getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getSymetricReshape, getTop, moveBy, setPoints, setSize, setType
Methods inherited from class ucar.unidata.ui.drawing.Glyph
boundsChanged, canStretch, distance, doRemove, flipY, 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, setBeingCreated, setId, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY
-
Constructor Details
-
CompositeGlyph
_more_- Parameters:
type
-newChildren
-
-
CompositeGlyph
_more_- Parameters:
type
-x
-y
-
-
CompositeGlyph
_more_- Parameters:
type
-
-
CompositeGlyph
_more_- Parameters:
type
-x
-y
-newChildren
-
-
-
Method Details
-
childChanged
_more_- Parameters:
g
-
-
removeChild
_more_- Parameters:
g
-
-
getChildren
_more_- Returns:
- _more_
-
unGroup
public void unGroup()_more_ -
distance
public double distance(int x, int y) _more_- Overrides:
distance
in classRectangleGlyph
- Parameters:
x
-y
-- Returns:
- _more_
-
addChild
_more_- Parameters:
g
-
-
addChild
_more_- Parameters:
g
-calculateBounds
-
-
getBoundsFromChildren
public boolean getBoundsFromChildren()_more_- Returns:
- _more_
-
calculateBounds
public void calculateBounds()_more_ -
clone
_more_- Overrides:
clone
in classRectangleGlyph
- Returns:
- _more_
- Throws:
CloneNotSupportedException
-
paint
_more_- Overrides:
paint
in classRectangleGlyph
- Parameters:
g
-c
-
-
paintChildren
_more_- Parameters:
g
-c
-
-
setForeground
_more_- Overrides:
setForeground
in classGlyph
- Parameters:
c
-
-
setBackground
_more_- Overrides:
setBackground
in classGlyph
- Parameters:
c
-
-
setLineWidth
public void setLineWidth(int c) _more_- Overrides:
setLineWidth
in classGlyph
- Parameters:
c
-
-
setFilled
public void setFilled(boolean c) _more_ -
getStretchPoint
_more_- Overrides:
getStretchPoint
in classRectangleGlyph
- Parameters:
x
-y
-- Returns:
- _more_
-
stretchTo
_more_- Overrides:
stretchTo
in classRectangleGlyph
- Parameters:
x
-y
-pt
-correct
-- Returns:
- _more_
-
moveTo
public void moveTo(int x, int y) _more_- Overrides:
moveTo
in classRectangleGlyph
- Parameters:
x
-y
-
-
getAttrs
_more_ -
setAttr
_more_- Overrides:
setAttr
in classRectangleGlyph
- Parameters:
name
-value
-
-