Package com.uc4.api.objects
Class CockpitDesign
java.lang.Object
com.uc4.api.objects.CockpitDesign
- All Implemented Interfaces:
Iterable<CockpitControl>
Represents the Cockpit tab of the
Cockpit
object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetControl
(int id) Return theCockpitControl
with the specified id.int
Returns the height of the cockpit form.int
getWidth()
Returns the width of the cockpit form.iterator()
int
size()
Returns the number ofCockpitControl
objects.protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CockpitDesign
protected CockpitDesign(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
iterator
- Specified by:
iterator
in interfaceIterable<CockpitControl>
-
size
public int size()Returns the number ofCockpitControl
objects.CockpitControl
elements inside aCockpitFrame
are not considered.- Returns:
- Number of controls.
-
getControl
Return theCockpitControl
with the specified id.- Parameters:
id
- Id of control- Returns:
- CockpitControl with the given id, or
null
if the control with the given id doesn't exists.
-
getHeight
public int getHeight()Returns the height of the cockpit form.- Returns:
- height
-
getWidth
public int getWidth()Returns the width of the cockpit form.- Returns:
- width
-