Class: GOffice::GraphObject
- Inherits:
-
Object
- Object
- GOffice::GraphObject
- Defined in:
- (unknown)
Direct Known Subclasses
Class Method Summary collapse
- .register_roles(klass, roles, n_roles) ⇒ nil
-
.sax_push_parser(xin, attrs, handler, user_unserialize, user_data) ⇒ nil
Unserializes a Gog::Object using handler when done.
- .set_arg(name, val, obj) ⇒ nil
Instance Method Summary collapse
-
#add_by_name(role, child) ⇒ GOffice::GraphObject
it is assumed to be an unaffiliated object that will be assigned in role.
-
#add_by_role(role, child) ⇒ GOffice::GraphObject
Absorb a ref to child if it is non-NULL.
-
#alignment ⇒ String
Alignment.
- #alignment=(alignment) ⇒ String
-
#anchor ⇒ String
Anchor.
- #anchor=(anchor) ⇒ String
-
#can_reorder(inc_ok, dec_ok) ⇒ nil
If obj can move forward or backward in its parents child list.
-
#clear_parent ⇒ Boolean
Does not unref the child, which in effect adds a ref by freeing up the ref previously associated with the parent.
-
#compass ⇒ String
Compass.
- #compass=(compass) ⇒ String
- #document_changed(doc) ⇒ nil
-
#dup(new_parent, datadup) ⇒ GOffice::GraphObject
Create a deep copy of obj using new_parent as its parent.
- #emit_changed(size) ⇒ nil
- #find_role_by_name(role) ⇒ GOffice::GraphObjectRole
-
#get_child_by_name(name) ⇒ GOffice::GraphObject
A convenience routine to find a unique child with role == name.
-
#get_child_by_role(role) ⇒ GOffice::GraphObject
A convenience routine to find a unique child with role.
-
#get_children(filter) ⇒ GLib::SList<GOffice::GraphObject>
Children.
-
#get_editor(dalloc, cc) ⇒ GObject
Builds an object property editor, by calling GogObject::populate_editor virtual functions.
-
#get_manual_allocation(parent_allocation, requisition) ⇒ GOffice::GraphViewAllocation
its size request.
-
#get_manual_position(pos) ⇒ nil
FIXME.
-
#get_parent_typed(t) ⇒ GOffice::GraphObject
added to a hierarchy yet or none of the parents are of type type.
-
#get_position_flags(mask) ⇒ GOffice::GraphObjectPosition
obj's position flags, masked by mask.
-
#graph ⇒ GOffice::GraphGraph
The parent graph.
-
#id ⇒ Integer
Id.
- #id=(id) ⇒ Integer
- #initialize(input, user_unserialize) ⇒ GOffice::GraphObject constructor
- #invisible=(invisible) ⇒ Boolean
-
#invisible? ⇒ Boolean
Invisible.
- #is_default_position_flags(name) ⇒ Boolean
-
#is_deletable ⇒ Boolean
True if obj can be deleted.
- #is_position_manual=(is_position_manual) ⇒ Boolean
-
#is_position_manual? ⇒ Boolean
Is-position-manual.
-
#manual_position=(pos) ⇒ nil
set manual position of given object, in points.
-
#manual_size ⇒ String
Manual-size.
- #manual_size=(manual_size) ⇒ String
- #manual_size_mode ⇒ GOffice::GraphManualSizeMode
-
#name ⇒ String
No need to free the result.
-
#name=(name) ⇒ nil
Assign the new name and signals that it has changed.
-
#new_view(parent) ⇒ GOffice::GraphView
Creates a new Gog::View associated to obj, and sets its parent to parent.
-
#parent ⇒ GOffice::GraphObject
obj's parent, potentially nil if it has not been added to a heirarchy yet.
-
#position ⇒ String
Position.
- #position=(position) ⇒ String
-
#possible_additions ⇒ GLib::SList<GOffice::GraphObjectRole>
of GogObjectRoles that could be added.
-
#reorder(inc, goto_max) ⇒ GOffice::GraphObject
The object just before obj in the new ordering.
-
#request_editor_update ⇒ nil
Emits a update-editor signal.
- #request_update ⇒ Boolean
-
#set_parent(parent, role, id) ⇒ Boolean
Absorbs a ref to child.
-
#set_position_flags(flags, mask) ⇒ Boolean
Attempts to set the position flags of obj to flags.
-
#theme ⇒ GOffice::GraphTheme
The parent graph theme.
- #update ⇒ nil
- #write_xml_sax(output, user) ⇒ nil
Constructor Details
#initialize(input, user_unserialize) ⇒ GOffice::GraphObject
Class Method Details
.register_roles(klass, roles, n_roles) ⇒ nil
.sax_push_parser(xin, attrs, handler, user_unserialize, user_data) ⇒ nil
Unserializes a Gog::Object using handler when done.
.set_arg(name, val, obj) ⇒ nil
Instance Method Details
#add_by_name(role, child) ⇒ GOffice::GraphObject
it is assumed to be an unaffiliated object that will be assigned in role. On failure return NULL.
#add_by_role(role, child) ⇒ GOffice::GraphObject
Absorb a ref to child if it is non-NULL.
#alignment ⇒ String
Returns alignment.
#alignment=(alignment) ⇒ String
#anchor ⇒ String
Returns anchor.
#anchor=(anchor) ⇒ String
#can_reorder(inc_ok, dec_ok) ⇒ nil
If obj can move forward or backward in its parents child list
#clear_parent ⇒ Boolean
Does not unref the child, which in effect adds a ref by freeing up the ref previously associated with the parent.
#compass ⇒ String
Returns compass.
#compass=(compass) ⇒ String
#document_changed(doc) ⇒ nil
#dup(new_parent, datadup) ⇒ GOffice::GraphObject
Create a deep copy of obj using new_parent as its parent.
#emit_changed(size) ⇒ nil
#find_role_by_name(role) ⇒ GOffice::GraphObjectRole
#get_child_by_name(name) ⇒ GOffice::GraphObject
A convenience routine to find a unique child with role == name
#get_child_by_role(role) ⇒ GOffice::GraphObject
A convenience routine to find a unique child with role.
#get_children(filter) ⇒ GLib::SList<GOffice::GraphObject>
Children. Caller must free the list, but not the children.
#get_editor(dalloc, cc) ⇒ GObject
Builds an object property editor, by calling GogObject::populate_editor virtual functions.
#get_manual_allocation(parent_allocation, requisition) ⇒ GOffice::GraphViewAllocation
its size request.
#get_manual_position(pos) ⇒ nil
FIXME
#get_parent_typed(t) ⇒ GOffice::GraphObject
added to a hierarchy yet or none of the parents are of type type.
#get_position_flags(mask) ⇒ GOffice::GraphObjectPosition
Returns obj's position flags, masked by mask.
#graph ⇒ GOffice::GraphGraph
Returns the parent graph.
#id ⇒ Integer
Returns id.
#id=(id) ⇒ Integer
#invisible=(invisible) ⇒ Boolean
#invisible? ⇒ Boolean
Returns invisible.
#is_default_position_flags(name) ⇒ Boolean
#is_deletable ⇒ Boolean
Returns true if obj can be deleted.
#is_position_manual=(is_position_manual) ⇒ Boolean
#is_position_manual? ⇒ Boolean
Returns is-position-manual.
#manual_position=(pos) ⇒ nil
set manual position of given object, in points.
#manual_size ⇒ String
Returns manual-size.
#manual_size=(manual_size) ⇒ String
#manual_size_mode ⇒ GOffice::GraphManualSizeMode
#name ⇒ String
No need to free the result
#name=(name) ⇒ nil
Assign the new name and signals that it has changed. NOTE : it absorbs name rather than copying it, and generates a new name if name == nil
#new_view(parent) ⇒ GOffice::GraphView
Creates a new Gog::View associated to obj, and sets its parent to parent.
#parent ⇒ GOffice::GraphObject
Returns obj's parent, potentially nil if it has not been added to a heirarchy yet. does not change ref-count in any way.
#position ⇒ String
Returns position.
#position=(position) ⇒ String
#possible_additions ⇒ GLib::SList<GOffice::GraphObjectRole>
of GogObjectRoles that could be added. The resulting list needs to be freed
#reorder(inc, goto_max) ⇒ GOffice::GraphObject
Returns the object just before obj in the new ordering.
#request_editor_update ⇒ nil
Emits a update-editor signal. This signal should be used by object editors in order to refresh their states.
#request_update ⇒ Boolean
#set_parent(parent, role, id) ⇒ Boolean
Absorbs a ref to child
#set_position_flags(flags, mask) ⇒ Boolean
Attempts to set the position flags of obj to flags.
#theme ⇒ GOffice::GraphTheme
Returns the parent graph theme.