| HEADER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ru.biosoft.graphics.View
|
+--ru.biosoft.graphics.CompositeView
|
+--ru.biosoft.graphics.Ruler
Ruler.
| Field Summary | |
static int | GENERuler type: GENE/ USUAL. |
static int | HORIZONTALRuler type: HORIZONTAL/VERTICAL |
static int | LABELS_MAJOR_SHOWRuler type: LABELS_MAJOR_SHOW/ABSENT. |
static int | LABELS_MAJOR_UPRuler type: LABELS_MAJOR_UP/LABELS_MAJOR_DOWN. |
static int | LABELS_MINOR_SHOWRuler type: LABELS_MINOR_SHOW/ABSENT. |
static int | LABELS_MINOR_UPRuler type: LABELS_MINOR_UP/LABELS_MINOR_DOWN. |
static int | TICKS_MAJOR_DOWNRuler type: TICKS_MAJOR_DOWN/ABSENT. |
static int | TICKS_MAJOR_UPRuler type: TICKS_MAJOR_UP/ABSENT. |
static int | TICKS_MINOR_DOWNRuler type: TICKS_MINOR_DOWN/ABSENT. |
static int | TICKS_MINOR_UPRuler type: TICKS_MINOR_UP/ABSENT. |
| Fields inherited from class ru.biosoft.graphics.CompositeView |
REL, X_CC, X_LC, X_LL, X_LR, X_RC, X_RL, X_RR, X_UN, Y_BB, Y_BC, Y_BT, Y_CC, Y_TB, Y_TC, Y_TT, Y_UN |
| Fields inherited from class ru.biosoft.graphics.View |
ACTIVE, BASELINE, BOTTOM, CENTER, HIDE, LEFT, RIGHT, TOP |
| Constructor Summary | |
Ruler(int type, Point anchor, float scale, int min, int max, RulerOptions rulerOptions, Graphics graphics)(pens, brushes, Fonts, margins etc.) needed to ruler painting. | |
| Method Summary | |
void | move(Point p)Moves the ruler (left/bottom axis end) to the specified point. |
void | offset(Dimension d)Shifts the ruler image by the specified distance. |
void | paint(Graphics2D graphics)Paint the ruler. |
| Methods inherited from class ru.biosoft.graphics.CompositeView |
add, add, add, elementAt, getBounds, getChildren, getDeepestActive, getLocation, insert, intersects, move, remove, scale, size, updateBounds |
| Methods inherited from class ru.biosoft.graphics.View |
getModel, getShape, isActive, isVisible, setActive, setLocation, setLocation, setModel, setToScale, setVisible |
| Field Detail |
public static int GENE
public static int HORIZONTAL
public static int LABELS_MAJOR_SHOW
public static int LABELS_MAJOR_UP
public static int LABELS_MINOR_SHOW
public static int LABELS_MINOR_UP
public static int TICKS_MAJOR_DOWN
public static int TICKS_MAJOR_UP
public static int TICKS_MINOR_DOWN
public static int TICKS_MINOR_UP
| Constructor Detail |
public Ruler(int type, Point anchor, float scale, int min, int max, RulerOptions rulerOptions, Graphics graphics)
Used GraphicContext attributes:
Pen Pen_Ruler_Axis Pen Pen_Ruler_Ticks ColorFont Font_Ruler_Labels_Major ColorFont Font_Ruler_Labels_Minor Dimension Margin_Ruler_Text Dimension Size_Ruler_TickSize* Dimension Size_Ruler_DecDig* * number of signs after comma width - for major labels height - for minor labels
| Method Detail |
public void move(Point p)
public void offset(Dimension d)
public void paint(Graphics2D graphics)
| Association Links |
to Class ru.biosoft.graphics.RulerOptions
| FOOTER | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||