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 theCockpitControlwith the specified id.intReturns the height of the cockpit form.intgetWidth()Returns the width of the cockpit form.iterator()intsize()Returns the number ofCockpitControlobjects.protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CockpitDesign
protected CockpitDesign(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
iterator
- Specified by:
iteratorin interfaceIterable<CockpitControl>
-
size
public int size()Returns the number ofCockpitControlobjects.CockpitControlelements inside aCockpitFrameare not considered.- Returns:
- Number of controls.
-
getControl
Return theCockpitControlwith the specified id.- Parameters:
id- Id of control- Returns:
- CockpitControl with the given id, or
nullif 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
-