📄 textattribute.java
字号:
/* TextAttribute.java Copyright (C) 2003 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING. If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library. Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule. An independent module is a module which is not derived fromor based on this library. If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so. If you do not wish to do so, delete thisexception statement from your version. */package java.awt.font;import java.io.InvalidObjectException;import java.text.AttributedCharacterIterator;public final class TextAttribute extends AttributedCharacterIterator.Attribute{ private static final long serialVersionUID = 7744112784117861702L; public static final TextAttribute BACKGROUND = new TextAttribute ("BACKGROUND"); public static final TextAttribute BIDI_EMBEDDING = new TextAttribute ("BIDI_EMBEDDING"); public static final TextAttribute CHAR_REPLACEMENT = new TextAttribute ("CHAR_REPLACEMENT"); public static final TextAttribute FAMILY = new TextAttribute ("FAMILY"); public static final TextAttribute FONT = new TextAttribute ("FONT"); public static final TextAttribute FOREGROUND = new TextAttribute ("FOREGROUND"); public static final TextAttribute INPUT_METHOD_HIGHLIGHT = new TextAttribute ("INPUT_METHOD_HIGHLIGHT"); public static final TextAttribute INPUT_METHOD_UNDERLINE = new TextAttribute ("INPUT_METHOD_UNDERLINE"); public static final TextAttribute JUSTIFICATION = new TextAttribute ("JUSTIFICATION"); public static final Float JUSTIFICATION_FULL = new Float (1.0); public static final Float JUSTIFICATION_NONE = new Float (0.0); public static final TextAttribute NUMERIC_SHAPING = new TextAttribute ("NUMERIC_SHAPING"); public static final TextAttribute POSTURE = new TextAttribute ("POSTURE"); public static final Float POSTURE_OBLIQUE = new Float (0.2); public static final Float POSTURE_REGULAR = new Float (0.0); public static final TextAttribute RUN_DIRECTION = new TextAttribute ("RUN_DIRECTION"); public static final Boolean RUN_DIRECTION_LTR = new Boolean (true); public static final Boolean RUN_DIRECTION_RTL = new Boolean (false); public static final TextAttribute SIZE = new TextAttribute ("SIZE"); public static final TextAttribute STRIKETHROUGH = new TextAttribute ("STRIKETHROUGH"); public static final Boolean STRIKETHROUGH_ON = new Boolean (true); public static final TextAttribute SUPERSCRIPT = new TextAttribute ("SUPERSCRIPT"); public static final Integer SUPERSCRIPT_SUB = new Integer (-1); public static final Integer SUPERSCRIPT_SUPER = new Integer (1); public static final TextAttribute SWAP_COLORS = new TextAttribute ("SWAP_COLORS"); public static final Boolean SWAP_COLORS_ON = new Boolean (true); public static final TextAttribute TRANSFORM = new TextAttribute ("TRANSFORM"); public static final TextAttribute UNDERLINE = new TextAttribute ("UNDERLINE"); public static final Integer UNDERLINE_LOW_DASHED = new Integer (0); public static final Integer UNDERLINE_LOW_DOTTED = new Integer (0); public static final Integer UNDERLINE_LOW_GRAY = new Integer (0); public static final Integer UNDERLINE_LOW_ONE_PIXEL = new Integer (0); public static final Integer UNDERLINE_LOW_TWO_PIXEL = new Integer (0); public static final Integer UNDERLINE_ON = new Integer (0); public static final TextAttribute WEIGHT = new TextAttribute ("WEIGHT"); public static final Float WEIGHT_BOLD = new Float (2.0); public static final Float WEIGHT_DEMIBOLD = new Float (1.75); public static final Float WEIGHT_DEMILIGHT = new Float (0.875); public static final Float WEIGHT_EXTRA_LIGHT = new Float (0.5); public static final Float WEIGHT_EXTRABOLD = new Float (2.5); public static final Float WEIGHT_HEAVY = new Float (2.25); public static final Float WEIGHT_LIGHT = new Float (0.75); public static final Float WEIGHT_MEDIUM = new Float (1.5); public static final Float WEIGHT_REGULAR = new Float (1.0); public static final Float WEIGHT_SEMIBOLD = new Float (1.25); public static final Float WEIGHT_ULTRABOLD = new Float (2.75); public static final TextAttribute WIDTH = new TextAttribute (""); public static final Float WIDTH_CONDENSED = new Float (0.75); public static final Float WIDTH_EXTENDED = new Float (1.5); public static final Float WIDTH_REGULAR = new Float (1.0); public static final Float WIDTH_SEMI_CONDENSED = new Float (0.875); public static final Float WIDTH_SEMI_EXTENDED = new Float (1.25); protected TextAttribute (String name) { super (name); } protected Object readResolve () throws InvalidObjectException { throw new Error ("not implemented"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -