Trees | Index | Help |
---|
Module gwy :: Class VectorLayer |
|
Method Summary | |
---|---|
Ensures a vector layer's selection exist in data container. | |
Gets editability of a vector layer. | |
Gets focused object index. | |
Gets the key identifying selection this vector layer displays. | |
Emits "object-chosen" signal on a vector layer. | |
Sets a vector layer editability. | |
Focues on one selection object. | |
Sets the selection object to use by a vector layer. | |
Sends a mouse button press event to a layer. | |
Sends a mouse button release event to a layer. | |
Draws layer on given drawable (which should be a
DataView window). | |
Sends a key press event to a layer. | |
Sends a key release event to a layer. | |
Sends a mouse pointer motion notification event to a layer. |
Method Details |
---|
ensure_selection()Ensures a vector layer's selection exist in data container. This method can be called only when layer is plugged into a data view and it has a selection key set. If the data container contains a selection under the specified key the selection is returned. If there is none, a selection of appropriate type is created and put to the container first. Provided the above conditions are met this method is suitable for just obtaining the selection object a vector layer uses too.
|
get_editable()Gets editability of a vector layer.
|
get_focus()Gets focused object index.
|
get_selection_key()Gets the key identifying selection this vector layer displays.
|
object_chosen(id)Emits "object-chosen" signal on a vector layer. This function is primarily intended for layer implementations.
|
set_editable(editable)Sets a vector layer editability. It is an error to attempt to set a layer non-editabile while it is being edited. When a layer is set noneditable, the user cannot change the selection. However, "object-chosen" signal is still emitted.
|
set_focus(focus)Focues on one selection object. When a selection object is focused, it becomes the only one user can interact with. More precisely, "object-chosen" signal is emitted only for this object, and if the layer is editable only this object can be modified by the user.
|
set_selection_key(key)Sets the selection object to use by a vector layer.
|
UNIMPLEMENTED_button_press(event)Sends a mouse button press event to a layer. This method primarily exists forDataView to
forward events to layers. You should rarely need it.
|
UNIMPLEMENTED_button_release(event)Sends a mouse button release event to a layer. This method primarily exists forDataView to
forward events to layers. You should rarely need it.
|
UNIMPLEMENTED_draw(drawable, target)Drawslayer on given drawable (which should be a
DataView window).
|
UNIMPLEMENTED_key_press(event)Sends a key press event to a layer. This method primarily exists forDataView to
forward events to layers. You should rarely need it.
|
UNIMPLEMENTED_key_release(event)Sends a key release event to a layer. This method primarily exists forDataView to
forward events to layers. You should rarely need it.
|
UNIMPLEMENTED_motion_notify(event)Sends a mouse pointer motion notification event to a layer. This method primarily exists forDataView to
forward events to layers. You should rarely need it.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 | http://epydoc.sf.net |