|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beanexplorer.beans.Option
ru.biosoft.graphics.RulerOptions
Class to store options for ruler painting.
| Field Summary | |
protected Pen |
axisPen
Pen to paint main axis of the ruler. |
protected java.awt.Dimension |
decDig
Precision of tabels, Dimension.width - integer part, Dimension.height - fractional part. |
protected ColorFont |
majorFont
ColorFont for major labels. |
protected ColorFont |
minorFont
ColorFont for minor labels. |
protected java.awt.Dimension |
textOffset
Shift of labels relative to the ruler, Dimension.width - in X coordinate,
Dimension.height - in Y coordinate) |
protected java.awt.Dimension |
tickSize
Size of the ticks. |
protected Pen |
ticksPen
Pen to paint ticks of the ruler. |
| Fields inherited from class com.beanexplorer.beans.Option |
notificationEnabled, propagationEnabled |
| Constructor Summary | |
RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont font)
Creates RulerOptions and initializes it to the specified font. |
|
RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont majorFont,
ColorFont minorFont,
java.awt.Dimension decDig,
Pen axisPen,
Pen ticksPen,
java.awt.Dimension tickSize,
java.awt.Dimension textOffset)
Creates RulerOptions and initializes it to the specified options. |
|
RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont majorFont,
ColorFont minorFont,
java.awt.Dimension decDig,
Pen axisPen,
Pen ticksPen,
java.awt.Dimension tickSize,
java.awt.Dimension textOffset,
int step,
int ticks)
Creates RulerOptions and initializes it to the specified options. |
|
| Method Summary | |
Pen |
getAxisPen()
|
java.awt.Dimension |
getDecDig()
|
ColorFont |
getMajorFont()
|
ColorFont |
getMinorFont()
|
int |
getStep()
|
java.awt.Dimension |
getTextOffset()
|
int |
getTicks()
|
java.awt.Dimension |
getTickSize()
|
Pen |
getTicksPen()
|
void |
setAxisPen(Pen axisPen)
|
void |
setDecDig(java.awt.Dimension decDig)
|
void |
setMajorFont(ColorFont majorFont)
|
void |
setMinorFont(ColorFont minorFont)
|
void |
setStep(int step)
|
void |
setStepWithoutNotification(int step)
|
void |
setTextOffset(java.awt.Dimension textOffset)
|
void |
setTicks(int ticks)
|
void |
setTickSize(java.awt.Dimension tickSize)
|
void |
setTicksPen(Pen ticksPen)
|
| Methods inherited from class com.beanexplorer.beans.Option |
addPropertyChangeListener, copyListenersTo, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getParent, isNotificationEnabled, isPropagationEnabled, removePropertyChangeListener, setNotificationEnabled, setParent, setPropagationEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ColorFont majorFont
ColorFont for major labels.
protected ColorFont minorFont
ColorFont for minor labels.
protected java.awt.Dimension decDig
Dimension.width - integer part, Dimension.height - fractional part.
protected Pen axisPen
Pen to paint main axis of the ruler.
protected Pen ticksPen
Pen to paint ticks of the ruler.
protected java.awt.Dimension tickSize
protected java.awt.Dimension textOffset
Dimension.width - in X coordinate,
Dimension.height - in Y coordinate)
| Constructor Detail |
public RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont font)
RulerOptions and initializes it to the specified font.
parent - parent propertyfont - the specified font
public RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont majorFont,
ColorFont minorFont,
java.awt.Dimension decDig,
Pen axisPen,
Pen ticksPen,
java.awt.Dimension tickSize,
java.awt.Dimension textOffset)
RulerOptions and initializes it to the specified options.
parent - parent propertymajorFont - font for major labelsminorFont - font for minor labelsdecDig - precision (width - integer part, height - fractional part)axisPen - pen to paint main axis of the rulerticksPen - pen to paint ticks of the rulertickSize - size of the tickstextOffset - shift of labels relative to ruler (width - in X coordinate, height - in Y coordinate)
public RulerOptions(com.beanexplorer.beans.Option parent,
ColorFont majorFont,
ColorFont minorFont,
java.awt.Dimension decDig,
Pen axisPen,
Pen ticksPen,
java.awt.Dimension tickSize,
java.awt.Dimension textOffset,
int step,
int ticks)
RulerOptions and initializes it to the specified options.
parent - parent propertymajorFont - font for major labelsminorFont - font for minor labelsdecDig - precision (width - integer part, height - fractional part)axisPen - pen to paint main axis of the rulerticksPen - pen to paint ticks of the rulertickSize - size of the tickstextOffset - shift of labels relative to ruler (width - in X coordinate, height - in Y coordinate)| Method Detail |
public ColorFont getMajorFont()
public void setMajorFont(ColorFont majorFont)
public ColorFont getMinorFont()
public void setMinorFont(ColorFont minorFont)
public java.awt.Dimension getDecDig()
public void setDecDig(java.awt.Dimension decDig)
public Pen getAxisPen()
public void setAxisPen(Pen axisPen)
public Pen getTicksPen()
public void setTicksPen(Pen ticksPen)
public java.awt.Dimension getTickSize()
public void setTickSize(java.awt.Dimension tickSize)
public java.awt.Dimension getTextOffset()
public void setTextOffset(java.awt.Dimension textOffset)
public int getStep()
public void setStep(int step)
public void setStepWithoutNotification(int step)
public int getTicks()
public void setTicks(int ticks)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||