Package org.robovm.apple.uikit
Class UILabel
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- org.robovm.apple.uikit.UILabel
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UIContentSizeCategoryAdjusting
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class UILabel extends UIView implements NSCoding, UIContentSizeCategoryAdjusting
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UILabel.UILabelPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UILabel()
UILabel(CGRect frame)
UILabel(NSCoder decoder)
protected
UILabel(NSObject.Handle h, long handle)
protected
UILabel(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UILabel
public UILabel()
-
UILabel
protected UILabel(NSObject.Handle h, long handle)
-
UILabel
protected UILabel(NSObject.SkipInit skipInit)
-
UILabel
public UILabel(CGRect frame)
-
UILabel
public UILabel(NSCoder decoder)
-
-
Method Detail
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String v)
-
getFont
public UIFont getFont()
-
setFont
public void setFont(UIFont v)
-
getTextColor
public UIColor getTextColor()
-
setTextColor
public void setTextColor(UIColor v)
-
getShadowColor
public UIColor getShadowColor()
-
setShadowColor
public void setShadowColor(UIColor v)
-
getShadowOffset
public CGSize getShadowOffset()
-
setShadowOffset
public void setShadowOffset(CGSize v)
-
getTextAlignment
public NSTextAlignment getTextAlignment()
-
setTextAlignment
public void setTextAlignment(NSTextAlignment v)
-
getLineBreakMode
public NSLineBreakMode getLineBreakMode()
-
setLineBreakMode
public void setLineBreakMode(NSLineBreakMode v)
-
getAttributedText
public NSAttributedString getAttributedText()
- Since:
- Available in iOS 6.0 and later.
-
setAttributedText
public void setAttributedText(NSAttributedString v)
- Since:
- Available in iOS 6.0 and later.
-
getHighlightedTextColor
public UIColor getHighlightedTextColor()
-
setHighlightedTextColor
public void setHighlightedTextColor(UIColor v)
-
isHighlighted
public boolean isHighlighted()
-
setHighlighted
public void setHighlighted(boolean v)
-
isUserInteractionEnabled
public boolean isUserInteractionEnabled()
- Overrides:
isUserInteractionEnabled
in classUIView
-
setUserInteractionEnabled
public void setUserInteractionEnabled(boolean v)
- Overrides:
setUserInteractionEnabled
in classUIView
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean v)
-
getNumberOfLines
public long getNumberOfLines()
-
setNumberOfLines
public void setNumberOfLines(long v)
-
adjustsFontSizeToFitWidth
public boolean adjustsFontSizeToFitWidth()
-
setAdjustsFontSizeToFitWidth
public void setAdjustsFontSizeToFitWidth(boolean v)
-
getBaselineAdjustment
public UIBaselineAdjustment getBaselineAdjustment()
-
setBaselineAdjustment
public void setBaselineAdjustment(UIBaselineAdjustment v)
-
getMinimumScaleFactor
public double getMinimumScaleFactor()
- Since:
- Available in iOS 6.0 and later.
-
setMinimumScaleFactor
public void setMinimumScaleFactor(double v)
- Since:
- Available in iOS 6.0 and later.
-
allowsDefaultTighteningForTruncation
public boolean allowsDefaultTighteningForTruncation()
- Since:
- Available in iOS 9.0 and later.
-
setAllowsDefaultTighteningForTruncation
public void setAllowsDefaultTighteningForTruncation(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
getPreferredMaxLayoutWidth
public double getPreferredMaxLayoutWidth()
- Since:
- Available in iOS 6.0 and later.
-
setPreferredMaxLayoutWidth
public void setPreferredMaxLayoutWidth(double v)
- Since:
- Available in iOS 6.0 and later.
-
adjustsLetterSpacingToFitWidth
@Deprecated public boolean adjustsLetterSpacingToFitWidth()
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 6.0 and later.
-
setAdjustsLetterSpacingToFitWidth
@Deprecated public void setAdjustsLetterSpacingToFitWidth(boolean v)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 6.0 and later.
-
adjustsFontForContentSizeCategory
public boolean adjustsFontForContentSizeCategory()
- Specified by:
adjustsFontForContentSizeCategory
in interfaceUIContentSizeCategoryAdjusting
-
setAdjustsFontForContentSizeCategory
public void setAdjustsFontForContentSizeCategory(boolean v)
- Specified by:
setAdjustsFontForContentSizeCategory
in interfaceUIContentSizeCategoryAdjusting
-
drawText
public void drawText(CGRect rect)
-
-