|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.LineGlyph
ucar.unidata.idv.control.drawing.PolyGlyph
public class PolyGlyph
Class PolyGlyph draws polygons
| Field Summary | |
|---|---|
static String |
ATTR_EXTRUDE
Xml attribute name |
static String |
ATTR_SMOOTH
Xml attribute name |
static int |
IDX_X
Indices into arrays |
static int |
IDX_Y
Indices into arrays |
static int |
IDX_Z
Indices into arrays |
| Fields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph |
|---|
actualPoints, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, COORD_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, parentDisplayable, points, propDialog, propertiesUp, PT_X, PT_Y, PT_Z, selectionDisplayable, stretchIndex, tabbedPane, TAG_ARROW, TAG_FRONT, TAG_HIGH, TAG_IMAGE, TAG_LOW, TAG_MOVIE, TAG_POLYGON, TAG_SHAPE, TAG_SYMBOL, TAG_TEXT, uniqueCnt, zPosition |
| Constructor Summary | |
|---|---|
PolyGlyph()
Ctor |
|
PolyGlyph(DrawingControl control,
DisplayEvent event,
boolean smooth)
Ctor |
|
| Method Summary | |
|---|---|
protected void |
addAttributes(Element e)
Populate the xml node with attrs |
boolean |
canShowArea()
Can we show calculated area |
boolean |
canShowDistance()
Can we show calculated distance |
void |
doFlythrough()
Do the flythru |
void |
doStretch(DisplayEvent event)
Stretch this glyph |
boolean |
getExtrude()
Get the Extrude property. |
protected void |
getPropertiesComponents(List comps,
Hashtable compMap)
get the prop gui comps |
protected List |
getSelectionPoints()
Get points used to select this glyph. |
boolean |
getSmooth()
Get smooth |
String |
getTagName()
Get xml tag name to use |
String |
getTypeName()
Name to use for this glyph |
DrawingGlyph |
handleKeyPressed(DisplayEvent event)
Handle event. |
DrawingGlyph |
handleMouseDragged(DisplayEvent event)
Handle event |
DrawingGlyph |
handleMousePressed(DisplayEvent event)
Handle event |
void |
initFromXml(DrawingControl control,
Element node)
Initialize from xml |
boolean |
isValid()
Do we have a valid number of points |
void |
setExtrude(boolean value)
Set the Extrude property. |
void |
setSmooth(boolean v)
Set smooth_ |
void |
updateLocation()
Glyph moved. |
| Methods inherited from class ucar.unidata.idv.control.drawing.LineGlyph |
|---|
applyProperties, createDisplayable, getLineWidth, initFinalInner, initFromUser, setLineWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IDX_X
public static final int IDX_Y
public static final int IDX_Z
public static final String ATTR_SMOOTH
public static final String ATTR_EXTRUDE
| Constructor Detail |
|---|
public PolyGlyph()
public PolyGlyph(DrawingControl control,
DisplayEvent event,
boolean smooth)
throws VisADException,
RemoteException
control - The control I'm in.event - The display event.smooth - Is smooth
RemoteException - When bad things happen
VisADException - When bad things happen| Method Detail |
|---|
public boolean isValid()
isValid in class DrawingGlyph
protected void getPropertiesComponents(List comps,
Hashtable compMap)
getPropertiesComponents in class LineGlyphcomps - List of compscompMap - comp map
public void doStretch(DisplayEvent event)
throws VisADException,
RemoteException
doStretch in class DrawingGlyphevent - The display event.
RemoteException - On badness
VisADException - On badnesspublic boolean canShowDistance()
canShowDistance in class DrawingGlyphpublic boolean canShowArea()
canShowArea in class DrawingGlyph
public void doFlythrough()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void initFromXml(DrawingControl control,
Element node)
throws VisADException,
RemoteException
initFromXml in class LineGlyphcontrol - The control I'm in.node - The xml node
RemoteException - On badness
VisADException - On badnessprotected void addAttributes(Element e)
addAttributes in class LineGlyphe - Xml nodeprotected List getSelectionPoints()
getSelectionPoints in class DrawingGlyphpublic String getTagName()
getTagName in class DrawingGlyph
public void updateLocation()
throws VisADException,
RemoteException
updateLocation in class DrawingGlyphRemoteException - On badness
VisADException - On badness
public DrawingGlyph handleMousePressed(DisplayEvent event)
throws VisADException,
RemoteException
handleMousePressed in class DrawingGlyphevent - The display event.
RemoteException - When bad things happen
VisADException - When bad things happen
public DrawingGlyph handleMouseDragged(DisplayEvent event)
throws VisADException,
RemoteException
handleMouseDragged in class DrawingGlyphevent - The display event.
RemoteException - On badness
VisADException - On badness
public DrawingGlyph handleKeyPressed(DisplayEvent event)
throws VisADException,
RemoteException
handleKeyPressed in class DrawingGlyphevent - The display event.
RemoteException - On badness
VisADException - On badnesspublic String getTypeName()
getTypeName in class DrawingGlyphpublic boolean getSmooth()
public void setSmooth(boolean v)
v - Smoothpublic void setExtrude(boolean value)
value - The new value for Extrudepublic boolean getExtrude()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||