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_RRECTFields 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
ConstructorsModifierConstructorDescriptionprotectedCompositeGlyph(String type) _more_protectedCompositeGlyph(String type, int x, int y) _more_protectedCompositeGlyph(String type, int x, int y, List newChildren) _more_protectedCompositeGlyph(String type, List newChildren) _more_ -
Method Summary
Modifier and TypeMethodDescriptionvoid_more_void_more_void_more_void_more_protected Objectclone()_more_doubledistance(int x, int y) _more_getAttrs()_more_boolean_more__more_getStretchPoint(int x, int y) _more_voidmoveTo(int x, int y) _more_voidpaint(Graphics g, DisplayCanvas c) _more_protected void_more_voidremoveChild(Glyph g) _more_void_more_void_more_voidsetFilled(boolean c) _more_void_more_voidsetLineWidth(int c) _more__more_voidunGroup()_more_Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph
getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getSymetricReshape, getTop, moveBy, setPoints, setSize, setTypeMethods 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:
distancein 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:
clonein classRectangleGlyph- Returns:
- _more_
- Throws:
CloneNotSupportedException
-
paint
_more_- Overrides:
paintin classRectangleGlyph- Parameters:
g-c-
-
paintChildren
_more_- Parameters:
g-c-
-
setForeground
_more_- Overrides:
setForegroundin classGlyph- Parameters:
c-
-
setBackground
_more_- Overrides:
setBackgroundin classGlyph- Parameters:
c-
-
setLineWidth
public void setLineWidth(int c) _more_- Overrides:
setLineWidthin classGlyph- Parameters:
c-
-
setFilled
public void setFilled(boolean c) _more_ -
getStretchPoint
_more_- Overrides:
getStretchPointin classRectangleGlyph- Parameters:
x-y-- Returns:
- _more_
-
stretchTo
_more_- Overrides:
stretchToin classRectangleGlyph- Parameters:
x-y-pt-correct-- Returns:
- _more_
-
moveTo
public void moveTo(int x, int y) _more_- Overrides:
moveToin classRectangleGlyph- Parameters:
x-y-
-
getAttrs
_more_ -
setAttr
_more_- Overrides:
setAttrin classRectangleGlyph- Parameters:
name-value-
-