本文整理了Java中javafx.scene.shape.Line.setVisible()
方法的一些代码示例,展示了Line.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setVisible()
方法的具体详情如下:
包路径:javafx.scene.shape.Line
类名称:Line
方法名:setVisible
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
leftLine.setStroke(control.getCheckedColor());
leftLine.setStrokeWidth(lineThick);
rightLine.setVisible(false);
leftLine.setVisible(false);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
void hideCaret() {
this.caret.setVisible(false);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private void showCaret() {
this.caret.setVisible(true);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
/**
* Set the caret to show at the given index
*
* @param index
* the index or <code>-1</code> if caret is to be hidden
*/
public void setCaretIndex(int index) {
if (index >= 0) {
this.caretIndex = index;
if( this.ownerFocusedProperty.get() ) {
this.caret.setVisible(true);
} else {
this.caret.setVisible(false);
}
this.flashTimeline.play();
requestLayout();
} else {
this.caretIndex = -1;
this.flashTimeline.stop();
this.caret.setVisible(false);
requestLayout();
}
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
public CaretLayer() {
this.caret.setVisible(false);
this.caret.setStrokeWidth(2);
this.caret.getStyleClass().add("text-caret"); //$NON-NLS-1$
this.caret.setVisible(false);
this.getChildren().add(this.caret);
this.caretAnimation = createCaretAnimation(this.caret);
this.sceneProperty().addListener((x, o, n)->{
if (n == null) {
if (this.caretAnimation != null) {
this.caretAnimation.stop();
}
this.caretAnimation = null;
}
else {
this.caretAnimation = createCaretAnimation(this.caret);
}
});
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
this.selectionMarker.setManaged(false);
this.selectionMarker.getStyleClass().add("selection-marker"); //$NON-NLS-1$
this.caret.setVisible(false);
this.caret.setStrokeWidth(2);
this.caret.setManaged(false);
StyledTextLayoutContainer.this.caret.setVisible(false);
} else {
StyledTextLayoutContainer.this.caret.setVisible(StyledTextLayoutContainer.this.caretIndex != -1);
StyledTextLayoutContainer.this.caret.setVisible(false);
};
ownerFocusedProperty.addListener( o -> {
if( ! ownerFocusedProperty.get() ) {
this.caret.setVisible(false);
代码示例来源:origin: com.jfoenix/jfoenix
leftLine.setStroke(control.getCheckedColor());
leftLine.setStrokeWidth(lineThick);
rightLine.setVisible(false);
leftLine.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!