All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.RulerView

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Responder
                   |
                   +----com.apple.alpha.app.View
                           |
                           +----com.apple.alpha.app.RulerView

public class RulerView
extends View
This class wraps the Objective-C class NSRulerView.


Variable Index

 o HorizontalRuler
 o VerticalRuler

Constructor Index

 o RulerView()
This default constructor is equivalent to Objective-C's [[NSRulerView alloc] init].
 o RulerView(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o RulerView(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o RulerView(Rect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.
 o RulerView(ScrollView, int)
This constructor has the same effect as calling - initWithScrollView:orientation: on a newly allocated object.

Method Index

 o accessoryView()
A wrapper for the - accessoryView Objective-C instance method.
 o addMarker(RulerMarker)
A wrapper for the - addMarker: Objective-C instance method.
 o baselineLocation()
A wrapper for the - baselineLocation Objective-C instance method.
 o clientView()
A wrapper for the - clientView Objective-C instance method.
 o drawHashMarksAndLabelsInRect(Rect)
A wrapper for the - drawHashMarksAndLabelsInRect: Objective-C instance method.
 o drawMarkersInRect(Rect)
A wrapper for the - drawMarkersInRect: Objective-C instance method.
 o invalidateHashMarks()
A wrapper for the - invalidateHashMarks Objective-C instance method.
 o isFlipped()
A wrapper for the - isFlipped Objective-C instance method.
 o markers()
A wrapper for the - markers Objective-C instance method.
 o measurementUnits()
A wrapper for the - measurementUnits Objective-C instance method.
 o moveRulerlineFromLocation(float, float)
A wrapper for the - moveRulerlineFromLocation:toLocation: Objective-C instance method.
 o orientation()
A wrapper for the - orientation Objective-C instance method.
 o originOffset()
A wrapper for the - originOffset Objective-C instance method.
 o registerUnit(String, String, float, Array, Array)
A wrapper for the + registerUnitWithName:abbreviation:unitToPointsConversionFactor:stepUpCycle:stepDownCycle: Objective-C class method.
 o removeMarker(RulerMarker)
A wrapper for the - removeMarker: Objective-C instance method.
 o requiredThickness()
A wrapper for the - requiredThickness Objective-C instance method.
 o reservedThicknessForAccessoryView()
A wrapper for the - reservedThicknessForAccessoryView Objective-C instance method.
 o reservedThicknessForMarkers()
A wrapper for the - reservedThicknessForMarkers Objective-C instance method.
 o ruleThickness()
A wrapper for the - ruleThickness Objective-C instance method.
 o scrollView()
A wrapper for the - scrollView Objective-C instance method.
 o setAccessoryView(View)
A wrapper for the - setAccessoryView: Objective-C instance method.
 o setClientView(View)
A wrapper for the - setClientView: Objective-C instance method.
 o setMarkers(Array)
A wrapper for the - setMarkers: Objective-C instance method.
 o setMeasurementUnits(String)
A wrapper for the - setMeasurementUnits: Objective-C instance method.
 o setOrientation(int)
A wrapper for the - setOrientation: Objective-C instance method.
 o setOriginOffset(float)
A wrapper for the - setOriginOffset: Objective-C instance method.
 o setReservedThicknessForAccessoryView(float)
A wrapper for the - setReservedThicknessForAccessoryView: Objective-C instance method.
 o setReservedThicknessForMarkers(float)
A wrapper for the - setReservedThicknessForMarkers: Objective-C instance method.
 o setRuleThickness(float)
A wrapper for the - setRuleThickness: Objective-C instance method.
 o setScrollView(ScrollView)
A wrapper for the - setScrollView: Objective-C instance method.
 o trackMarker(RulerMarker, Event)
A wrapper for the - trackMarker:withMouseEvent: Objective-C instance method.

Variables

 o HorizontalRuler
 public static final int HorizontalRuler
 o VerticalRuler
 public static final int VerticalRuler

Constructors

 o RulerView
 protected RulerView(boolean shouldAllocate,
                     int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o RulerView
 public RulerView()
This default constructor is equivalent to Objective-C's [[NSRulerView alloc] init].

 o RulerView
 public RulerView(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o RulerView
 public RulerView(Rect frameRect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.

 o RulerView
 public RulerView(ScrollView scrollView,
                  int orientation)
This constructor has the same effect as calling - initWithScrollView:orientation: on a newly allocated object.

Methods

 o registerUnit
 public static native void registerUnit(String unitName,
                                        String abbreviation,
                                        float conversionFactor,
                                        Array stepUpCycle,
                                        Array stepDownCycle)
A wrapper for the + registerUnitWithName:abbreviation:unitToPointsConversionFactor:stepUpCycle:stepDownCycle: Objective-C class method.

 o setScrollView
 public native void setScrollView(ScrollView scrollView)
A wrapper for the - setScrollView: Objective-C instance method.

 o scrollView
 public native ScrollView scrollView()
A wrapper for the - scrollView Objective-C instance method.

 o setOrientation
 public native void setOrientation(int orientation)
A wrapper for the - setOrientation: Objective-C instance method.

 o orientation
 public native int orientation()
A wrapper for the - orientation Objective-C instance method.

 o baselineLocation
 public native float baselineLocation()
A wrapper for the - baselineLocation Objective-C instance method.

 o requiredThickness
 public native float requiredThickness()
A wrapper for the - requiredThickness Objective-C instance method.

 o setRuleThickness
 public native void setRuleThickness(float thickness)
A wrapper for the - setRuleThickness: Objective-C instance method.

 o ruleThickness
 public native float ruleThickness()
A wrapper for the - ruleThickness Objective-C instance method.

 o setReservedThicknessForMarkers
 public native void setReservedThicknessForMarkers(float thickness)
A wrapper for the - setReservedThicknessForMarkers: Objective-C instance method.

 o reservedThicknessForMarkers
 public native float reservedThicknessForMarkers()
A wrapper for the - reservedThicknessForMarkers Objective-C instance method.

 o setReservedThicknessForAccessoryView
 public native void setReservedThicknessForAccessoryView(float thickness)
A wrapper for the - setReservedThicknessForAccessoryView: Objective-C instance method.

 o reservedThicknessForAccessoryView
 public native float reservedThicknessForAccessoryView()
A wrapper for the - reservedThicknessForAccessoryView Objective-C instance method.

 o setMeasurementUnits
 public native void setMeasurementUnits(String unitName)
A wrapper for the - setMeasurementUnits: Objective-C instance method.

 o measurementUnits
 public native String measurementUnits()
A wrapper for the - measurementUnits Objective-C instance method.

 o setOriginOffset
 public native void setOriginOffset(float offset)
A wrapper for the - setOriginOffset: Objective-C instance method.

 o originOffset
 public native float originOffset()
A wrapper for the - originOffset Objective-C instance method.

 o setClientView
 public native void setClientView(View client)
A wrapper for the - setClientView: Objective-C instance method.

 o clientView
 public native View clientView()
A wrapper for the - clientView Objective-C instance method.

 o setMarkers
 public native void setMarkers(Array markers)
A wrapper for the - setMarkers: Objective-C instance method.

 o addMarker
 public native void addMarker(RulerMarker marker)
A wrapper for the - addMarker: Objective-C instance method.

 o removeMarker
 public native void removeMarker(RulerMarker marker)
A wrapper for the - removeMarker: Objective-C instance method.

 o markers
 public native Array markers()
A wrapper for the - markers Objective-C instance method.

 o trackMarker
 public native boolean trackMarker(RulerMarker marker,
                                   Event event)
A wrapper for the - trackMarker:withMouseEvent: Objective-C instance method.

 o setAccessoryView
 public native void setAccessoryView(View accessory)
A wrapper for the - setAccessoryView: Objective-C instance method.

 o accessoryView
 public native View accessoryView()
A wrapper for the - accessoryView Objective-C instance method.

 o moveRulerlineFromLocation
 public native void moveRulerlineFromLocation(float oldLocation,
                                              float newLocation)
A wrapper for the - moveRulerlineFromLocation:toLocation: Objective-C instance method.

 o invalidateHashMarks
 public native void invalidateHashMarks()
A wrapper for the - invalidateHashMarks Objective-C instance method.

 o drawHashMarksAndLabelsInRect
 public native void drawHashMarksAndLabelsInRect(Rect rect)
A wrapper for the - drawHashMarksAndLabelsInRect: Objective-C instance method.

 o drawMarkersInRect
 public native void drawMarkersInRect(Rect rect)
A wrapper for the - drawMarkersInRect: Objective-C instance method.

 o isFlipped
 public native boolean isFlipped()
A wrapper for the - isFlipped Objective-C instance method.

Overrides:
isFlipped in class View

All Packages  Class Hierarchy  This Package  Previous  Next  Index