本文整理汇总了Java中org.fit.cssbox.swingbox.util.CSSBoxAnalyzer类的典型用法代码示例。如果您正苦于以下问题:Java CSSBoxAnalyzer类的具体用法?Java CSSBoxAnalyzer怎么用?Java CSSBoxAnalyzer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CSSBoxAnalyzer类属于org.fit.cssbox.swingbox.util包,在下文中一共展示了CSSBoxAnalyzer类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCSSBoxAnalyzer
import org.fit.cssbox.swingbox.util.CSSBoxAnalyzer; //导入依赖的package包/类
/**
* Gets current instance of {@link CSSBoxAnalyzer}
*
* @return the instance of {@link CSSBoxAnalyzer}
*/
public CSSBoxAnalyzer getCSSBoxAnalyzer()
{
if (cbanalyzer == null)
{
cbanalyzer = getDefaultAnalyzer();
}
return cbanalyzer;
}
示例2: setCSSBoxAnalyzer
import org.fit.cssbox.swingbox.util.CSSBoxAnalyzer; //导入依赖的package包/类
/**
* Sets the css box analyzer.
*
* @param cba
* the analyzzer to be set
* @return true, if successful
*/
public boolean setCSSBoxAnalyzer(CSSBoxAnalyzer cba)
{
EditorKit kit = getEditorKit();
if (kit instanceof SwingBoxEditorKit)
{
((SwingBoxEditorKit) kit).setCSSBoxAnalyzer(cba);
return true;
}
return false;
}
示例3: setCSSBoxAnalyzer
import org.fit.cssbox.swingbox.util.CSSBoxAnalyzer; //导入依赖的package包/类
/**
* Sets the css box analyzer.
*
* @param cba
* the analyzer to be set
* @return true, if successful
*/
public boolean setCSSBoxAnalyzer(CSSBoxAnalyzer cba)
{
EditorKit kit = getEditorKit();
if (kit instanceof SwingBoxEditorKit)
{
((SwingBoxEditorKit) kit).setCSSBoxAnalyzer(cba);
return true;
}
return false;
}
示例4: SwingBoxEditorKit
import org.fit.cssbox.swingbox.util.CSSBoxAnalyzer; //导入依赖的package包/类
/**
* Instantiates a new swing box editor kit with CSSBoxAnalyzer set.
*
* @param cba
* the CSSBoxAnalyzer to be set
*/
public SwingBoxEditorKit(CSSBoxAnalyzer cba)
{
this();
this.cbanalyzer = cba;
}
示例5: setCSSBoxAnalyzer
import org.fit.cssbox.swingbox.util.CSSBoxAnalyzer; //导入依赖的package包/类
/**
* Allows to set custom CSSBoxAnalyzer
*
* @param cba
* the instance of CSSBoxAnalyzer
* @see CSSBoxAnalyzer
*/
public void setCSSBoxAnalyzer(CSSBoxAnalyzer cba)
{
this.cbanalyzer = cba;
}