|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.Logo
Logo displays an Image on its parent Layer. Logo implements the LayerChild interface.
LayerChild| Field Summary | |
static int |
BOTTOM
Align to bottom of Logo. |
static int |
CENTER
Align to center of Logo. |
static int |
LEFT
Align to left of Logo. |
static int |
MIDDLE
Align to middle of Logo. |
static int |
RIGHT
Align to right of Logo. |
static int |
TOP
Align to top of Logo. |
| Constructor Summary | |
Logo()
Default constructor. |
|
Logo(Point2D.Double loc,
int valign,
int halign)
Create a Logo object. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a new PropertyChangeListener. |
LayerChild |
copy()
Create of copy of Logo. |
void |
draw(java.awt.Graphics g)
Draw the Logo. |
java.awt.Rectangle |
getBounds()
Get the bounding rectangle. |
int |
getHAlign()
Get horizontal alignment |
java.lang.String |
getId()
Get Logo identifier |
java.net.URL |
getImageURL()
Get the image URL. |
Layer |
getLayer()
Get layer. |
java.awt.Point |
getLocation()
Gets the location in device coordinates. |
Point2D.Double |
getLocationP()
Get location of logo. |
AbstractPane |
getPane()
Get AbstractPane of the LayerChild. |
int |
getVAlign()
Get vertical alignment |
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 |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener. |
void |
setAlign(int vert,
int horz)
Set alignment. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds of the Logo
Property Change: location. |
void |
setBounds(java.awt.Rectangle r)
Set the bounds of the Logo |
void |
setHAlign(int horz)
Set horizontal alignment |
void |
setId(java.lang.String id)
Set Logo identifier. |
void |
setImage(java.awt.Image img)
Set the Logo image. |
void |
setImageURL(java.net.URL url)
Set the URL for the Logo image. |
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 logo 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 |
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 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 Logo()
public Logo(Point2D.Double loc,
int valign,
int halign)
loc - Location of Logovalign - vertical alignmenthalign - horizontal alignmentsetImageURL(java.net.URL),
setImage(java.awt.Image),
Image| Method Detail |
public LayerChild copy()
copy in interface LayerChildLayerChild.public void setSelected(boolean sel)
Selectable
setSelected in interface Selectablesel - true if selected, false if not.public boolean isSelected()
Selectable
isSelected in interface Selectablepublic void setSelectable(boolean select)
Selectable
setSelectable in interface Selectableselect - if true object is selectablepublic boolean isSelectable()
Selectable
isSelectable in interface Selectablepublic boolean isMoveable()
Moveable
isMoveable in interface Moveablepublic void setMoveable(boolean moveable)
Moveable
setMoveable in interface Moveablepublic void setImageURL(java.net.URL url)
url - image URLsetImage(java.awt.Image)public java.net.URL getImageURL()
public void setImage(java.awt.Image img)
img - Logo imagesetImageURL(java.net.URL)public void setLayer(Layer l)
setLayer in interface LayerChildl - parent layerpublic Layer getLayer()
getLayer in interface LayerChildpublic AbstractPane getPane()
LayerChildAbstractPane of the LayerChild.
getPane in interface LayerChildpublic void modified(java.lang.String mess)
LayerChild
modified in interface LayerChildpublic void setId(java.lang.String id)
setId in interface LayerChildid - logo identifierpublic java.lang.String getId()
getId in interface LayerChild
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 - logo locationpublic Point2D.Double getLocationP()
public void draw(java.awt.Graphics g)
draw in interface LayerChildg - Graphics contextpublic java.awt.Rectangle getBounds()
getBounds in interface Selectablepublic java.awt.Point getLocation()
Moveable
getLocation in interface Moveablepublic void setLocation(java.awt.Point loc)
Moveable
setLocation in interface Moveablepublic void setBounds(java.awt.Rectangle r)
Logo
public void setBounds(int x,
int y,
int width,
int height)
Logo
location.
public java.lang.String toString()
LayerChildLayerChild.
toString in interface LayerChildtoString in class java.lang.ObjectLayerChild representation.public boolean isVisible()
LayerChildLayerChild is visible.
isVisible in interface LayerChildpublic void setVisible(boolean visible)
LayerChildLayerChild.
setVisible in interface LayerChildvisible - visible if truepublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
addPropertyChangeListener in interface Moveablepublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Moveable
removePropertyChangeListener in interface Moveable
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||