API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. ComponentOrientation View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ComponentOrientation
Implements
 Serializable
Subclasses
Description
publicfinal class ComponentOrientation
  The ComponentOrientation class encapsulates the language-sensitive orientation that is to be used to order the elements of a component or of text.
See also:   
Constructors
private ComponentOrientation (int value)
Methods
Hide/Show inherited methods
publicstatic ComponentOrientation getOrientation (Locale locale)
  Returns the orientation that is appropriate for the given locale.
@Deprecated
publicstatic ComponentOrientation getOrientation (ResourceBundle bdl)
  Returns the orientation appropriate for the given ResourceBundle's localization.
public boolean isHorizontal ()
Are lines horizontal? This will return true for horizontal, left-to-right writing systems such as Roman.
public boolean isLeftToRight ()
HorizontalLines: Do items run left-to-right?
Vertical Lines: Do lines run left-to-right?
This will return true for horizontal, left-to-right writing systems such as Roman.
Fields
Hide/Show inherited fields
publicfinalstatic ComponentOrientation LEFT_TO_RIGHT
Items run left to right and lines flow top to bottom Examples: English, French.
publicfinalstatic ComponentOrientation RIGHT_TO_LEFT
Items run right to left and lines flow top to bottom Examples: Arabic, Hebrew.
publicfinalstatic ComponentOrientation UNKNOWN
  Indicates that a component's orientation has not been set.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar