public abstract class RulerUI
extends javax.swing.plaf.ComponentUI
限定符和类型 | 字段和说明 |
---|---|
protected ScrollRulerComponent |
rulerComponent |
构造器和说明 |
---|
RulerUI(ScrollRulerComponent rulerComponent) |
限定符和类型 | 方法和说明 |
---|---|
protected int |
getunit() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected abstract void |
paintPTRuler(java.awt.Graphics g,
int extra,
java.awt.Dimension size,
int j) |
protected abstract void |
paintRuler(java.awt.Graphics g,
int showText,
int extra,
java.awt.Dimension size,
int ratio) |
protected int |
pxToLength(double d) |
protected double |
toPX(int i) |
protected ScrollRulerComponent rulerComponent
public RulerUI(ScrollRulerComponent rulerComponent)
protected double toPX(int i)
protected int pxToLength(double d)
protected int getunit()
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
在类中 javax.swing.plaf.ComponentUI
protected abstract void paintPTRuler(java.awt.Graphics g, int extra, java.awt.Dimension size, int j)
protected abstract void paintRuler(java.awt.Graphics g, int showText, int extra, java.awt.Dimension size, int ratio)