|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.drawing.DisplayCanvas
ucar.unidata.ui.drawing.EditCanvas
ucar.unidata.ui.drawing.TestCanvas
public class TestCanvas
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.ui.drawing.EditCanvas |
|---|
EditCanvas.ShapeDescriptor |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.ui.drawing.EditCanvas |
|---|
CMD_ALIGN_BOTTOM, CMD_ALIGN_CENTER, CMD_ALIGN_LEFT, CMD_ALIGN_MIDDLE, CMD_ALIGN_PREFIX, CMD_ALIGN_RIGHT, CMD_ALIGN_TOP, CMD_EDIT_COPY, CMD_EDIT_CUT, CMD_EDIT_GROUP, CMD_EDIT_PASTE, CMD_EDIT_SELECTALL, CMD_EDIT_TOBACK, CMD_EDIT_TOFRONT, CMD_EDIT_UNGROUP, CMD_SNAP, CMD_SPACE_H, CMD_SPACE_V, CMD_ZOOMIN, CMD_ZOOMOUT, CMD_ZOOMRESET |
| Fields inherited from class ucar.unidata.ui.drawing.DisplayCanvas |
|---|
canvasBg, CMD_CHANGE, CMD_CREATE, CMD_MOVE, CMD_REMOVE, CMD_TOBACK, CMD_TOFRONT, DEFAULT_CURSOR, glyphs, gridSpacing, HAND_CURSOR, highlightedGlyph, MOVE_CURSOR, NW_CURSOR, scaleFactor, showGrid, TEXT_CURSOR |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TestCanvas()
_more_ |
|
| Method Summary | |
|---|---|
Point |
getCenter()
_more_ |
String[] |
getShapeAttrs()
_more_ |
String[] |
getShapeIcons()
_more_ |
String[] |
getShapeNames()
_more_ |
String[] |
getShapeTypes()
_more_ |
static void |
main(String[] args)
_more_ |
void |
paint(Graphics g)
_more_ |
Point |
transformInput(Point r)
_more_ |
Rectangle |
transformInput(Rectangle r)
_more_ |
int |
transformInputX(int x)
_more_ |
int |
transformInputY(int y)
_more_ |
Point |
transformOutput(Point r)
_more_ |
Rectangle |
transformOutput(Rectangle r)
_more_ |
int |
transformOutputX(int x)
_more_ |
int |
transformOutputY(int y)
_more_ |
| Methods inherited from class ucar.unidata.ui.drawing.DisplayCanvas |
|---|
addGlyph, addSelection, clearAll, clearSelection, createGlyph, decreaseGridSpacing, doRemove, findGlyph, findGlyph, findGlyph, getContents, getGlyphs, getImage, getSelection, getShowGrid, glyphChanged, hasSelection, increaseGridSpacing, isFocusTraversable, isSelected, justRemoveGlyph, moveToBack, moveToFront, notifyGlyphCreateComplete, paintGrid, removeGlyph, removeSelection, repaint, select, setCanvasBackground, setGlyphs, setHighlight, setShowGrid, snap |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestCanvas()
| Method Detail |
|---|
public String[] getShapeAttrs()
public String[] getShapeNames()
public String[] getShapeTypes()
public String[] getShapeIcons()
public void paint(Graphics g)
paint in class EditCanvasg - public Point getCenter()
public int transformInputX(int x)
transformInputX in class DisplayCanvasx -
public int transformInputY(int y)
transformInputY in class DisplayCanvasy -
public int transformOutputX(int x)
transformOutputX in class DisplayCanvasx -
public int transformOutputY(int y)
transformOutputY in class DisplayCanvasy -
public Rectangle transformOutput(Rectangle r)
transformOutput in class DisplayCanvasr -
public Rectangle transformInput(Rectangle r)
transformInput in class DisplayCanvasr -
public Point transformOutput(Point r)
transformOutput in class DisplayCanvasr -
public Point transformInput(Point r)
transformInput in class DisplayCanvasr -
public static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||