Searched refs:family (Results 1 - 25 of 60) sorted by relevance

123

/openjdk7/jdk/src/share/sample/nio/multicast/
H A DSender.java66 ProtocolFamily family = StandardProtocolFamily.INET;
68 family = StandardProtocolFamily.INET6;
69 DatagramChannel dc = DatagramChannel.open(family).bind(new InetSocketAddress(0));
H A DReader.java103 ProtocolFamily family = StandardProtocolFamily.INET;
105 family = StandardProtocolFamily.INET6;
107 DatagramChannel dc = DatagramChannel.open(family)
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DSelectorProviderImpl.java45 public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException { argument
46 return new DatagramChannelImpl(this, family);
H A DDatagramChannelImpl.java57 // The protocol family of the socket
58 private final ProtocolFamily family; field in class:DatagramChannelImpl
113 this.family = Net.isIPv6Available() ?
115 this.fd = Net.socket(family, false);
124 public DatagramChannelImpl(SelectorProvider sp, ProtocolFamily family) argument
128 if ((family != StandardProtocolFamily.INET) &&
129 (family != StandardProtocolFamily.INET6))
131 if (family == null)
132 throw new NullPointerException("'family' is null");
134 throw new UnsupportedOperationException("Protocol family no
[all...]
H A DNet.java41 // unspecified protocol family
321 static void setSocketOption(FileDescriptor fd, ProtocolFamily family, argument
360 OptionKey key = SocketOptionRegistry.findOption(name, family);
372 boolean mayNeedConversion = (family == UNSPEC);
376 static Object getSocketOption(FileDescriptor fd, ProtocolFamily family, argument
387 OptionKey key = SocketOptionRegistry.findOption(name, family);
391 boolean mayNeedConversion = (family == UNSPEC);
419 static FileDescriptor socket(ProtocolFamily family, boolean stream) argument
422 (family != StandardProtocolFamily.INET);
439 static void bind(ProtocolFamily family, FileDescripto argument
460 connect(ProtocolFamily family, FileDescriptor fd, InetAddress remote, int remotePort) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DFontFamily.java56 * If this was the only font in the family, the family is removed
62 FontFamily family = getFamily(name);
63 if (family == null) {
66 if (family.plain == font2D) {
67 family.plain = null;
69 if (family.bold == font2D) {
70 family.bold = null;
72 if (family.italic == font2D) {
73 family
271 addLocaleNames(FontFamily family, String[] names) argument
[all...]
H A DFontManager.java66 * The name could be a family name, or a full name.
102 * @param family the font family of the derived font
108 public Font2DHandle getNewComposite(String family, int style, argument
H A DSunFontManager.java599 public Font2DHandle getNewComposite(String family, int style, argument
609 if (family == null) {
610 family = oldFont.getFamilyName(null);
616 Font2D newFont = findFont2D(family, style, NO_FALLBACK);
704 FontFamily family = FontFamily.getFamily(f.familyName);
705 if (family == null) {
706 family = new FontFamily(f.familyName, true, rank);
708 family.setFont(f, f.style);
762 FontFamily family = FontFamily.getFamily(familyName);
763 if (family
3923 getFontConfigFUIR(String family, int style, int size) argument
[all...]
H A DAttributeValues.java64 private String family = "Default"; field in class:AttributeValues
95 public String getFamily() { return family; }
96 public void setFamily(String f) { this.family = f; update(EFAMILY); }
450 // also assumes we're generally calling this only if family,
477 && equals(family, rhs.family)
514 b.append(family);
573 case EFAMILY: family = src.family; break;
602 case EFAMILY: return equals(family, sr
[all...]
/openjdk7/jdk/src/macosx/classes/sun/font/
H A DCFontManager.java97 // logical fonts always need to be added to the family
106 FontFamily family = FontFamily.getFamily(familyName);
107 if (family == null) {
108 family = new FontFamily(familyName, false, rank);
109 family.setFont(f, f.style);
110 } else if (family.getRank() >= rank) {
111 family.setFont(f, f.style);
305 FontFamily family = getFontFamily(realName, fallbackName);
306 if (family != null) return family;
359 getFontConfigFUIR( String family, int style, int size) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DPangoFonts.java83 String family = "";
102 if (family.length() > 0) {
103 family += " ";
106 family += word;
192 String fcFamilyLC = family.toLowerCase();
194 /* family is a Fc/Pango logical font which we need to expand. */
200 Font font = new Font(family, style, size);
/openjdk7/jdk/src/share/classes/java/net/
H A DInet4Address.java107 holder().family = IPv4;
112 holder().family = IPv4;
125 holder().family = IPv4;
144 * Prior to 1.4 an InetAddress was created with a family
147 * the InetAddress with this family.
149 inet.holder().family = 2;
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DMulticastSendReceiveTests.java59 ProtocolFamily family = (group instanceof Inet6Address) ?
61 DatagramChannel dc = DatagramChannel.open(family)
141 static void test(ProtocolFamily family, argument
147 System.out.format("\nTest DatagramChannel to %s socket\n", family.name());
148 try (DatagramChannel dc = (family == UNSPEC) ?
149 DatagramChannel.open() : DatagramChannel.open(family)) {
160 if (family == UNSPEC) {
/openjdk7/jdk/src/solaris/native/sun/nio/ch/
H A DInheritedChannel.c41 int family = sa->sa_family; local
44 return (family == AF_INET6);
47 return (family == AF_INET);
/openjdk7/jdk/src/solaris/classes/java/net/
H A DPlainDatagramSocketImpl.java78 protected native void disconnect0(int family); argument
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DDatagramChannel.java136 * The {@link #open(ProtocolFamily) open} allows the protocol family to be
152 * <p> The {@code family} parameter is used to specify the {@link
163 * @param family
164 * The protocol family
169 * If the specified protocol family is not supported. For example,
178 public static DatagramChannel open(ProtocolFamily family) throws IOException { argument
179 return SelectorProvider.provider().openDatagramChannel(family);
/openjdk7/jdk/src/share/classes/sun/management/jdp/
H A DJdpBroadcaster.java70 ProtocolFamily family = (address instanceof Inet6Address)
73 channel = DatagramChannel.open(family);
/openjdk7/jdk/src/share/native/sun/nio/ch/
H A DgenSocketOptionRegistry.c46 static void emit(const char *name, char * family, int level, int optname) { argument
47 printf(" map.put(new RegistryKey(%s, %s),", name, family);
76 out(" private final ProtocolFamily family; ");
77 out(" RegistryKey(SocketOption<?> name, ProtocolFamily family) { ");
79 out(" this.family = family; ");
82 out(" return name.hashCode() + family.hashCode(); ");
89 out(" if (this.family != other.family) return false; ");
123 out(" public static OptionKey findOption(SocketOption<?> name, ProtocolFamily family) { ");
[all...]
/openjdk7/jdk/src/share/native/java/net/
H A Dnet_util.c87 /* The address, and family fields used to be in InetAddress
104 void setInetAddress_family(JNIEnv *env, jobject iaObj, int family) { argument
108 (*env)->SetIntField(env, holder, iac_familyID, family);
218 jint family = AF_INET; local
221 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6;
232 if (family == AF_INET6) {
247 if (family == AF_INET) {
264 if (family != AF_INET) {
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DStyledEditorKit.java332 new FontFamilyAction("font-family-SansSerif", "SansSerif"),
333 new FontFamilyAction("font-family-Monospaced", "Monospaced"),
334 new FontFamilyAction("font-family-Serif", "Serif"),
483 * An action to set the font family in the associated
484 * JEditorPane. This will use the family specified as
486 * otherwise the family that was initialized with will be used.
503 * @param family the font family
505 public FontFamilyAction(String nm, String family) { argument
507 this.family
535 private String family; field in class:StyledEditorKit.FontFamilyAction
[all...]
H A DStyleContext.java194 String family = StyleConstants.getFontFamily(attr);
207 return getFont(family, style, size);
242 * @param family the font family (such as "Monospaced")
247 public Font getFont(String family, int style, int size) { argument
248 fontSearch.setValue(family, style, size);
259 && defaultFont.getFamily().equalsIgnoreCase(family)) {
264 f = new Font(family, style, size);
269 FontKey key = new FontKey(family, style, size);
1185 private String family; field in class:StyleContext.FontKey
1192 FontKey(String family, int style, int size) argument
1196 setValue(String family, int style, int size) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A Ddefault.css30 font-family: Serif;
177 font-family: Monospaced}
182 font-family: Monospaced}
193 font-family: Monospaced}
205 tt {font-family: Monospaced}
257 font-family: Monospaced}
/openjdk7/jdk/src/windows/native/sun/font/
H A Dfontpath.c78 jstring family; member in struct:GdiFontMapInfo
130 * Expects to be called once for each face name in the family specified
134 * name is used as key to the family name value in the font to family map,
135 * the canonical name is one of the"list" of members of the family.
159 fmi->putMID, fullnameLC, fmi->family);
164 wchar_t *family; member in struct:CheckFamilyInfo
176 info->isDifferent = wcscmp(lpelfe->elfLogFont.lfFaceName, info->family);
179 /* wprintf(LFor font %s expected family=%s instead got %s\n", */
181 /* info->family, */
188 DifferentFamily(wchar_t *family, wchar_t* fullName) argument
[all...]
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_Font.c270 char *family = NULL, *style = NULL, *slant = NULL, *encoding = NULL; local
296 family = start;
338 if (!strcmp(family, "lucidasans")) {
339 family = "lucida";
345 family, style, slant, pointSize, encoding);
351 family, altstyle, slant, pointSize, encoding);
361 family, style, slant, pixelSize, encoding);
367 family, altstyle, slant, pixelSize, encoding);
402 family, style, slant, pixelSize + i, encoding);
407 family, styl
648 jstring family = NULL; local
[all...]
/openjdk7/jdk/src/macosx/native/sun/font/
H A DAWTFont.m77 // create font with family & size
185 NSString *family = [allFamilies objectAtIndex:familyIndex];
187 if ((family == nil) || [family characterAtIndex:0] == '.') {
191 NSArray *fontFaces = [fontManager availableMembersOfFontFamily:family];
199 [fontFamilyTable setObject:family forKey:face];

Completed in 88 milliseconds

123