|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.drawing.Glyph
ucar.unidata.ui.drawing.RectangleGlyph
ucar.unidata.ui.symbol.MetSymbol
ucar.unidata.ui.symbol.CloudCoverageSymbol
public class CloudCoverageSymbol
Cloud coverage meteorological symbols.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.ui.symbol.MetSymbol |
|---|
ATTR_PARAMID, canvas, propertiesDialog |
| 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 | |
|---|---|
CloudCoverageSymbol()
Default constructor |
|
CloudCoverageSymbol(DisplayCanvas canvas,
int x,
int y)
Create a cloud coverage symbol at the x and y position on the supplied canvas. |
|
CloudCoverageSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc)
Create a cloud coverage symbol at the x and y position on the DisplayCanvas supplied. |
|
CloudCoverageSymbol(int x,
int y)
Create a cloud coverage symbol at the x and y position. |
|
CloudCoverageSymbol(int x,
int y,
String param,
String paramDesc)
Create a cloud coverage symbol at the x and y position. |
|
| Method Summary | |
|---|---|
void |
draw(Graphics2D g,
int x,
int y,
int width,
int height)
draw the symbol at the specified location |
double |
getCoverage()
Get the coverage value : lies between 0 and 100 (%) |
boolean |
getEqualSides()
Get whether this MetSymbol has equals sides
(width and height). |
Object |
getParamValue(int index)
Get the parameter value at the index specified. |
boolean |
getStretchy()
Get whether this MetSymbol can be stretched or not. |
boolean |
getSymetricReshape()
Get whether this MetSymbol should be stretched
symetrically or not. |
void |
setCoverage(double coverage)
Set the coverage value : lies between 0 and 100 (%) |
void |
setParamValue(int index,
Object v)
Set the parameter value at the index specified. |
| Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph |
|---|
distance, getBottom, getBounds, getLeft, getPoint, getPositionAttr, getStretchPoint, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchTo |
| 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, getXml, initDone, makeAttr, notifyChange, paintHighlight, paintSelectionPoints, pickable, processAttrs, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CloudCoverageSymbol()
public CloudCoverageSymbol(int x,
int y)
x - x offset from centery - y offset from center
public CloudCoverageSymbol(DisplayCanvas canvas,
int x,
int y)
canvas - DisplayCanvas to draw onx - x offset from centery - y offset from center
public CloudCoverageSymbol(int x,
int y,
String param,
String paramDesc)
param - parameter name for this CloudCoverageSymbolparamDesc - description (long name) of paramx - x offset from centery - y offset from center
public CloudCoverageSymbol(DisplayCanvas canvas,
int x,
int y,
String param,
String paramDesc)
DisplayCanvas supplied. Position
is relative to the center point. Use parameter and description
provided.
canvas - DisplayCanvas to draw onparam - parameter name for this CloudCoverageSymbolparamDesc - description (long name) of paramx - x offset from centery - y offset from center| Method Detail |
|---|
public boolean getStretchy()
MetSymbol can be stretched or not.
getStretchy in class Glyphpublic boolean getEqualSides()
MetSymbol has equals sides
(width and height).
getEqualSides in class RectangleGlyphpublic boolean getSymetricReshape()
MetSymbol should be stretched
symetrically or not.
getSymetricReshape in class RectangleGlyphpublic double getCoverage()
public void setCoverage(double coverage)
coverage - coverage in percentpublic Object getParamValue(int index)
getParamValue in class MetSymbolindex - index into param array
Double
public void setParamValue(int index,
Object v)
MetSymbol only has one parameter, it sets the
value at index 0.
setParamValue in class MetSymbolindex - parameter index. Ignored in this object.v - value for the parameter (String representation of
coverage).setCoverage(double)
public void draw(Graphics2D g,
int x,
int y,
int width,
int height)
draw in class MetSymbolg - Graphics2D objectx - x positiony - y positionwidth - width of symbolheight - height of symbol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||