ucar.unidata.ui.drawing
Class CompositeGlyph

java.lang.Object
  extended by ucar.unidata.ui.drawing.Glyph
      extended by ucar.unidata.ui.drawing.RectangleGlyph
          extended by ucar.unidata.ui.drawing.CompositeGlyph
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GroupGlyph

public abstract class CompositeGlyph
extends RectangleGlyph

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
protected 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
 void addChild(Glyph g)
          _more_
 void addChild(Glyph g, boolean calculateBounds)
          _more_
 void calculateBounds()
          _more_
 void childChanged(Glyph g)
          _more_
protected  Object clone()
          _more_
 double distance(int x, int y)
          _more_
 String getAttrs()
          _more_
 boolean getBoundsFromChildren()
          _more_
 List getChildren()
          _more_
 String getStretchPoint(int x, int y)
          _more_
 void moveTo(int x, int y)
          _more_
 void paint(Graphics g, DisplayCanvas c)
          _more_
protected  void paintChildren(Graphics g, DisplayCanvas c)
          _more_
 void removeChild(Glyph g)
          _more_
 void setAttr(String name, String value)
          _more_
 void setBackground(Color c)
          _more_
 void setFilled(boolean c)
          _more_
 void setForeground(Color c)
          _more_
 void setLineWidth(int c)
          _more_
 String stretchTo(int x, int y, String pt, boolean correct)
          _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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeGlyph

protected CompositeGlyph(String type,
                         List newChildren)
_more_

Parameters:
type -
newChildren -

CompositeGlyph

protected CompositeGlyph(String type,
                         int x,
                         int y)
_more_

Parameters:
type -
x -
y -

CompositeGlyph

protected CompositeGlyph(String type)
_more_

Parameters:
type -

CompositeGlyph

protected CompositeGlyph(String type,
                         int x,
                         int y,
                         List newChildren)
_more_

Parameters:
type -
x -
y -
newChildren -
Method Detail

childChanged

public void childChanged(Glyph g)
_more_

Parameters:
g -

removeChild

public void removeChild(Glyph g)
_more_

Parameters:
g -

getChildren

public List getChildren()
_more_

Returns:
_more_

unGroup

public void unGroup()
_more_


distance

public double distance(int x,
                       int y)
_more_

Overrides:
distance in class RectangleGlyph
Parameters:
x -
y -
Returns:
_more_

addChild

public void addChild(Glyph g)
_more_

Parameters:
g -

addChild

public void addChild(Glyph g,
                     boolean calculateBounds)
_more_

Parameters:
g -
calculateBounds -

getBoundsFromChildren

public boolean getBoundsFromChildren()
_more_

Returns:
_more_

calculateBounds

public void calculateBounds()
_more_


clone

protected Object clone()
                throws CloneNotSupportedException
_more_

Overrides:
clone in class RectangleGlyph
Returns:
_more_
Throws:
CloneNotSupportedException

paint

public void paint(Graphics g,
                  DisplayCanvas c)
_more_

Overrides:
paint in class RectangleGlyph
Parameters:
g -
c -

paintChildren

protected void paintChildren(Graphics g,
                             DisplayCanvas c)
_more_

Parameters:
g -
c -

setForeground

public void setForeground(Color c)
_more_

Overrides:
setForeground in class Glyph
Parameters:
c -

setBackground

public void setBackground(Color c)
_more_

Overrides:
setBackground in class Glyph
Parameters:
c -

setLineWidth

public void setLineWidth(int c)
_more_

Overrides:
setLineWidth in class Glyph
Parameters:
c -

setFilled

public void setFilled(boolean c)
_more_

Overrides:
setFilled in class Glyph
Parameters:
c -

getStretchPoint

public String getStretchPoint(int x,
                              int y)
_more_

Overrides:
getStretchPoint in class RectangleGlyph
Parameters:
x -
y -
Returns:
_more_

stretchTo

public String stretchTo(int x,
                        int y,
                        String pt,
                        boolean correct)
_more_

Overrides:
stretchTo in class RectangleGlyph
Parameters:
x -
y -
pt -
correct -
Returns:
_more_

moveTo

public void moveTo(int x,
                   int y)
_more_

Overrides:
moveTo in class RectangleGlyph
Parameters:
x -
y -

getAttrs

public String getAttrs()
_more_

Overrides:
getAttrs in class Glyph
Returns:
_more_

setAttr

public void setAttr(String name,
                    String value)
_more_

Overrides:
setAttr in class RectangleGlyph
Parameters:
name -
value -