|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.sgt.VectorKey
VectorKey
is used to create a key for the
VectorCartesianRenderer
. Multiple
lines can be included in the key.
Field Summary | |
static int |
BOTTOM
Align to bottom of key. |
static int |
CENTER
Align to center of key. |
static int |
LEFT
Align to left of key. |
static int |
MIDDLE
Align to middle of key. |
static int |
NO_BORDER
Do not draw a border. |
static int |
PLAIN_LINE
Use plain line border. |
static int |
RAISED
Use raised border. |
static int |
RIGHT
Align to right of key. |
static int |
TOP
Align to top of key. |
Constructor Summary | |
VectorKey()
Default constructor. |
|
VectorKey(Point2D.Double loc,
int valign,
int halign)
Create VectorKey . |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a new PropertyChangeListener. |
void |
addVectorGraph(VectorCartesianRenderer vector,
SGLabel label)
Add a VectorCartesianRenderer and label to the VectorKey. |
void |
clear(java.lang.String data_id)
Remove data from key by id. |
void |
clearAll()
Remove all lines from the VectorKey. |
LayerChild |
copy()
Create of copy of VectorKey. |
void |
draw(java.awt.Graphics g)
Draw the Key. |
int |
getBorderStyle()
Get border style. |
java.awt.Rectangle |
getBounds()
Get the bounding rectangle. |
Rectangle2D.Double |
getBoundsP()
|
int |
getColumns()
Get the number of columns. |
int |
getHAlign()
Get horizontal alignment |
java.lang.String |
getId()
Get VectorKey identifier |
Layer |
getLayer()
Get layer. |
java.awt.Point |
getLocation()
Gets the location in device coordinates. |
Point2D.Double |
getLocationP()
Get location of key. |
AbstractPane |
getPane()
Get AbstractPane of the LayerChild . |
int |
getRowHeight()
Return height of key row in pixels. |
int |
getVAlign()
Get vertical alignment |
double |
getVectorLengthP()
Get line length |
boolean |
isMoveable()
Returns true if the current state is moveable |
boolean |
isSelectable()
Returns true if the current state is selectable. |
boolean |
isSelected()
Returns true if the object's selected property is set. |
boolean |
isVisible()
Check if LayerChild is visible. |
void |
modified(java.lang.String mess)
Used by sgt internally. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener. |
void |
removeVectorGraph(SGLabel label)
Remove a line from the VectorKey. |
void |
removeVectorGraph(java.lang.String ident)
Remove a line from the VectorKey. |
void |
removeVectorRenderer(VectorCartesianRenderer line)
Remove a line from the VectorKey. |
void |
setAlign(int vert,
int horz)
Set alignment. |
void |
setBorderStyle(int style)
Set border style. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds, in pixels, of the VectorKey
Property Change: location . |
void |
setBounds(java.awt.Rectangle r)
Set the bounds, in pixels, of the VectorKey |
void |
setBoundsP(Rectangle2D.Double r)
Set the bounds, in physical units, of the VectorKey |
void |
setColumns(int col)
Set the number of columns. |
void |
setHAlign(int horz)
Set horizontal alignment |
void |
setId(java.lang.String id)
Set VectorKey identifier. |
void |
setLayer(Layer l)
Set parent layer. |
void |
setLocation(java.awt.Point loc)
Sets the location in device coordinates. |
void |
setLocationP(Point2D.Double loc)
Set location of key Property Change: location . |
void |
setMoveable(boolean moveable)
Set the moveable property. |
void |
setSelectable(boolean select)
Set the Selectable property. |
void |
setSelected(boolean sel)
Sets the selected property. |
void |
setVAlign(int vert)
Set vertical alignment |
void |
setVectorLengthP(double len)
Set line length. |
void |
setVisible(boolean visible)
Set visibility for a LayerChild . |
java.lang.String |
toString()
Return a string that represents the LayerChild . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PLAIN_LINE
public static final int RAISED
public static final int NO_BORDER
public static final int TOP
public static final int MIDDLE
public static final int BOTTOM
public static final int LEFT
public static final int CENTER
public static final int RIGHT
Constructor Detail |
public VectorKey()
public VectorKey(Point2D.Double loc, int valign, int halign)
VectorKey
.Method Detail |
public LayerChild copy()
copy
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
LayerChild
.public void setSelected(boolean sel)
Selectable
setSelected
in interface Selectable
gov.noaa.pmel.sgt.Selectable
sel
- true if selected, false if not.public boolean isSelected()
Selectable
isSelected
in interface Selectable
gov.noaa.pmel.sgt.Selectable
public void setSelectable(boolean select)
Selectable
setSelectable
in interface Selectable
gov.noaa.pmel.sgt.Selectable
select
- if true object is selectablepublic boolean isSelectable()
Selectable
isSelectable
in interface Selectable
gov.noaa.pmel.sgt.Selectable
public boolean isMoveable()
Moveable
isMoveable
in interface Moveable
gov.noaa.pmel.sgt.Moveable
public void setMoveable(boolean moveable)
Moveable
setMoveable
in interface Moveable
gov.noaa.pmel.sgt.Moveable
select
- if true object is moveablepublic void setLayer(Layer l)
setLayer
in interface LayerChild
l
- parent layerpublic Layer getLayer()
getLayer
in interface LayerChild
public AbstractPane getPane()
LayerChild
AbstractPane
of the LayerChild
.getPane
in interface LayerChild
public void modified(java.lang.String mess)
LayerChild
modified
in interface LayerChild
public void setId(java.lang.String id)
setId
in interface LayerChild
id
- key identifierpublic java.lang.String getId()
getId
in interface LayerChild
public void setVectorLengthP(double len)
len
- line lengthpublic double getVectorLengthP()
public void setColumns(int col)
col
- number of columnspublic int getColumns()
public void setBorderStyle(int style)
style
- border stylePLAIN_LINE
,
RAISED
,
NO_BORDER
public int getBorderStyle()
public void setAlign(int vert, int horz)
vert
- vertical alignmenthorz
- horizontal alignmentpublic void setVAlign(int vert)
vert
- vertical alignmentpublic void setHAlign(int horz)
horz
- horizontal alignmentpublic int getVAlign()
public int getHAlign()
public void setLocationP(Point2D.Double loc)
location
.loc
- key locationpublic void setBoundsP(Rectangle2D.Double r)
VectorKey
public Rectangle2D.Double getBoundsP()
public Point2D.Double getLocationP()
public void addVectorGraph(VectorCartesianRenderer vector, SGLabel label)
line
- VectorCartesianGraph objectlabel
- descriptive labelpublic void removeVectorGraph(SGLabel label)
public void removeVectorRenderer(VectorCartesianRenderer line)
public void removeVectorGraph(java.lang.String ident)
public void clearAll()
public void clear(java.lang.String data_id)
public int getRowHeight()
public void draw(java.awt.Graphics g)
draw
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
g
- Graphics contextLayerNotFoundException
- No layer is associated with the LayerChild
.public java.awt.Rectangle getBounds()
getBounds
in interface Selectable
public java.awt.Point getLocation()
Moveable
getLocation
in interface Moveable
gov.noaa.pmel.sgt.Moveable
public void setLocation(java.awt.Point loc)
Moveable
setLocation
in interface Moveable
public void setBounds(java.awt.Rectangle r)
VectorKey
public void setBounds(int x, int y, int width, int height)
VectorKey
location
.public java.lang.String toString()
LayerChild
LayerChild
.toString
in interface LayerChild
toString
in class java.lang.Object
gov.noaa.pmel.sgt.LayerChild
LayerChild
representation.public boolean isVisible()
LayerChild
LayerChild
is visible.isVisible
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
public void setVisible(boolean visible)
LayerChild
LayerChild
.setVisible
in interface LayerChild
gov.noaa.pmel.sgt.LayerChild
visible
- visible if truepublic void propertyChange(java.beans.PropertyChangeEvent evt)
java.beans.PropertyChangeListener
propertyChange
in interface java.beans.PropertyChangeListener
java.beans.PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source
and the property that has changed.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
addPropertyChangeListener
in interface Moveable
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
removePropertyChangeListener
in interface Moveable
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |