public void updateUI (VMDConnectionWidget widget, ObjectState previousState, ObjectState state) { if (state.isHovered ()) widget.setForeground (COLOR_HOVERED); else if (state.isSelected ()) widget.setForeground (COLOR_SELECTED); else if (state.isHighlighted ()) widget.setForeground (COLOR_HIGHLIGHTED); else if (state.isFocused ()) widget.setForeground (COLOR_HOVERED); else widget.setForeground (COLOR_NORMAL); if (state.isSelected ()) { widget.setControlPointShape (PointShape.SQUARE_FILLED_SMALL); widget.setEndPointShape (PointShape.SQUARE_FILLED_BIG); } else { widget.setControlPointShape (PointShape.NONE); widget.setEndPointShape (POINT_SHAPE_IMAGE); } }
public void updateUI (VMDConnectionWidget widget, ObjectState previousState, ObjectState state) { if (state.isHovered ()) widget.setForeground (COLOR_HOVERED); else if (state.isSelected ()) widget.setForeground (COLOR_SELECTED); else if (state.isHighlighted ()) widget.setForeground (COLOR_HIGHLIGHTED); else if (state.isFocused ()) widget.setForeground (COLOR_HOVERED); else widget.setForeground (COLOR_NORMAL); if (state.isSelected ()) { widget.setControlPointShape (PointShape.SQUARE_FILLED_SMALL); widget.setEndPointShape (PointShape.SQUARE_FILLED_BIG); } else { widget.setControlPointShape (PointShape.NONE); widget.setEndPointShape (POINT_SHAPE_IMAGE); } }
public void updateUI (VMDConnectionWidget widget, ObjectState previousState, ObjectState state) { if (state.isSelected ()) widget.setForeground (COLOR60_SELECT); else if (state.isHighlighted ()) widget.setForeground (VMDOriginalColorScheme.COLOR_HIGHLIGHTED); else if (state.isHovered () || state.isFocused ()) widget.setForeground (COLOR60_HOVER); else widget.setForeground (VMDOriginalColorScheme.COLOR_NORMAL); if (state.isSelected () || state.isHovered ()) { widget.setControlPointShape (PointShape.SQUARE_FILLED_SMALL); widget.setEndPointShape (PointShape.SQUARE_FILLED_BIG); widget.setControlPointCutDistance (0); } else { widget.setControlPointShape (PointShape.NONE); widget.setEndPointShape (POINT_SHAPE60_IMAGE); widget.setControlPointCutDistance (5); } }
public void updateUI (VMDConnectionWidget widget, ObjectState previousState, ObjectState state) { if (state.isSelected ()) widget.setForeground (COLOR60_SELECT); else if (state.isHighlighted ()) widget.setForeground (VMDOriginalColorScheme.COLOR_HIGHLIGHTED); else if (state.isHovered () || state.isFocused ()) widget.setForeground (COLOR60_HOVER); else widget.setForeground (VMDOriginalColorScheme.COLOR_NORMAL); if (state.isSelected () || state.isHovered ()) { widget.setControlPointShape (PointShape.SQUARE_FILLED_SMALL); widget.setEndPointShape (PointShape.SQUARE_FILLED_BIG); widget.setControlPointCutDistance (0); } else { widget.setControlPointShape (PointShape.NONE); widget.setEndPointShape (POINT_SHAPE60_IMAGE); widget.setControlPointCutDistance (5); } }
public void updateUI (VMDConnectionWidget widget, ObjectState previousState, ObjectState state) { if (state.isSelected ()) { widget.setForeground (COLOR60_SELECT); } else if (state.isHighlighted ()) { widget.setForeground (COLOR_HIGHLIGHTED); } else if (state.isHovered () || state.isFocused ()) { widget.setForeground (COLOR60_HOVER); } else { widget.setForeground (COLOR_NORMAL); } if (state.isSelected () || state.isHovered ()) { widget.setControlPointShape (PointShape.SQUARE_FILLED_SMALL); widget.setEndPointShape (PointShape.SQUARE_FILLED_BIG); widget.setControlPointCutDistance (0); } else { widget.setControlPointShape (PointShape.NONE); widget.setEndPointShape (POINT_SHAPE_IMAGE); widget.setControlPointCutDistance (5); } }