id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
53,300 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.removeArea | public void removeArea(final Section AREA) {
if (null == AREA) return;
areas.remove(AREA);
Collections.sort(areas, new SectionComparator());
fireUpdateEvent(SECTION_EVENT);
} | java | public void removeArea(final Section AREA) {
if (null == AREA) return;
areas.remove(AREA);
Collections.sort(areas, new SectionComparator());
fireUpdateEvent(SECTION_EVENT);
} | [
"public",
"void",
"removeArea",
"(",
"final",
"Section",
"AREA",
")",
"{",
"if",
"(",
"null",
"==",
"AREA",
")",
"return",
";",
"areas",
".",
"remove",
"(",
"AREA",
")",
";",
"Collections",
".",
"sort",
"(",
"areas",
",",
"new",
"SectionComparator",
"(... | Removes the given Section from the list of areas.
Areas in the Medusa library usually are more
eye-catching than Sections.
@param AREA | [
"Removes",
"the",
"given",
"Section",
"from",
"the",
"list",
"of",
"areas",
".",
"Areas",
"in",
"the",
"Medusa",
"library",
"usually",
"are",
"more",
"eye",
"-",
"catching",
"than",
"Sections",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1345-L1350 |
53,301 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickMarkSections | public void setTickMarkSections(final List<Section> SECTIONS) {
tickMarkSections.setAll(SECTIONS);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void setTickMarkSections(final List<Section> SECTIONS) {
tickMarkSections.setAll(SECTIONS);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"setTickMarkSections",
"(",
"final",
"List",
"<",
"Section",
">",
"SECTIONS",
")",
"{",
"tickMarkSections",
".",
"setAll",
"(",
"SECTIONS",
")",
";",
"Collections",
".",
"sort",
"(",
"tickMarkSections",
",",
"new",
"SectionComparator",
"(",
"... | Sets the tickmark sections to the given list of Section objects.
@param SECTIONS | [
"Sets",
"the",
"tickmark",
"sections",
"to",
"the",
"given",
"list",
"of",
"Section",
"objects",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1372-L1376 |
53,302 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.addTickMarkSection | public void addTickMarkSection(final Section SECTION) {
if (null == SECTION) return;
tickMarkSections.add(SECTION);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void addTickMarkSection(final Section SECTION) {
if (null == SECTION) return;
tickMarkSections.add(SECTION);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"addTickMarkSection",
"(",
"final",
"Section",
"SECTION",
")",
"{",
"if",
"(",
"null",
"==",
"SECTION",
")",
"return",
";",
"tickMarkSections",
".",
"add",
"(",
"SECTION",
")",
";",
"Collections",
".",
"sort",
"(",
"tickMarkSections",
",",
... | Adds the given Section to the list of tickmark sections.
@param SECTION | [
"Adds",
"the",
"given",
"Section",
"to",
"the",
"list",
"of",
"tickmark",
"sections",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1388-L1393 |
53,303 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.removeTickMarkSection | public void removeTickMarkSection(final Section SECTION) {
if (null == SECTION) return;
tickMarkSections.remove(SECTION);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void removeTickMarkSection(final Section SECTION) {
if (null == SECTION) return;
tickMarkSections.remove(SECTION);
Collections.sort(tickMarkSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"removeTickMarkSection",
"(",
"final",
"Section",
"SECTION",
")",
"{",
"if",
"(",
"null",
"==",
"SECTION",
")",
"return",
";",
"tickMarkSections",
".",
"remove",
"(",
"SECTION",
")",
";",
"Collections",
".",
"sort",
"(",
"tickMarkSections",
... | Removes the given Section from the list of tickmark sections.
@param SECTION | [
"Removes",
"the",
"given",
"Section",
"from",
"the",
"list",
"of",
"tickmark",
"sections",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1399-L1404 |
53,304 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickLabelSections | public void setTickLabelSections(final List<Section> SECTIONS) {
tickLabelSections.setAll(SECTIONS);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void setTickLabelSections(final List<Section> SECTIONS) {
tickLabelSections.setAll(SECTIONS);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"setTickLabelSections",
"(",
"final",
"List",
"<",
"Section",
">",
"SECTIONS",
")",
"{",
"tickLabelSections",
".",
"setAll",
"(",
"SECTIONS",
")",
";",
"Collections",
".",
"sort",
"(",
"tickLabelSections",
",",
"new",
"SectionComparator",
"(",
... | Sets the ticklabel sections to the given list of Section objects.
@param SECTIONS | [
"Sets",
"the",
"ticklabel",
"sections",
"to",
"the",
"given",
"list",
"of",
"Section",
"objects",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1426-L1430 |
53,305 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.addTickLabelSection | public void addTickLabelSection(final Section SECTION) {
if (null == SECTION) return;
tickLabelSections.add(SECTION);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void addTickLabelSection(final Section SECTION) {
if (null == SECTION) return;
tickLabelSections.add(SECTION);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"addTickLabelSection",
"(",
"final",
"Section",
"SECTION",
")",
"{",
"if",
"(",
"null",
"==",
"SECTION",
")",
"return",
";",
"tickLabelSections",
".",
"add",
"(",
"SECTION",
")",
";",
"Collections",
".",
"sort",
"(",
"tickLabelSections",
",... | Adds the given Section to the list of ticklabel sections.
@param SECTION | [
"Adds",
"the",
"given",
"Section",
"to",
"the",
"list",
"of",
"ticklabel",
"sections",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1442-L1447 |
53,306 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.removeTickLabelSection | public void removeTickLabelSection(final Section SECTION) {
if (null == SECTION) return;
tickLabelSections.remove(SECTION);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void removeTickLabelSection(final Section SECTION) {
if (null == SECTION) return;
tickLabelSections.remove(SECTION);
Collections.sort(tickLabelSections, new SectionComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"removeTickLabelSection",
"(",
"final",
"Section",
"SECTION",
")",
"{",
"if",
"(",
"null",
"==",
"SECTION",
")",
"return",
";",
"tickLabelSections",
".",
"remove",
"(",
"SECTION",
")",
";",
"Collections",
".",
"sort",
"(",
"tickLabelSections"... | Removes the given Section from the list of ticklabel sections.
@param SECTION | [
"Removes",
"the",
"given",
"Section",
"from",
"the",
"list",
"of",
"ticklabel",
"sections",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1453-L1458 |
53,307 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.addMarker | public void addMarker(final Marker MARKER) {
if (null == MARKER) return;
markers.add(MARKER);
Collections.sort(markers, new MarkerComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void addMarker(final Marker MARKER) {
if (null == MARKER) return;
markers.add(MARKER);
Collections.sort(markers, new MarkerComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"addMarker",
"(",
"final",
"Marker",
"MARKER",
")",
"{",
"if",
"(",
"null",
"==",
"MARKER",
")",
"return",
";",
"markers",
".",
"add",
"(",
"MARKER",
")",
";",
"Collections",
".",
"sort",
"(",
"markers",
",",
"new",
"MarkerComparator",
... | Adds the given Marker to the list of markers.
@param MARKER | [
"Adds",
"the",
"given",
"Marker",
"to",
"the",
"list",
"of",
"markers",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1502-L1507 |
53,308 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.removeMarker | public void removeMarker(final Marker MARKER) {
if (null == MARKER) return;
markers.remove(MARKER);
Collections.sort(markers, new MarkerComparator());
fireUpdateEvent(REDRAW_EVENT);
} | java | public void removeMarker(final Marker MARKER) {
if (null == MARKER) return;
markers.remove(MARKER);
Collections.sort(markers, new MarkerComparator());
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"removeMarker",
"(",
"final",
"Marker",
"MARKER",
")",
"{",
"if",
"(",
"null",
"==",
"MARKER",
")",
"return",
";",
"markers",
".",
"remove",
"(",
"MARKER",
")",
";",
"Collections",
".",
"sort",
"(",
"markers",
",",
"new",
"MarkerCompara... | Removes the given Marker from the list of markers.
@param MARKER | [
"Removes",
"the",
"given",
"Marker",
"from",
"the",
"list",
"of",
"markers",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1513-L1518 |
53,309 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setForegroundBaseColor | public void setForegroundBaseColor(final Color COLOR) {
if (null == titleColor) { _titleColor = COLOR; } else { titleColor.set(COLOR); }
if (null == subTitleColor) { _subTitleColor = COLOR; } else { subTitleColor.set(COLOR); }
if (null == unitColor) { _unitColor = COLOR; } else { unitColor.set(C... | java | public void setForegroundBaseColor(final Color COLOR) {
if (null == titleColor) { _titleColor = COLOR; } else { titleColor.set(COLOR); }
if (null == subTitleColor) { _subTitleColor = COLOR; } else { subTitleColor.set(COLOR); }
if (null == unitColor) { _unitColor = COLOR; } else { unitColor.set(C... | [
"public",
"void",
"setForegroundBaseColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"titleColor",
")",
"{",
"_titleColor",
"=",
"COLOR",
";",
"}",
"else",
"{",
"titleColor",
".",
"set",
"(",
"COLOR",
")",
";",
"}",
"if",
"(",... | A convenient method to set the color of foreground elements like
title, subTitle, unit, value, tickLabel and tickMark to the given
Color.
@param COLOR | [
"A",
"convenient",
"method",
"to",
"set",
"the",
"color",
"of",
"foreground",
"elements",
"like",
"title",
"subTitle",
"unit",
"value",
"tickLabel",
"and",
"tickMark",
"to",
"the",
"given",
"Color",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1536-L1548 |
53,310 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setZeroColor | public void setZeroColor(final Color COLOR) {
if (null == zeroColor) {
_zeroColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
zeroColor.set(COLOR);
}
} | java | public void setZeroColor(final Color COLOR) {
if (null == zeroColor) {
_zeroColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
zeroColor.set(COLOR);
}
} | [
"public",
"void",
"setZeroColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"zeroColor",
")",
"{",
"_zeroColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"zeroColor",
".",
"set",
"(",... | Defines the color that will be used to colorize the 0 tickmark and ticklabel
when the gauge range has a negative min- and positive maxValue.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"0",
"tickmark",
"and",
"ticklabel",
"when",
"the",
"gauge",
"range",
"has",
"a",
"negative",
"min",
"-",
"and",
"positive",
"maxValue",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L1639-L1646 |
53,311 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setKnobType | public void setKnobType(final KnobType TYPE) {
if (null == knobType) {
_knobType = null == TYPE ? KnobType.STANDARD : TYPE;
fireUpdateEvent(RESIZE_EVENT);
} else {
knobType.set(TYPE);
}
} | java | public void setKnobType(final KnobType TYPE) {
if (null == knobType) {
_knobType = null == TYPE ? KnobType.STANDARD : TYPE;
fireUpdateEvent(RESIZE_EVENT);
} else {
knobType.set(TYPE);
}
} | [
"public",
"void",
"setKnobType",
"(",
"final",
"KnobType",
"TYPE",
")",
"{",
"if",
"(",
"null",
"==",
"knobType",
")",
"{",
"_knobType",
"=",
"null",
"==",
"TYPE",
"?",
"KnobType",
".",
"STANDARD",
":",
"TYPE",
";",
"fireUpdateEvent",
"(",
"RESIZE_EVENT",
... | Defines the type of knob that will be used in the radial
gauges. The values are STANDARD, PLAIN, METAL and FLAT.
@param TYPE | [
"Defines",
"the",
"type",
"of",
"knob",
"that",
"will",
"be",
"used",
"in",
"the",
"radial",
"gauges",
".",
"The",
"values",
"are",
"STANDARD",
"PLAIN",
"METAL",
"and",
"FLAT",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2017-L2024 |
53,312 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setKnobVisible | public void setKnobVisible(final boolean VISIBLE) {
if (null == knobVisible) {
_knobVisible = VISIBLE;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
knobVisible.set(VISIBLE);
}
} | java | public void setKnobVisible(final boolean VISIBLE) {
if (null == knobVisible) {
_knobVisible = VISIBLE;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
knobVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setKnobVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"knobVisible",
")",
"{",
"_knobVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"VISIBILITY_EVENT",
")",
";",
"}",
"else",
"{",
"knobVisible",
".... | Defines if the knob is visible.
@param VISIBLE | [
"Defines",
"if",
"the",
"knob",
"is",
"visible",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2105-L2112 |
53,313 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setAngleRange | public void setAngleRange(final double RANGE) {
double tmpAngleRange = Helper.clamp(0.0, 360.0, RANGE);
if (null == angleRange) {
_angleRange = tmpAngleRange;
setAngleStep(tmpAngleRange / getRange());
if (isAutoScale()) { calcAutoScale(); }
fireUpdateEvent... | java | public void setAngleRange(final double RANGE) {
double tmpAngleRange = Helper.clamp(0.0, 360.0, RANGE);
if (null == angleRange) {
_angleRange = tmpAngleRange;
setAngleStep(tmpAngleRange / getRange());
if (isAutoScale()) { calcAutoScale(); }
fireUpdateEvent... | [
"public",
"void",
"setAngleRange",
"(",
"final",
"double",
"RANGE",
")",
"{",
"double",
"tmpAngleRange",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"360.0",
",",
"RANGE",
")",
";",
"if",
"(",
"null",
"==",
"angleRange",
")",
"{",
"_angleRange",
"=",
... | Defines the angle range in degree that will be used to draw the scale
of the radial gauge. The given range will be clamped in the range of
0 - 360 degrees. The range will start at the startAngle and will be
drawn in the direction dependent on the scaleDirection.
@param RANGE | [
"Defines",
"the",
"angle",
"range",
"in",
"degree",
"that",
"will",
"be",
"used",
"to",
"draw",
"the",
"scale",
"of",
"the",
"radial",
"gauge",
".",
"The",
"given",
"range",
"will",
"be",
"clamped",
"in",
"the",
"range",
"of",
"0",
"-",
"360",
"degrees... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2235-L2245 |
53,314 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setBarEffectEnabled | public void setBarEffectEnabled(final boolean ENABLED) {
if (null == barEffectEnabled) {
_barEffectEnabled = ENABLED;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
barEffectEnabled.set(ENABLED);
}
} | java | public void setBarEffectEnabled(final boolean ENABLED) {
if (null == barEffectEnabled) {
_barEffectEnabled = ENABLED;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
barEffectEnabled.set(ENABLED);
}
} | [
"public",
"void",
"setBarEffectEnabled",
"(",
"final",
"boolean",
"ENABLED",
")",
"{",
"if",
"(",
"null",
"==",
"barEffectEnabled",
")",
"{",
"_barEffectEnabled",
"=",
"ENABLED",
";",
"fireUpdateEvent",
"(",
"VISIBILITY_EVENT",
")",
";",
"}",
"else",
"{",
"bar... | Defines if the the highlight effect on the gauges like the
LinearSkin bar will be drawn. If you would like to have a
more flat style you should set this to false.
@param ENABLED | [
"Defines",
"if",
"the",
"the",
"highlight",
"effect",
"on",
"the",
"gauges",
"like",
"the",
"LinearSkin",
"bar",
"will",
"be",
"drawn",
".",
"If",
"you",
"would",
"like",
"to",
"have",
"a",
"more",
"flat",
"style",
"you",
"should",
"set",
"this",
"to",
... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2392-L2399 |
53,315 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setScaleDirection | public void setScaleDirection(final ScaleDirection DIRECTION) {
if (null == scaleDirection) {
_scaleDirection = null == DIRECTION ? ScaleDirection.CLOCKWISE : DIRECTION;
fireUpdateEvent(RECALC_EVENT);
} else {
scaleDirection.set(DIRECTION);
}
} | java | public void setScaleDirection(final ScaleDirection DIRECTION) {
if (null == scaleDirection) {
_scaleDirection = null == DIRECTION ? ScaleDirection.CLOCKWISE : DIRECTION;
fireUpdateEvent(RECALC_EVENT);
} else {
scaleDirection.set(DIRECTION);
}
} | [
"public",
"void",
"setScaleDirection",
"(",
"final",
"ScaleDirection",
"DIRECTION",
")",
"{",
"if",
"(",
"null",
"==",
"scaleDirection",
")",
"{",
"_scaleDirection",
"=",
"null",
"==",
"DIRECTION",
"?",
"ScaleDirection",
".",
"CLOCKWISE",
":",
"DIRECTION",
";",
... | Defines the direction of the scale. The values are
CLOCKWISE and COUNTER_CLOCKWISE. This property is needed
to realize gauges like in QuarterSkin where the needle
and knob should be placed on the upper right corner and
the scale should start at the bottom. Here you need a
counter-clockwise direction of the scale.
@par... | [
"Defines",
"the",
"direction",
"of",
"the",
"scale",
".",
"The",
"values",
"are",
"CLOCKWISE",
"and",
"COUNTER_CLOCKWISE",
".",
"This",
"property",
"is",
"needed",
"to",
"realize",
"gauges",
"like",
"in",
"QuarterSkin",
"where",
"the",
"needle",
"and",
"knob",... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2432-L2439 |
53,316 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickLabelOrientation | public void setTickLabelOrientation(final TickLabelOrientation ORIENTATION) {
if (null == tickLabelOrientation) {
_tickLabelOrientation = null == ORIENTATION ? TickLabelOrientation.HORIZONTAL : ORIENTATION;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickLabelOrientation.... | java | public void setTickLabelOrientation(final TickLabelOrientation ORIENTATION) {
if (null == tickLabelOrientation) {
_tickLabelOrientation = null == ORIENTATION ? TickLabelOrientation.HORIZONTAL : ORIENTATION;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickLabelOrientation.... | [
"public",
"void",
"setTickLabelOrientation",
"(",
"final",
"TickLabelOrientation",
"ORIENTATION",
")",
"{",
"if",
"(",
"null",
"==",
"tickLabelOrientation",
")",
"{",
"_tickLabelOrientation",
"=",
"null",
"==",
"ORIENTATION",
"?",
"TickLabelOrientation",
".",
"HORIZON... | Defines the orientation of the ticklabels. The values are
HORIZONTAL, ORTHOGONAL and TANGENT. Especially the ORTHOGONAL
setting can be useful when using scales with big numbers.
@param ORIENTATION | [
"Defines",
"the",
"orientation",
"of",
"the",
"ticklabels",
".",
"The",
"values",
"are",
"HORIZONTAL",
"ORTHOGONAL",
"and",
"TANGENT",
".",
"Especially",
"the",
"ORTHOGONAL",
"setting",
"can",
"be",
"useful",
"when",
"using",
"scales",
"with",
"big",
"numbers",
... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2508-L2515 |
53,317 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickMarkColor | public void setTickMarkColor(final Color COLOR) {
if (null == tickMarkColor) {
_tickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkColor.set(COLOR);
}
} | java | public void setTickMarkColor(final Color COLOR) {
if (null == tickMarkColor) {
_tickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkColor.set(COLOR);
}
} | [
"public",
"void",
"setTickMarkColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"tickMarkColor",
")",
"{",
"_tickMarkColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"tickMarkColor",
".",... | Defines the color that will be used to colorize the tickmarks. This color
will only be used if no tickmark section or major-, medium- and minorTickMarkColor
is defined at the position of the tickmark.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"tickmarks",
".",
"This",
"color",
"will",
"only",
"be",
"used",
"if",
"no",
"tickmark",
"section",
"or",
"major",
"-",
"medium",
"-",
"and",
"minorTickMarkColor",
"is",
"def... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2579-L2586 |
53,318 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMajorTickMarkColor | public void setMajorTickMarkColor(final Color COLOR) {
if (null == majorTickMarkColor) {
_majorTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkColor.set(COLOR);
}
} | java | public void setMajorTickMarkColor(final Color COLOR) {
if (null == majorTickMarkColor) {
_majorTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkColor.set(COLOR);
}
} | [
"public",
"void",
"setMajorTickMarkColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"majorTickMarkColor",
")",
"{",
"_majorTickMarkColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"majorTi... | Defines the color that will be used to colorize the major
tickmarks. This color will only be used if no tickmark
section is defined at the position of the tickmark.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"major",
"tickmarks",
".",
"This",
"color",
"will",
"only",
"be",
"used",
"if",
"no",
"tickmark",
"section",
"is",
"defined",
"at",
"the",
"position",
"of",
"the",
"tickmark"... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2614-L2621 |
53,319 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMajorTickMarkLengthFactor | public void setMajorTickMarkLengthFactor(final double FACTOR) {
if (null == majorTickMarkLengthFactor) {
_majorTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkLengthFactor.set(FACTOR);
}
} | java | public void setMajorTickMarkLengthFactor(final double FACTOR) {
if (null == majorTickMarkLengthFactor) {
_majorTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkLengthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMajorTickMarkLengthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"majorTickMarkLengthFactor",
")",
"{",
"_majorTickMarkLengthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")",
... | The factor defines the length of the major tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"length",
"of",
"the",
"major",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2647-L2654 |
53,320 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMajorTickMarkWidthFactor | public void setMajorTickMarkWidthFactor(final double FACTOR) {
if (null == majorTickMarkWidthFactor) {
_majorTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkWidthFactor.set(FACTOR);
}
} | java | public void setMajorTickMarkWidthFactor(final double FACTOR) {
if (null == majorTickMarkWidthFactor) {
_majorTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkWidthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMajorTickMarkWidthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"majorTickMarkWidthFactor",
")",
"{",
"_majorTickMarkWidthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")",
";... | The factor defines the width of the major tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"width",
"of",
"the",
"major",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2683-L2690 |
53,321 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMediumTickMarkColor | public void setMediumTickMarkColor(final Color COLOR) {
if (null == mediumTickMarkColor) {
_mediumTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkColor.set(COLOR);
}
} | java | public void setMediumTickMarkColor(final Color COLOR) {
if (null == mediumTickMarkColor) {
_mediumTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkColor.set(COLOR);
}
} | [
"public",
"void",
"setMediumTickMarkColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"mediumTickMarkColor",
")",
"{",
"_mediumTickMarkColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"medi... | Defines the color that will be used to colorize the medium
tickmarks. This color will only be used if no tickmark
section is defined at the position of the tickmark.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"medium",
"tickmarks",
".",
"This",
"color",
"will",
"only",
"be",
"used",
"if",
"no",
"tickmark",
"section",
"is",
"defined",
"at",
"the",
"position",
"of",
"the",
"tickmark... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2721-L2728 |
53,322 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMediumTickMarkLengthFactor | public void setMediumTickMarkLengthFactor(final double FACTOR) {
if (null == mediumTickMarkLengthFactor) {
_mediumTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkLengthFactor.set(FACTOR);
}
} | java | public void setMediumTickMarkLengthFactor(final double FACTOR) {
if (null == mediumTickMarkLengthFactor) {
_mediumTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkLengthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMediumTickMarkLengthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"mediumTickMarkLengthFactor",
")",
"{",
"_mediumTickMarkLengthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")"... | The factor defines the length of the medium tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"length",
"of",
"the",
"medium",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2754-L2761 |
53,323 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMediumTickMarkWidthFactor | public void setMediumTickMarkWidthFactor(final double FACTOR) {
if (null == mediumTickMarkWidthFactor) {
_mediumTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkWidthFactor.set(FACTOR);
}
} | java | public void setMediumTickMarkWidthFactor(final double FACTOR) {
if (null == mediumTickMarkWidthFactor) {
_mediumTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkWidthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMediumTickMarkWidthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"mediumTickMarkWidthFactor",
")",
"{",
"_mediumTickMarkWidthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")",
... | The factor defines the width of the medium tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"width",
"of",
"the",
"medium",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2790-L2797 |
53,324 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMinorTickMarkColor | public void setMinorTickMarkColor(final Color COLOR) {
if (null == minorTickMarkColor) {
_minorTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkColor.set(COLOR);
}
} | java | public void setMinorTickMarkColor(final Color COLOR) {
if (null == minorTickMarkColor) {
_minorTickMarkColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkColor.set(COLOR);
}
} | [
"public",
"void",
"setMinorTickMarkColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"minorTickMarkColor",
")",
"{",
"_minorTickMarkColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"minorTi... | Defines the color that will be used to colorize the minor
tickmarks. This color will only be used if no tickmark
section is defined at the position of the tickmark.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"minor",
"tickmarks",
".",
"This",
"color",
"will",
"only",
"be",
"used",
"if",
"no",
"tickmark",
"section",
"is",
"defined",
"at",
"the",
"position",
"of",
"the",
"tickmark"... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2828-L2835 |
53,325 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMinorTickMarkLengthFactor | public void setMinorTickMarkLengthFactor(final double FACTOR) {
if (null == minorTickMarkLengthFactor) {
_minorTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkLengthFactor.set(FACTOR);
}
} | java | public void setMinorTickMarkLengthFactor(final double FACTOR) {
if (null == minorTickMarkLengthFactor) {
_minorTickMarkLengthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkLengthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMinorTickMarkLengthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"minorTickMarkLengthFactor",
")",
"{",
"_minorTickMarkLengthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")",
... | The factor defines the length of the minor tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"length",
"of",
"the",
"minor",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2861-L2868 |
53,326 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMinorTickMarkWidthFactor | public void setMinorTickMarkWidthFactor(final double FACTOR) {
if (null == minorTickMarkWidthFactor) {
_minorTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkWidthFactor.set(FACTOR);
}
} | java | public void setMinorTickMarkWidthFactor(final double FACTOR) {
if (null == minorTickMarkWidthFactor) {
_minorTickMarkWidthFactor = Helper.clamp(0.0, 1.0, FACTOR);
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkWidthFactor.set(FACTOR);
}
} | [
"public",
"void",
"setMinorTickMarkWidthFactor",
"(",
"final",
"double",
"FACTOR",
")",
"{",
"if",
"(",
"null",
"==",
"minorTickMarkWidthFactor",
")",
"{",
"_minorTickMarkWidthFactor",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"1.0",
",",
"FACTOR",
")",
";... | The factor defines the width of the minor tick mark.
It can be in the range from 0 - 1.
@param FACTOR | [
"The",
"factor",
"defines",
"the",
"width",
"of",
"the",
"minor",
"tick",
"mark",
".",
"It",
"can",
"be",
"in",
"the",
"range",
"from",
"0",
"-",
"1",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2897-L2904 |
53,327 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMajorTickMarkType | public void setMajorTickMarkType(final TickMarkType TYPE) {
if (null == majorTickMarkType) {
_majorTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkType.set(TYPE);
}
} | java | public void setMajorTickMarkType(final TickMarkType TYPE) {
if (null == majorTickMarkType) {
_majorTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarkType.set(TYPE);
}
} | [
"public",
"void",
"setMajorTickMarkType",
"(",
"final",
"TickMarkType",
"TYPE",
")",
"{",
"if",
"(",
"null",
"==",
"majorTickMarkType",
")",
"{",
"_majorTickMarkType",
"=",
"null",
"==",
"TYPE",
"?",
"TickMarkType",
".",
"LINE",
":",
"TYPE",
";",
"fireUpdateEv... | Defines the shape that will be used to visualize the major tickmark.
Values are LINE, DOT, TRAPEZOID, BOX, TICK_LABEL and PILL
@param TYPE | [
"Defines",
"the",
"shape",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"major",
"tickmark",
".",
"Values",
"are",
"LINE",
"DOT",
"TRAPEZOID",
"BOX",
"TICK_LABEL",
"and",
"PILL"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2933-L2940 |
53,328 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMediumTickMarkType | public void setMediumTickMarkType(final TickMarkType TYPE) {
if (null == mediumTickMarkType) {
_mediumTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkType.set(TYPE);
}
} | java | public void setMediumTickMarkType(final TickMarkType TYPE) {
if (null == mediumTickMarkType) {
_mediumTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
mediumTickMarkType.set(TYPE);
}
} | [
"public",
"void",
"setMediumTickMarkType",
"(",
"final",
"TickMarkType",
"TYPE",
")",
"{",
"if",
"(",
"null",
"==",
"mediumTickMarkType",
")",
"{",
"_mediumTickMarkType",
"=",
"null",
"==",
"TYPE",
"?",
"TickMarkType",
".",
"LINE",
":",
"TYPE",
";",
"fireUpdat... | Defines the shape that will be used to visualize the medium tickmark.
Values are LINE, DOT, TRAPEZOID, BOX and PILL
@param TYPE | [
"Defines",
"the",
"shape",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"medium",
"tickmark",
".",
"Values",
"are",
"LINE",
"DOT",
"TRAPEZOID",
"BOX",
"and",
"PILL"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L2969-L2976 |
53,329 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMinorTickMarkType | public void setMinorTickMarkType(final TickMarkType TYPE) {
if (null == minorTickMarkType) {
_minorTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkType.set(TYPE);
}
} | java | public void setMinorTickMarkType(final TickMarkType TYPE) {
if (null == minorTickMarkType) {
_minorTickMarkType = null == TYPE ? TickMarkType.LINE : TYPE;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarkType.set(TYPE);
}
} | [
"public",
"void",
"setMinorTickMarkType",
"(",
"final",
"TickMarkType",
"TYPE",
")",
"{",
"if",
"(",
"null",
"==",
"minorTickMarkType",
")",
"{",
"_minorTickMarkType",
"=",
"null",
"==",
"TYPE",
"?",
"TickMarkType",
".",
"LINE",
":",
"TYPE",
";",
"fireUpdateEv... | Defines the shape that will be used to visualize the minor tickmark.
Values are LINE, DOT, TRAPEZOID, BOX and PILL
@param TYPE | [
"Defines",
"the",
"shape",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"minor",
"tickmark",
".",
"Values",
"are",
"LINE",
"DOT",
"TRAPEZOID",
"BOX",
"and",
"PILL"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3005-L3012 |
53,330 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setNeedleSize | public void setNeedleSize(final NeedleSize SIZE) {
if (null == needleSize) {
_needleSize = null == SIZE ? NeedleSize.STANDARD : SIZE;
fireUpdateEvent(RESIZE_EVENT);
} else {
needleSize.set(SIZE);
}
} | java | public void setNeedleSize(final NeedleSize SIZE) {
if (null == needleSize) {
_needleSize = null == SIZE ? NeedleSize.STANDARD : SIZE;
fireUpdateEvent(RESIZE_EVENT);
} else {
needleSize.set(SIZE);
}
} | [
"public",
"void",
"setNeedleSize",
"(",
"final",
"NeedleSize",
"SIZE",
")",
"{",
"if",
"(",
"null",
"==",
"needleSize",
")",
"{",
"_needleSize",
"=",
"null",
"==",
"SIZE",
"?",
"NeedleSize",
".",
"STANDARD",
":",
"SIZE",
";",
"fireUpdateEvent",
"(",
"RESIZ... | Defines the thickness of the needle.
The values are THIN, STANDARD and THICK
@param SIZE | [
"Defines",
"the",
"thickness",
"of",
"the",
"needle",
".",
"The",
"values",
"are",
"THIN",
"STANDARD",
"and",
"THICK"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3225-L3232 |
53,331 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setNeedleBehavior | public void setNeedleBehavior(final NeedleBehavior BEHAVIOR) {
if (null == needleBehavior) {
_needleBehavior = null == BEHAVIOR ? NeedleBehavior.STANDARD : BEHAVIOR;
} else {
needleBehavior.set(BEHAVIOR);
}
} | java | public void setNeedleBehavior(final NeedleBehavior BEHAVIOR) {
if (null == needleBehavior) {
_needleBehavior = null == BEHAVIOR ? NeedleBehavior.STANDARD : BEHAVIOR;
} else {
needleBehavior.set(BEHAVIOR);
}
} | [
"public",
"void",
"setNeedleBehavior",
"(",
"final",
"NeedleBehavior",
"BEHAVIOR",
")",
"{",
"if",
"(",
"null",
"==",
"needleBehavior",
")",
"{",
"_needleBehavior",
"=",
"null",
"==",
"BEHAVIOR",
"?",
"NeedleBehavior",
".",
"STANDARD",
":",
"BEHAVIOR",
";",
"}... | Defines the behavior of the needle movement.
The values are STANDARD and OPTIMIZED
This is an experimental feature that only makes sense in
gauges that use an angleRange of 360 degrees and where the
needle should be able to use the shortest way to the target
value. As an example one can think of a compass. If the value... | [
"Defines",
"the",
"behavior",
"of",
"the",
"needle",
"movement",
".",
"The",
"values",
"are",
"STANDARD",
"and",
"OPTIMIZED",
"This",
"is",
"an",
"experimental",
"feature",
"that",
"only",
"makes",
"sense",
"in",
"gauges",
"that",
"use",
"an",
"angleRange",
... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3275-L3281 |
53,332 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setNeedleColor | public void setNeedleColor(final Color COLOR) {
if (null == needleColor) {
_needleColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
needleColor.set(COLOR);
}
} | java | public void setNeedleColor(final Color COLOR) {
if (null == needleColor) {
_needleColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
needleColor.set(COLOR);
}
} | [
"public",
"void",
"setNeedleColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"needleColor",
")",
"{",
"_needleColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"needleColor",
".",
"set"... | Defines the color that will be used to colorize the needle of
the radial gauges.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"needle",
"of",
"the",
"radial",
"gauges",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3307-L3314 |
53,333 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setNeedleBorderColor | public void setNeedleBorderColor(final Color COLOR) {
if (null == needleBorderColor) {
_needleBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
needleBorderColor.set(COLOR);
}
} | java | public void setNeedleBorderColor(final Color COLOR) {
if (null == needleBorderColor) {
_needleBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
needleBorderColor.set(COLOR);
}
} | [
"public",
"void",
"setNeedleBorderColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"needleBorderColor",
")",
"{",
"_needleBorderColor",
"=",
"null",
"==",
"COLOR",
"?",
"Color",
".",
"TRANSPARENT",
":",
"COLOR",
";",
"fireUpdateEvent"... | Defines the color that will be used to colorize the border of the needle.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"border",
"of",
"the",
"needle",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3338-L3345 |
53,334 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setBarBorderColor | public void setBarBorderColor(final Color COLOR) {
if (null == barBorderColor) {
_barBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
barBorderColor.set(COLOR);
}
} | java | public void setBarBorderColor(final Color COLOR) {
if (null == barBorderColor) {
_barBorderColor = null == COLOR ? Color.TRANSPARENT : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
barBorderColor.set(COLOR);
}
} | [
"public",
"void",
"setBarBorderColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"barBorderColor",
")",
"{",
"_barBorderColor",
"=",
"null",
"==",
"COLOR",
"?",
"Color",
".",
"TRANSPARENT",
":",
"COLOR",
";",
"fireUpdateEvent",
"(",
... | Defines the color that will be used to colorize the border of the bar.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"border",
"of",
"the",
"bar",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3405-L3412 |
53,335 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setLcdFont | public void setLcdFont(final LcdFont FONT) {
if (null == lcdFont) {
_lcdFont = null == FONT ? LcdFont.DIGITAL_BOLD : FONT;
fireUpdateEvent(RESIZE_EVENT);
} else {
lcdFont.set(FONT);
}
} | java | public void setLcdFont(final LcdFont FONT) {
if (null == lcdFont) {
_lcdFont = null == FONT ? LcdFont.DIGITAL_BOLD : FONT;
fireUpdateEvent(RESIZE_EVENT);
} else {
lcdFont.set(FONT);
}
} | [
"public",
"void",
"setLcdFont",
"(",
"final",
"LcdFont",
"FONT",
")",
"{",
"if",
"(",
"null",
"==",
"lcdFont",
")",
"{",
"_lcdFont",
"=",
"null",
"==",
"FONT",
"?",
"LcdFont",
".",
"DIGITAL_BOLD",
":",
"FONT",
";",
"fireUpdateEvent",
"(",
"RESIZE_EVENT",
... | Defines the font that will be used to visualize the LCD value
if the gauge has a LCD display.
The values are STANDARD, LCD, SLIM, DIGITAL_BOLD, ELEKTRA
@param FONT | [
"Defines",
"the",
"font",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"LCD",
"value",
"if",
"the",
"gauge",
"has",
"a",
"LCD",
"display",
".",
"The",
"values",
"are",
"STANDARD",
"LCD",
"SLIM",
"DIGITAL_BOLD",
"ELEKTRA"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3528-L3535 |
53,336 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setLedColor | public void setLedColor(final Color COLOR) {
if (null == ledColor) {
_ledColor = null == COLOR ? Color.RED : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
ledColor.set(COLOR);
}
} | java | public void setLedColor(final Color COLOR) {
if (null == ledColor) {
_ledColor = null == COLOR ? Color.RED : COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
ledColor.set(COLOR);
}
} | [
"public",
"void",
"setLedColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"ledColor",
")",
"{",
"_ledColor",
"=",
"null",
"==",
"COLOR",
"?",
"Color",
".",
"RED",
":",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
... | Defines the color that will be used to visualize the LED of the
gauge if it has one.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"LED",
"of",
"the",
"gauge",
"if",
"it",
"has",
"one",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3564-L3571 |
53,337 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setSubTitleColor | public void setSubTitleColor(final Color COLOR) {
if (null == subTitleColor) {
_subTitleColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
subTitleColor.set(COLOR);
}
} | java | public void setSubTitleColor(final Color COLOR) {
if (null == subTitleColor) {
_subTitleColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
subTitleColor.set(COLOR);
}
} | [
"public",
"void",
"setSubTitleColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"subTitleColor",
")",
"{",
"_subTitleColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"subTitleColor",
".",... | Defines the color that will be used to colorize the subTitle
of the gauge.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"subTitle",
"of",
"the",
"gauge",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3671-L3678 |
53,338 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setAverageColor | public void setAverageColor(final Color COLOR) {
if (null == averageColor) {
_averageColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
averageColor.set(COLOR);
}
} | java | public void setAverageColor(final Color COLOR) {
if (null == averageColor) {
_averageColor = COLOR;
fireUpdateEvent(REDRAW_EVENT);
} else {
averageColor.set(COLOR);
}
} | [
"public",
"void",
"setAverageColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"averageColor",
")",
"{",
"_averageColor",
"=",
"COLOR",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"averageColor",
".",
"... | Defines the color that will be used to colorize the average
indicator of the gauge.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"average",
"indicator",
"of",
"the",
"gauge",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L3803-L3810 |
53,339 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setAreaTextVisible | public void setAreaTextVisible(final boolean VISIBLE) {
if (null == areaTextVisible) {
_areaTextVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
areaTextVisible.set(VISIBLE);
}
} | java | public void setAreaTextVisible(final boolean VISIBLE) {
if (null == areaTextVisible) {
_areaTextVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
areaTextVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setAreaTextVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"areaTextVisible",
")",
"{",
"_areaTextVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"areaTextVi... | Defines if the text of the areas should be drawn inside
the areas.
@param VISIBLE | [
"Defines",
"if",
"the",
"text",
"of",
"the",
"areas",
"should",
"be",
"drawn",
"inside",
"the",
"areas",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4193-L4200 |
53,340 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setAreaIconsVisible | public void setAreaIconsVisible(final boolean VISIBLE) {
if (null == areaIconsVisible) {
_areaIconsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
areaIconsVisible.set(VISIBLE);
}
} | java | public void setAreaIconsVisible(final boolean VISIBLE) {
if (null == areaIconsVisible) {
_areaIconsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
areaIconsVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setAreaIconsVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"areaIconsVisible",
")",
"{",
"_areaIconsVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"areaIco... | Defines if the icon of the areas should be drawn inside
the areas.
@param VISIBLE | [
"Defines",
"if",
"the",
"icon",
"of",
"the",
"areas",
"should",
"be",
"drawn",
"inside",
"the",
"areas",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4225-L4232 |
53,341 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickMarkSectionsVisible | public void setTickMarkSectionsVisible(final boolean VISIBLE) {
if (null == tickMarkSectionsVisible) {
_tickMarkSectionsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkSectionsVisible.set(VISIBLE);
}
} | java | public void setTickMarkSectionsVisible(final boolean VISIBLE) {
if (null == tickMarkSectionsVisible) {
_tickMarkSectionsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkSectionsVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setTickMarkSectionsVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"tickMarkSectionsVisible",
")",
"{",
"_tickMarkSectionsVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"els... | Defines if the tickmark sections should be used to
colorize the tickmarks.
@param VISIBLE | [
"Defines",
"if",
"the",
"tickmark",
"sections",
"should",
"be",
"used",
"to",
"colorize",
"the",
"tickmarks",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4289-L4296 |
53,342 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickLabelSectionsVisible | public void setTickLabelSectionsVisible(final boolean VISIBLE) {
if (null == tickLabelSectionsVisible) {
_tickLabelSectionsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickLabelSectionsVisible.set(VISIBLE);
}
} | java | public void setTickLabelSectionsVisible(final boolean VISIBLE) {
if (null == tickLabelSectionsVisible) {
_tickLabelSectionsVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickLabelSectionsVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setTickLabelSectionsVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"tickLabelSectionsVisible",
")",
"{",
"_tickLabelSectionsVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"... | Defines if the ticklabel sections should be used to
colorize the ticklabels.
@param VISIBLE | [
"Defines",
"if",
"the",
"ticklabel",
"sections",
"should",
"be",
"used",
"to",
"colorize",
"the",
"ticklabels",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4321-L4328 |
53,343 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMarkersVisible | public void setMarkersVisible(final boolean VISIBLE) {
if (null == markersVisible) {
_markersVisible = VISIBLE;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
markersVisible.set(VISIBLE);
}
} | java | public void setMarkersVisible(final boolean VISIBLE) {
if (null == markersVisible) {
_markersVisible = VISIBLE;
fireUpdateEvent(VISIBILITY_EVENT);
} else {
markersVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setMarkersVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"markersVisible",
")",
"{",
"_markersVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"VISIBILITY_EVENT",
")",
";",
"}",
"else",
"{",
"markersVi... | Defines if the markers should be drawn
@param VISIBLE | [
"Defines",
"if",
"the",
"markers",
"should",
"be",
"drawn"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4351-L4358 |
53,344 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setOnlyFirstAndLastTickLabelVisible | public void setOnlyFirstAndLastTickLabelVisible(final boolean VISIBLE) {
if (null == onlyFirstAndLastTickLabelVisible) {
_onlyFirstAndLastTickLabelVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
onlyFirstAndLastTickLabelVisible.set(VISIBLE);
}
} | java | public void setOnlyFirstAndLastTickLabelVisible(final boolean VISIBLE) {
if (null == onlyFirstAndLastTickLabelVisible) {
_onlyFirstAndLastTickLabelVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
onlyFirstAndLastTickLabelVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setOnlyFirstAndLastTickLabelVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"onlyFirstAndLastTickLabelVisible",
")",
"{",
"_onlyFirstAndLastTickLabelVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
... | Defines if only the first and the last ticklabel
will be drawn. Sometimes this could be useful if a gauge
should for example only should show 0 and 1000.
@param VISIBLE | [
"Defines",
"if",
"only",
"the",
"first",
"and",
"the",
"last",
"ticklabel",
"will",
"be",
"drawn",
".",
"Sometimes",
"this",
"could",
"be",
"useful",
"if",
"a",
"gauge",
"should",
"for",
"example",
"only",
"should",
"show",
"0",
"and",
"1000",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4417-L4424 |
53,345 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMajorTickMarksVisible | public void setMajorTickMarksVisible(final boolean VISIBLE) {
if (null == majorTickMarksVisible) {
_majorTickMarksVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarksVisible.set(VISIBLE);
}
} | java | public void setMajorTickMarksVisible(final boolean VISIBLE) {
if (null == majorTickMarksVisible) {
_majorTickMarksVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
majorTickMarksVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setMajorTickMarksVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"majorTickMarksVisible",
")",
"{",
"_majorTickMarksVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
... | Defines if the major tickmarks should be drawn
If set to false and minorTickmarks == true, a minor tickmark
will be drawn instead of the major tickmark.
@param VISIBLE | [
"Defines",
"if",
"the",
"major",
"tickmarks",
"should",
"be",
"drawn",
"If",
"set",
"to",
"false",
"and",
"minorTickmarks",
"==",
"true",
"a",
"minor",
"tickmark",
"will",
"be",
"drawn",
"instead",
"of",
"the",
"major",
"tickmark",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4451-L4458 |
53,346 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setMinorTickMarksVisible | public void setMinorTickMarksVisible(final boolean VISIBLE) {
if (null == minorTickMarksVisible) {
_minorTickMarksVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarksVisible.set(VISIBLE);
}
} | java | public void setMinorTickMarksVisible(final boolean VISIBLE) {
if (null == minorTickMarksVisible) {
_minorTickMarksVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
minorTickMarksVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setMinorTickMarksVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"minorTickMarksVisible",
")",
"{",
"_minorTickMarksVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
... | Defines if the minor tickmarks should be drawn
@param VISIBLE | [
"Defines",
"if",
"the",
"minor",
"tickmarks",
"should",
"be",
"drawn"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4508-L4515 |
53,347 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setTickMarkRingVisible | public void setTickMarkRingVisible(final boolean VISIBLE) {
if (null == tickMarkRingVisible) {
_tickMarkRingVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkRingVisible.set(VISIBLE);
}
} | java | public void setTickMarkRingVisible(final boolean VISIBLE) {
if (null == tickMarkRingVisible) {
_tickMarkRingVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
tickMarkRingVisible.set(VISIBLE);
}
} | [
"public",
"void",
"setTickMarkRingVisible",
"(",
"final",
"boolean",
"VISIBLE",
")",
"{",
"if",
"(",
"null",
"==",
"tickMarkRingVisible",
")",
"{",
"_tickMarkRingVisible",
"=",
"VISIBLE",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
... | Defines if an additional ring should be drawn that "connects" the tick marks.
@param VISIBLE | [
"Defines",
"if",
"an",
"additional",
"ring",
"should",
"be",
"drawn",
"that",
"connects",
"the",
"tick",
"marks",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4539-L4546 |
53,348 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setOrientation | public void setOrientation(final Orientation ORIENTATION) {
if (null == orientation) {
_orientation = ORIENTATION;
fireUpdateEvent(RESIZE_EVENT);
} else {
orientation.set(ORIENTATION);
}
} | java | public void setOrientation(final Orientation ORIENTATION) {
if (null == orientation) {
_orientation = ORIENTATION;
fireUpdateEvent(RESIZE_EVENT);
} else {
orientation.set(ORIENTATION);
}
} | [
"public",
"void",
"setOrientation",
"(",
"final",
"Orientation",
"ORIENTATION",
")",
"{",
"if",
"(",
"null",
"==",
"orientation",
")",
"{",
"_orientation",
"=",
"ORIENTATION",
";",
"fireUpdateEvent",
"(",
"RESIZE_EVENT",
")",
";",
"}",
"else",
"{",
"orientatio... | Defines the orientation of the control. This feature
will only be used in the BulletChartSkin and LinearSkin.
Values are HORIZONTAL and VERTICAL
@param ORIENTATION | [
"Defines",
"the",
"orientation",
"of",
"the",
"control",
".",
"This",
"feature",
"will",
"only",
"be",
"used",
"in",
"the",
"BulletChartSkin",
"and",
"LinearSkin",
".",
"Values",
"are",
"HORIZONTAL",
"and",
"VERTICAL"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4811-L4818 |
53,349 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setCustomTickLabelsEnabled | public void setCustomTickLabelsEnabled(final boolean ENABLED) {
if (null == customTickLabelsEnabled) {
_customTickLabelsEnabled = ENABLED;
fireUpdateEvent(REDRAW_EVENT);
} else {
customTickLabelsEnabled.set(ENABLED);
}
} | java | public void setCustomTickLabelsEnabled(final boolean ENABLED) {
if (null == customTickLabelsEnabled) {
_customTickLabelsEnabled = ENABLED;
fireUpdateEvent(REDRAW_EVENT);
} else {
customTickLabelsEnabled.set(ENABLED);
}
} | [
"public",
"void",
"setCustomTickLabelsEnabled",
"(",
"final",
"boolean",
"ENABLED",
")",
"{",
"if",
"(",
"null",
"==",
"customTickLabelsEnabled",
")",
"{",
"_customTickLabelsEnabled",
"=",
"ENABLED",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"els... | Defines if custom ticklabels should be used instead of the
automatically calculated ones. This could be useful for gauges
like a compass where you need "N", "E", "S" and "W" instead of
numbers.
@param ENABLED | [
"Defines",
"if",
"custom",
"ticklabels",
"should",
"be",
"used",
"instead",
"of",
"the",
"automatically",
"calculated",
"ones",
".",
"This",
"could",
"be",
"useful",
"for",
"gauges",
"like",
"a",
"compass",
"where",
"you",
"need",
"N",
"E",
"S",
"and",
"W"... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4925-L4932 |
53,350 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.addCustomTickLabel | public void addCustomTickLabel(final String TICK_LABEL) {
if (null == TICK_LABEL) return;
if (!customTickLabels.contains(TICK_LABEL)) customTickLabels.add(TICK_LABEL);
fireUpdateEvent(REDRAW_EVENT);
} | java | public void addCustomTickLabel(final String TICK_LABEL) {
if (null == TICK_LABEL) return;
if (!customTickLabels.contains(TICK_LABEL)) customTickLabels.add(TICK_LABEL);
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"addCustomTickLabel",
"(",
"final",
"String",
"TICK_LABEL",
")",
"{",
"if",
"(",
"null",
"==",
"TICK_LABEL",
")",
"return",
";",
"if",
"(",
"!",
"customTickLabels",
".",
"contains",
"(",
"TICK_LABEL",
")",
")",
"customTickLabels",
".",
"add... | Adds the given String to the list of custom ticklabels
@param TICK_LABEL | [
"Adds",
"the",
"given",
"String",
"to",
"the",
"list",
"of",
"custom",
"ticklabels"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4973-L4977 |
53,351 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.removeCustomTickLabel | public void removeCustomTickLabel(final String TICK_LABEL) {
if (null == TICK_LABEL) return;
if (customTickLabels.contains(TICK_LABEL)) customTickLabels.remove(TICK_LABEL);
fireUpdateEvent(REDRAW_EVENT);
} | java | public void removeCustomTickLabel(final String TICK_LABEL) {
if (null == TICK_LABEL) return;
if (customTickLabels.contains(TICK_LABEL)) customTickLabels.remove(TICK_LABEL);
fireUpdateEvent(REDRAW_EVENT);
} | [
"public",
"void",
"removeCustomTickLabel",
"(",
"final",
"String",
"TICK_LABEL",
")",
"{",
"if",
"(",
"null",
"==",
"TICK_LABEL",
")",
"return",
";",
"if",
"(",
"customTickLabels",
".",
"contains",
"(",
"TICK_LABEL",
")",
")",
"customTickLabels",
".",
"remove"... | Removes the given String from the list of custom ticklabels
@param TICK_LABEL | [
"Removes",
"the",
"given",
"String",
"from",
"the",
"list",
"of",
"custom",
"ticklabels"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L4983-L4987 |
53,352 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setCustomTickLabelFontSize | public void setCustomTickLabelFontSize(final double SIZE) {
if (null == customTickLabelFontSize) {
_customTickLabelFontSize = Helper.clamp(0.0, 72.0, SIZE);
fireUpdateEvent(REDRAW_EVENT);
} else {
customTickLabelFontSize.set(SIZE);
}
} | java | public void setCustomTickLabelFontSize(final double SIZE) {
if (null == customTickLabelFontSize) {
_customTickLabelFontSize = Helper.clamp(0.0, 72.0, SIZE);
fireUpdateEvent(REDRAW_EVENT);
} else {
customTickLabelFontSize.set(SIZE);
}
} | [
"public",
"void",
"setCustomTickLabelFontSize",
"(",
"final",
"double",
"SIZE",
")",
"{",
"if",
"(",
"null",
"==",
"customTickLabelFontSize",
")",
"{",
"_customTickLabelFontSize",
"=",
"Helper",
".",
"clamp",
"(",
"0.0",
",",
"72.0",
",",
"SIZE",
")",
";",
"... | Defines the custom font size. The default font size is 18px at
a size of 250px. This value will be used to calculate the current
font size for the ticklabels when scaling.
@param SIZE | [
"Defines",
"the",
"custom",
"font",
"size",
".",
"The",
"default",
"font",
"size",
"is",
"18px",
"at",
"a",
"size",
"of",
"250px",
".",
"This",
"value",
"will",
"be",
"used",
"to",
"calculate",
"the",
"current",
"font",
"size",
"for",
"the",
"ticklabels"... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L5011-L5018 |
53,353 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setInteractive | public void setInteractive(final boolean INTERACTIVE) {
if (null == interactive) {
_interactive = INTERACTIVE;
fireUpdateEvent(INTERACTIVITY_EVENT);
} else {
interactive.set(INTERACTIVE);
}
} | java | public void setInteractive(final boolean INTERACTIVE) {
if (null == interactive) {
_interactive = INTERACTIVE;
fireUpdateEvent(INTERACTIVITY_EVENT);
} else {
interactive.set(INTERACTIVE);
}
} | [
"public",
"void",
"setInteractive",
"(",
"final",
"boolean",
"INTERACTIVE",
")",
"{",
"if",
"(",
"null",
"==",
"interactive",
")",
"{",
"_interactive",
"=",
"INTERACTIVE",
";",
"fireUpdateEvent",
"(",
"INTERACTIVITY_EVENT",
")",
";",
"}",
"else",
"{",
"interac... | Defines if the gauge is in interactive mode. This is currently
implemented in the radial gauges that have a knob. If interactive == true
the knob can be pressed to trigger something.
@param INTERACTIVE | [
"Defines",
"if",
"the",
"gauge",
"is",
"in",
"interactive",
"mode",
".",
"This",
"is",
"currently",
"implemented",
"in",
"the",
"radial",
"gauges",
"that",
"have",
"a",
"knob",
".",
"If",
"interactive",
"==",
"true",
"the",
"knob",
"can",
"be",
"pressed",
... | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L5049-L5056 |
53,354 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setButtonTooltipText | public void setButtonTooltipText(final String TEXT) {
if (null == buttonTooltipText) {
_buttonTooltipText = TEXT;
fireUpdateEvent(REDRAW_EVENT);
} else {
buttonTooltipText.set(TEXT);
}
} | java | public void setButtonTooltipText(final String TEXT) {
if (null == buttonTooltipText) {
_buttonTooltipText = TEXT;
fireUpdateEvent(REDRAW_EVENT);
} else {
buttonTooltipText.set(TEXT);
}
} | [
"public",
"void",
"setButtonTooltipText",
"(",
"final",
"String",
"TEXT",
")",
"{",
"if",
"(",
"null",
"==",
"buttonTooltipText",
")",
"{",
"_buttonTooltipText",
"=",
"TEXT",
";",
"fireUpdateEvent",
"(",
"REDRAW_EVENT",
")",
";",
"}",
"else",
"{",
"buttonToolt... | Defines the text that will be shown in the button tooltip. The
knob in the radial gauges acts as button if interactive == true.
@param TEXT | [
"Defines",
"the",
"text",
"that",
"will",
"be",
"shown",
"in",
"the",
"button",
"tooltip",
".",
"The",
"knob",
"in",
"the",
"radial",
"gauges",
"acts",
"as",
"button",
"if",
"interactive",
"==",
"true",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L5081-L5088 |
53,355 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.setAlertMessage | public void setAlertMessage(final String MESSAGE) {
if (null == alertMessage) {
_alertMessage = MESSAGE;
fireUpdateEvent(ALERT_EVENT);
} else {
alertMessage.set(MESSAGE);
}
} | java | public void setAlertMessage(final String MESSAGE) {
if (null == alertMessage) {
_alertMessage = MESSAGE;
fireUpdateEvent(ALERT_EVENT);
} else {
alertMessage.set(MESSAGE);
}
} | [
"public",
"void",
"setAlertMessage",
"(",
"final",
"String",
"MESSAGE",
")",
"{",
"if",
"(",
"null",
"==",
"alertMessage",
")",
"{",
"_alertMessage",
"=",
"MESSAGE",
";",
"fireUpdateEvent",
"(",
"ALERT_EVENT",
")",
";",
"}",
"else",
"{",
"alertMessage",
".",... | Defines the text that could be used in a tooltip as an
alert message.
@param MESSAGE | [
"Defines",
"the",
"text",
"that",
"could",
"be",
"used",
"in",
"a",
"tooltip",
"as",
"an",
"alert",
"message",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L5234-L5241 |
53,356 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Gauge.java | Gauge.stop | public void stop() {
setLedOn(false);
if (null != blinkFuture) { blinkFuture.cancel(true); }
if (null != blinkService) { blinkService.shutdownNow(); }
} | java | public void stop() {
setLedOn(false);
if (null != blinkFuture) { blinkFuture.cancel(true); }
if (null != blinkService) { blinkService.shutdownNow(); }
} | [
"public",
"void",
"stop",
"(",
")",
"{",
"setLedOn",
"(",
"false",
")",
";",
"if",
"(",
"null",
"!=",
"blinkFuture",
")",
"{",
"blinkFuture",
".",
"cancel",
"(",
"true",
")",
";",
"}",
"if",
"(",
"null",
"!=",
"blinkService",
")",
"{",
"blinkService"... | Calling this method will stop all threads. This is needed when using
JavaFX on mobile devices when the device goes to sleep mode. | [
"Calling",
"this",
"method",
"will",
"stop",
"all",
"threads",
".",
"This",
"is",
"needed",
"when",
"using",
"JavaFX",
"on",
"mobile",
"devices",
"when",
"the",
"device",
"goes",
"to",
"sleep",
"mode",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Gauge.java#L5344-L5348 |
53,357 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Marker.java | Marker.setValue | public void setValue(final double VALUE) {
if (null == value) {
_value = VALUE;
} else {
value.set(VALUE);
}
fireMarkerEvent(VALUE_CHANGED_EVENT);
} | java | public void setValue(final double VALUE) {
if (null == value) {
_value = VALUE;
} else {
value.set(VALUE);
}
fireMarkerEvent(VALUE_CHANGED_EVENT);
} | [
"public",
"void",
"setValue",
"(",
"final",
"double",
"VALUE",
")",
"{",
"if",
"(",
"null",
"==",
"value",
")",
"{",
"_value",
"=",
"VALUE",
";",
"}",
"else",
"{",
"value",
".",
"set",
"(",
"VALUE",
")",
";",
"}",
"fireMarkerEvent",
"(",
"VALUE_CHANG... | Defines the value for the marker
@param VALUE | [
"Defines",
"the",
"value",
"for",
"the",
"marker"
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Marker.java#L110-L117 |
53,358 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Marker.java | Marker.setText | public void setText(final String TEXT) {
if (null == text) {
_text = TEXT;
} else {
text.set(TEXT);
}
fireMarkerEvent(TEXT_CHANGED_EVENT);
} | java | public void setText(final String TEXT) {
if (null == text) {
_text = TEXT;
} else {
text.set(TEXT);
}
fireMarkerEvent(TEXT_CHANGED_EVENT);
} | [
"public",
"void",
"setText",
"(",
"final",
"String",
"TEXT",
")",
"{",
"if",
"(",
"null",
"==",
"text",
")",
"{",
"_text",
"=",
"TEXT",
";",
"}",
"else",
"{",
"text",
".",
"set",
"(",
"TEXT",
")",
";",
"}",
"fireMarkerEvent",
"(",
"TEXT_CHANGED_EVENT... | Defines a text for this marker. This text can be
used as a description and will be used in tooltips.
@param TEXT | [
"Defines",
"a",
"text",
"for",
"this",
"marker",
".",
"This",
"text",
"can",
"be",
"used",
"as",
"a",
"description",
"and",
"will",
"be",
"used",
"in",
"tooltips",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Marker.java#L135-L142 |
53,359 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Marker.java | Marker.setColor | public void setColor(final Color COLOR) {
if (null == color) {
_color = COLOR;
} else {
color.set(COLOR);
}
fireMarkerEvent(COLOR_CHANGED_EVENT);
} | java | public void setColor(final Color COLOR) {
if (null == color) {
_color = COLOR;
} else {
color.set(COLOR);
}
fireMarkerEvent(COLOR_CHANGED_EVENT);
} | [
"public",
"void",
"setColor",
"(",
"final",
"Color",
"COLOR",
")",
"{",
"if",
"(",
"null",
"==",
"color",
")",
"{",
"_color",
"=",
"COLOR",
";",
"}",
"else",
"{",
"color",
".",
"set",
"(",
"COLOR",
")",
";",
"}",
"fireMarkerEvent",
"(",
"COLOR_CHANGE... | Defines the color that will be used to colorize the marker.
@param COLOR | [
"Defines",
"the",
"color",
"that",
"will",
"be",
"used",
"to",
"colorize",
"the",
"marker",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Marker.java#L158-L165 |
53,360 | HanSolo/Medusa | src/main/java/eu/hansolo/medusa/Marker.java | Marker.setMarkerType | public void setMarkerType(final MarkerType TYPE) {
if (null == markerType) {
_markerType = null == TYPE ? MarkerType.STANDARD : TYPE;
} else {
markerType.set(TYPE);
}
fireMarkerEvent(TYPE_CHANGED_EVENT);
} | java | public void setMarkerType(final MarkerType TYPE) {
if (null == markerType) {
_markerType = null == TYPE ? MarkerType.STANDARD : TYPE;
} else {
markerType.set(TYPE);
}
fireMarkerEvent(TYPE_CHANGED_EVENT);
} | [
"public",
"void",
"setMarkerType",
"(",
"final",
"MarkerType",
"TYPE",
")",
"{",
"if",
"(",
"null",
"==",
"markerType",
")",
"{",
"_markerType",
"=",
"null",
"==",
"TYPE",
"?",
"MarkerType",
".",
"STANDARD",
":",
"TYPE",
";",
"}",
"else",
"{",
"markerTyp... | Defines the shape that will be used to visualize the marker.
The values are STANDARD, DOT, TRAPEZOID.
@param TYPE | [
"Defines",
"the",
"shape",
"that",
"will",
"be",
"used",
"to",
"visualize",
"the",
"marker",
".",
"The",
"values",
"are",
"STANDARD",
"DOT",
"TRAPEZOID",
"."
] | 1321e4925dcde659028d4b296e49e316494c114c | https://github.com/HanSolo/Medusa/blob/1321e4925dcde659028d4b296e49e316494c114c/src/main/java/eu/hansolo/medusa/Marker.java#L182-L189 |
53,361 | razorpay/razorpay-android-sample-app | app/src/main/java/com/razorpay/sampleapp/PaymentActivity.java | PaymentActivity.onPaymentSuccess | @SuppressWarnings("unused")
@Override
public void onPaymentSuccess(String razorpayPaymentID) {
try {
Toast.makeText(this, "Payment Successful: " + razorpayPaymentID, Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Log.e(TAG, "Exception in onPaymentSuccess", e);
... | java | @SuppressWarnings("unused")
@Override
public void onPaymentSuccess(String razorpayPaymentID) {
try {
Toast.makeText(this, "Payment Successful: " + razorpayPaymentID, Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Log.e(TAG, "Exception in onPaymentSuccess", e);
... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"@",
"Override",
"public",
"void",
"onPaymentSuccess",
"(",
"String",
"razorpayPaymentID",
")",
"{",
"try",
"{",
"Toast",
".",
"makeText",
"(",
"this",
",",
"\"Payment Successful: \"",
"+",
"razorpayPaymentID",
",",... | The name of the function has to be
onPaymentSuccess
Wrap your code in try catch, as shown, to ensure that this method runs correctly | [
"The",
"name",
"of",
"the",
"function",
"has",
"to",
"be",
"onPaymentSuccess",
"Wrap",
"your",
"code",
"in",
"try",
"catch",
"as",
"shown",
"to",
"ensure",
"that",
"this",
"method",
"runs",
"correctly"
] | d49c0da92e25dde71cc402867f37d51a1e02cf1a | https://github.com/razorpay/razorpay-android-sample-app/blob/d49c0da92e25dde71cc402867f37d51a1e02cf1a/app/src/main/java/com/razorpay/sampleapp/PaymentActivity.java#L77-L85 |
53,362 | razorpay/razorpay-android-sample-app | app/src/main/java/com/razorpay/sampleapp/PaymentActivity.java | PaymentActivity.onPaymentError | @SuppressWarnings("unused")
@Override
public void onPaymentError(int code, String response) {
try {
Toast.makeText(this, "Payment failed: " + code + " " + response, Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Log.e(TAG, "Exception in onPaymentError", e);
}... | java | @SuppressWarnings("unused")
@Override
public void onPaymentError(int code, String response) {
try {
Toast.makeText(this, "Payment failed: " + code + " " + response, Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Log.e(TAG, "Exception in onPaymentError", e);
}... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"@",
"Override",
"public",
"void",
"onPaymentError",
"(",
"int",
"code",
",",
"String",
"response",
")",
"{",
"try",
"{",
"Toast",
".",
"makeText",
"(",
"this",
",",
"\"Payment failed: \"",
"+",
"code",
"+",
... | The name of the function has to be
onPaymentError
Wrap your code in try catch, as shown, to ensure that this method runs correctly | [
"The",
"name",
"of",
"the",
"function",
"has",
"to",
"be",
"onPaymentError",
"Wrap",
"your",
"code",
"in",
"try",
"catch",
"as",
"shown",
"to",
"ensure",
"that",
"this",
"method",
"runs",
"correctly"
] | d49c0da92e25dde71cc402867f37d51a1e02cf1a | https://github.com/razorpay/razorpay-android-sample-app/blob/d49c0da92e25dde71cc402867f37d51a1e02cf1a/app/src/main/java/com/razorpay/sampleapp/PaymentActivity.java#L92-L100 |
53,363 | zserge/anvil | anvil/src/main/java/trikita/anvil/Anvil.java | Anvil.mount | public static <T extends View> T mount(T v, Renderable r) {
Mount m = new Mount(v, r);
mounts.put(v, m);
render(v);
return v;
} | java | public static <T extends View> T mount(T v, Renderable r) {
Mount m = new Mount(v, r);
mounts.put(v, m);
render(v);
return v;
} | [
"public",
"static",
"<",
"T",
"extends",
"View",
">",
"T",
"mount",
"(",
"T",
"v",
",",
"Renderable",
"r",
")",
"{",
"Mount",
"m",
"=",
"new",
"Mount",
"(",
"v",
",",
"r",
")",
";",
"mounts",
".",
"put",
"(",
"v",
",",
"m",
")",
";",
"render"... | Mounts a renderable function defining the layout into a View. If host is a
viewgroup it is assumed to be empty, so the Renderable would define what
its child views would be.
@param v a View into which the renderable r will be mounted
@param r a Renderable to mount into a View | [
"Mounts",
"a",
"renderable",
"function",
"defining",
"the",
"layout",
"into",
"a",
"View",
".",
"If",
"host",
"is",
"a",
"viewgroup",
"it",
"is",
"assumed",
"to",
"be",
"empty",
"so",
"the",
"Renderable",
"would",
"define",
"what",
"its",
"child",
"views",... | cc0c4a7cb129d7a570c678180ee660a80d652cc6 | https://github.com/zserge/anvil/blob/cc0c4a7cb129d7a570c678180ee660a80d652cc6/anvil/src/main/java/trikita/anvil/Anvil.java#L153-L158 |
53,364 | zserge/anvil | anvil/src/main/java/trikita/anvil/Anvil.java | Anvil.currentView | @SuppressWarnings("unchecked")
public static <T extends View> T currentView() {
if (currentMount == null) {
return null;
}
return (T) currentMount.iterator.currentView();
} | java | @SuppressWarnings("unchecked")
public static <T extends View> T currentView() {
if (currentMount == null) {
return null;
}
return (T) currentMount.iterator.currentView();
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
"extends",
"View",
">",
"T",
"currentView",
"(",
")",
"{",
"if",
"(",
"currentMount",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"(",
"T",
")",
"curren... | Returns currently rendered View. It allows to access the real view from
inside the Renderable.
@return currently rendered View | [
"Returns",
"currently",
"rendered",
"View",
".",
"It",
"allows",
"to",
"access",
"the",
"real",
"view",
"from",
"inside",
"the",
"Renderable",
"."
] | cc0c4a7cb129d7a570c678180ee660a80d652cc6 | https://github.com/zserge/anvil/blob/cc0c4a7cb129d7a570c678180ee660a80d652cc6/anvil/src/main/java/trikita/anvil/Anvil.java#L201-L207 |
53,365 | jpmml/jpmml-sklearn | src/main/java/numpy/core/NDArrayUtil.java | NDArrayUtil.getContent | static
public List<?> getContent(NDArray array){
Object content = array.getContent();
return asJavaList(array, (List<?>)content);
} | java | static
public List<?> getContent(NDArray array){
Object content = array.getContent();
return asJavaList(array, (List<?>)content);
} | [
"static",
"public",
"List",
"<",
"?",
">",
"getContent",
"(",
"NDArray",
"array",
")",
"{",
"Object",
"content",
"=",
"array",
".",
"getContent",
"(",
")",
";",
"return",
"asJavaList",
"(",
"array",
",",
"(",
"List",
"<",
"?",
">",
")",
"content",
")... | Gets the payload of a one-dimensional array. | [
"Gets",
"the",
"payload",
"of",
"a",
"one",
"-",
"dimensional",
"array",
"."
] | 6cd8bbd44faa4344857c085defa71d49cb663406 | https://github.com/jpmml/jpmml-sklearn/blob/6cd8bbd44faa4344857c085defa71d49cb663406/src/main/java/numpy/core/NDArrayUtil.java#L59-L64 |
53,366 | jpmml/jpmml-sklearn | src/main/java/numpy/core/NDArrayUtil.java | NDArrayUtil.getContent | static
public List<?> getContent(NDArray array, String key){
Map<String, ?> content = (Map<String, ?>)array.getContent();
return asJavaList(array, (List<?>)content.get(key));
} | java | static
public List<?> getContent(NDArray array, String key){
Map<String, ?> content = (Map<String, ?>)array.getContent();
return asJavaList(array, (List<?>)content.get(key));
} | [
"static",
"public",
"List",
"<",
"?",
">",
"getContent",
"(",
"NDArray",
"array",
",",
"String",
"key",
")",
"{",
"Map",
"<",
"String",
",",
"?",
">",
"content",
"=",
"(",
"Map",
"<",
"String",
",",
"?",
">",
")",
"array",
".",
"getContent",
"(",
... | Gets the payload of the specified dimension of a multi-dimensional array.
@param key The dimension. | [
"Gets",
"the",
"payload",
"of",
"the",
"specified",
"dimension",
"of",
"a",
"multi",
"-",
"dimensional",
"array",
"."
] | 6cd8bbd44faa4344857c085defa71d49cb663406 | https://github.com/jpmml/jpmml-sklearn/blob/6cd8bbd44faa4344857c085defa71d49cb663406/src/main/java/numpy/core/NDArrayUtil.java#L71-L76 |
53,367 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/SelendroidLauncher.java | SelendroidLauncher.launchServer | private void launchServer() {
try {
log.info("Configuring Android SDK");
if (config.getAndroidHome() != null) {
AndroidSdk.setAndroidHome(config.getAndroidHome());
}
if (config.getAndroidSdkVersion() != null) {
AndroidSdk.setAndroidSdkVersion(config.getAndroidSdkVersion());
... | java | private void launchServer() {
try {
log.info("Configuring Android SDK");
if (config.getAndroidHome() != null) {
AndroidSdk.setAndroidHome(config.getAndroidHome());
}
if (config.getAndroidSdkVersion() != null) {
AndroidSdk.setAndroidSdkVersion(config.getAndroidSdkVersion());
... | [
"private",
"void",
"launchServer",
"(",
")",
"{",
"try",
"{",
"log",
".",
"info",
"(",
"\"Configuring Android SDK\"",
")",
";",
"if",
"(",
"config",
".",
"getAndroidHome",
"(",
")",
"!=",
"null",
")",
"{",
"AndroidSdk",
".",
"setAndroidHome",
"(",
"config"... | Starts the Selendroid standalone server and exits immediately.
This method might return before the server is ready to receive requests. | [
"Starts",
"the",
"Selendroid",
"standalone",
"server",
"and",
"exits",
"immediately",
".",
"This",
"method",
"might",
"return",
"before",
"the",
"server",
"is",
"ready",
"to",
"receive",
"requests",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/SelendroidLauncher.java#L67-L110 |
53,368 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/SelendroidLauncher.java | SelendroidLauncher.launchSelendroid | public void launchSelendroid() {
launchServer();
if (config.isGrid()) {
// Longer timeout to allow for grid registration
HttpClientUtil.waitForServer(server.getPort(), 3, TimeUnit.MINUTES);
} else {
HttpClientUtil.waitForServer(server.getPort(), 20, TimeUnit.SECONDS);
}
} | java | public void launchSelendroid() {
launchServer();
if (config.isGrid()) {
// Longer timeout to allow for grid registration
HttpClientUtil.waitForServer(server.getPort(), 3, TimeUnit.MINUTES);
} else {
HttpClientUtil.waitForServer(server.getPort(), 20, TimeUnit.SECONDS);
}
} | [
"public",
"void",
"launchSelendroid",
"(",
")",
"{",
"launchServer",
"(",
")",
";",
"if",
"(",
"config",
".",
"isGrid",
"(",
")",
")",
"{",
"// Longer timeout to allow for grid registration",
"HttpClientUtil",
".",
"waitForServer",
"(",
"server",
".",
"getPort",
... | Starts the Selendroid standalone server and waits until it's ready to accept requests.
@throws io.selendroid.server.common.exceptions.SelendroidException if the server didn't come up | [
"Starts",
"the",
"Selendroid",
"standalone",
"server",
"and",
"waits",
"until",
"it",
"s",
"ready",
"to",
"accept",
"requests",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/SelendroidLauncher.java#L116-L124 |
53,369 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/model/KnownElements.java | KnownElements.get | public AndroidElement get(String elementId) {
AndroidElement element = cache.get(elementId);
if (element instanceof AndroidNativeElement) {
if (!ViewHierarchyAnalyzer.getDefaultInstance().isViewChieldOfCurrentRootView(
((AndroidNativeElement) element).getView())) {
return null;
}
... | java | public AndroidElement get(String elementId) {
AndroidElement element = cache.get(elementId);
if (element instanceof AndroidNativeElement) {
if (!ViewHierarchyAnalyzer.getDefaultInstance().isViewChieldOfCurrentRootView(
((AndroidNativeElement) element).getView())) {
return null;
}
... | [
"public",
"AndroidElement",
"get",
"(",
"String",
"elementId",
")",
"{",
"AndroidElement",
"element",
"=",
"cache",
".",
"get",
"(",
"elementId",
")",
";",
"if",
"(",
"element",
"instanceof",
"AndroidNativeElement",
")",
"{",
"if",
"(",
"!",
"ViewHierarchyAnal... | Uses the generated Id to look up elements | [
"Uses",
"the",
"generated",
"Id",
"to",
"look",
"up",
"elements"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/model/KnownElements.java#L44-L54 |
53,370 | selendroid/selendroid | selendroid-server-common/src/main/java/io/selendroid/server/common/utils/CallLogUtil.java | CallLogUtil.getAllLogsOfDuration | public static List<CallLogEntry> getAllLogsOfDuration(List<CallLogEntry> logs, int duration, boolean greaterthan) {
List<CallLogEntry> list = new ArrayList<CallLogEntry>();
for(CallLogEntry log : logs) {
if(log.duration<duration ^ greaterthan) {
list.add(log);
}
}
return list;
} | java | public static List<CallLogEntry> getAllLogsOfDuration(List<CallLogEntry> logs, int duration, boolean greaterthan) {
List<CallLogEntry> list = new ArrayList<CallLogEntry>();
for(CallLogEntry log : logs) {
if(log.duration<duration ^ greaterthan) {
list.add(log);
}
}
return list;
} | [
"public",
"static",
"List",
"<",
"CallLogEntry",
">",
"getAllLogsOfDuration",
"(",
"List",
"<",
"CallLogEntry",
">",
"logs",
",",
"int",
"duration",
",",
"boolean",
"greaterthan",
")",
"{",
"List",
"<",
"CallLogEntry",
">",
"list",
"=",
"new",
"ArrayList",
"... | duration specifies call duration to test against.
@param duration
greaterthan set to true finds call durations greater than or equal to specified. false
finds those less than.
@param greaterthan
@return | [
"duration",
"specifies",
"call",
"duration",
"to",
"test",
"against",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server-common/src/main/java/io/selendroid/server/common/utils/CallLogUtil.java#L17-L25 |
53,371 | selendroid/selendroid | selendroid-server-common/src/main/java/io/selendroid/server/common/utils/CallLogUtil.java | CallLogUtil.containsLogFromNumber | public static boolean containsLogFromNumber(List<CallLogEntry> logs, String number) {
for(CallLogEntry log : logs) {
if(log.number.equals(number)) {
return true;
}
}
return false;
} | java | public static boolean containsLogFromNumber(List<CallLogEntry> logs, String number) {
for(CallLogEntry log : logs) {
if(log.number.equals(number)) {
return true;
}
}
return false;
} | [
"public",
"static",
"boolean",
"containsLogFromNumber",
"(",
"List",
"<",
"CallLogEntry",
">",
"logs",
",",
"String",
"number",
")",
"{",
"for",
"(",
"CallLogEntry",
"log",
":",
"logs",
")",
"{",
"if",
"(",
"log",
".",
"number",
".",
"equals",
"(",
"numb... | returns true if call log of specified number exists | [
"returns",
"true",
"if",
"call",
"log",
"of",
"specified",
"number",
"exists"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server-common/src/main/java/io/selendroid/server/common/utils/CallLogUtil.java#L30-L37 |
53,372 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/builder/SelendroidServerBuilder.java | SelendroidServerBuilder.getResourceAsStream | private InputStream getResourceAsStream(String resource) {
InputStream is = getClass().getResourceAsStream(resource);
// switch needed for testability
if (is == null) {
try {
is = new FileInputStream(new File(resource));
} catch (FileNotFoundException e) {
// do nothing
}
... | java | private InputStream getResourceAsStream(String resource) {
InputStream is = getClass().getResourceAsStream(resource);
// switch needed for testability
if (is == null) {
try {
is = new FileInputStream(new File(resource));
} catch (FileNotFoundException e) {
// do nothing
}
... | [
"private",
"InputStream",
"getResourceAsStream",
"(",
"String",
"resource",
")",
"{",
"InputStream",
"is",
"=",
"getClass",
"(",
")",
".",
"getResourceAsStream",
"(",
"resource",
")",
";",
"// switch needed for testability",
"if",
"(",
"is",
"==",
"null",
")",
"... | Loads resources as stream and the main reason for having the method is because it can be use
while testing and in production for loading files from within jar file.
@param resource The resource to load.
@return The input stream of the resource.
@throws SelendroidException if resource was not found. | [
"Loads",
"resources",
"as",
"stream",
"and",
"the",
"main",
"reason",
"for",
"having",
"the",
"method",
"is",
"because",
"it",
"can",
"be",
"use",
"while",
"testing",
"and",
"in",
"production",
"for",
"loading",
"files",
"from",
"within",
"jar",
"file",
".... | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/builder/SelendroidServerBuilder.java#L361-L375 |
53,373 | selendroid/selendroid | selendroid-client/src/main/java/io/selendroid/client/SelendroidDriver.java | SelendroidDriver.setSystemProperty | @Override
public void setSystemProperty(String propertyName, String value) {
if (Strings.isNullOrEmpty(propertyName)) {
throw new IllegalArgumentException("Property name can't be empty.");
}
execute(
"-selendroid-setAndroidOsSystemProperty",
ImmutableMap.of(
"propertyNam... | java | @Override
public void setSystemProperty(String propertyName, String value) {
if (Strings.isNullOrEmpty(propertyName)) {
throw new IllegalArgumentException("Property name can't be empty.");
}
execute(
"-selendroid-setAndroidOsSystemProperty",
ImmutableMap.of(
"propertyNam... | [
"@",
"Override",
"public",
"void",
"setSystemProperty",
"(",
"String",
"propertyName",
",",
"String",
"value",
")",
"{",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"propertyName",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Property ... | Sets a Java System Property. | [
"Sets",
"a",
"Java",
"System",
"Property",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-client/src/main/java/io/selendroid/client/SelendroidDriver.java#L268-L279 |
53,374 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/grid/SelfRegisteringRemote.java | SelfRegisteringRemote.getNodeConfig | private JSONObject getNodeConfig() {
JSONObject res = new JSONObject();
try {
res.put("class", "org.openqa.grid.common.RegistrationRequest");
res.put("configuration", getConfiguration());
JSONArray caps = new JSONArray();
JSONArray devices = driver.getSupportedDevices();
for (int i... | java | private JSONObject getNodeConfig() {
JSONObject res = new JSONObject();
try {
res.put("class", "org.openqa.grid.common.RegistrationRequest");
res.put("configuration", getConfiguration());
JSONArray caps = new JSONArray();
JSONArray devices = driver.getSupportedDevices();
for (int i... | [
"private",
"JSONObject",
"getNodeConfig",
"(",
")",
"{",
"JSONObject",
"res",
"=",
"new",
"JSONObject",
"(",
")",
";",
"try",
"{",
"res",
".",
"put",
"(",
"\"class\"",
",",
"\"org.openqa.grid.common.RegistrationRequest\"",
")",
";",
"res",
".",
"put",
"(",
"... | Get the node configuration and capabilities for Grid registration
@return The configuration | [
"Get",
"the",
"node",
"configuration",
"and",
"capabilities",
"for",
"Grid",
"registration"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/grid/SelfRegisteringRemote.java#L97-L115 |
53,375 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/grid/SelfRegisteringRemote.java | SelfRegisteringRemote.getConfiguration | private JSONObject getConfiguration() throws JSONException {
JSONObject configuration = new JSONObject();
configuration.put("port", config.getPort());
configuration.put("register", true);
if (config.getProxy() != null) {
configuration.put("proxy", config.getProxy());
} else {
configura... | java | private JSONObject getConfiguration() throws JSONException {
JSONObject configuration = new JSONObject();
configuration.put("port", config.getPort());
configuration.put("register", true);
if (config.getProxy() != null) {
configuration.put("proxy", config.getProxy());
} else {
configura... | [
"private",
"JSONObject",
"getConfiguration",
"(",
")",
"throws",
"JSONException",
"{",
"JSONObject",
"configuration",
"=",
"new",
"JSONObject",
"(",
")",
";",
"configuration",
".",
"put",
"(",
"\"port\"",
",",
"config",
".",
"getPort",
"(",
")",
")",
";",
"c... | Extracts the configuration.
@return The configuration
@throws JSONException On JSON errors. | [
"Extracts",
"the",
"configuration",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/grid/SelfRegisteringRemote.java#L142-L177 |
53,376 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/DefaultServerInstrumentation.java | DefaultServerInstrumentation.startServerImpl | protected void startServerImpl() {
SelendroidLogger.info("*** ServerInstrumentation#startServerImpl() ***");
if (serverThread != null && serverThread.isAlive()) {
return;
}
if (serverThread != null) {
stopServer();
}
serverThread = new HttpdThrea... | java | protected void startServerImpl() {
SelendroidLogger.info("*** ServerInstrumentation#startServerImpl() ***");
if (serverThread != null && serverThread.isAlive()) {
return;
}
if (serverThread != null) {
stopServer();
}
serverThread = new HttpdThrea... | [
"protected",
"void",
"startServerImpl",
"(",
")",
"{",
"SelendroidLogger",
".",
"info",
"(",
"\"*** ServerInstrumentation#startServerImpl() ***\"",
")",
";",
"if",
"(",
"serverThread",
"!=",
"null",
"&&",
"serverThread",
".",
"isAlive",
"(",
")",
")",
"{",
"return... | specific logic to a subclass | [
"specific",
"logic",
"to",
"a",
"subclass"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/DefaultServerInstrumentation.java#L174-L186 |
53,377 | selendroid/selendroid | selendroid-client/src/main/java/io/selendroid/client/TouchActionBuilder.java | TouchActionBuilder.pointerDown | public TouchActionBuilder pointerDown(WebElement element, int x, int y) {
Preconditions.checkState(!isDown);
Map<String, Object> params = getTouchParameters(element, x, y);
addAction(TouchActionName.POINTER_DOWN, params);
isDown = true;
return this;
} | java | public TouchActionBuilder pointerDown(WebElement element, int x, int y) {
Preconditions.checkState(!isDown);
Map<String, Object> params = getTouchParameters(element, x, y);
addAction(TouchActionName.POINTER_DOWN, params);
isDown = true;
return this;
} | [
"public",
"TouchActionBuilder",
"pointerDown",
"(",
"WebElement",
"element",
",",
"int",
"x",
",",
"int",
"y",
")",
"{",
"Preconditions",
".",
"checkState",
"(",
"!",
"isDown",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"params",
"=",
"getTouchPar... | Places pointer down at an offset from the top left corner of the specified WebElement
@param element WebElement to place pointer relative to
@param x x-offset from top left
@param y y-offset from top left
@return this | [
"Places",
"pointer",
"down",
"at",
"an",
"offset",
"from",
"the",
"top",
"left",
"corner",
"of",
"the",
"specified",
"WebElement"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-client/src/main/java/io/selendroid/client/TouchActionBuilder.java#L86-L94 |
53,378 | selendroid/selendroid | selendroid-client/src/main/java/io/selendroid/client/TouchActionBuilder.java | TouchActionBuilder.pointerMove | public TouchActionBuilder pointerMove(WebElement element, int x, int y) {
Preconditions.checkState(isDown);
Map<String, Object> params = getTouchParameters(element, x, y);
addAction(TouchActionName.POINTER_MOVE, params);
return this;
} | java | public TouchActionBuilder pointerMove(WebElement element, int x, int y) {
Preconditions.checkState(isDown);
Map<String, Object> params = getTouchParameters(element, x, y);
addAction(TouchActionName.POINTER_MOVE, params);
return this;
} | [
"public",
"TouchActionBuilder",
"pointerMove",
"(",
"WebElement",
"element",
",",
"int",
"x",
",",
"int",
"y",
")",
"{",
"Preconditions",
".",
"checkState",
"(",
"isDown",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"params",
"=",
"getTouchParameters... | Moves the pointer to a position offset from the top left corner of the specified WebElement
This is only possible if the pointer is currently down.
@param element WebElement to place pointer relative to
@param x x-offset from top left
@param y y-offset from top left
@return this | [
"Moves",
"the",
"pointer",
"to",
"a",
"position",
"offset",
"from",
"the",
"top",
"left",
"corner",
"of",
"the",
"specified",
"WebElement",
"This",
"is",
"only",
"possible",
"if",
"the",
"pointer",
"is",
"currently",
"down",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-client/src/main/java/io/selendroid/client/TouchActionBuilder.java#L137-L143 |
53,379 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/android/AndroidWait.java | AndroidWait.sleep | protected void sleep() {
try {
Thread.sleep(sleepIntervalInMillis);
} catch (InterruptedException exception) {
Thread.currentThread().interrupt();
throw new SelendroidException(exception);
}
} | java | protected void sleep() {
try {
Thread.sleep(sleepIntervalInMillis);
} catch (InterruptedException exception) {
Thread.currentThread().interrupt();
throw new SelendroidException(exception);
}
} | [
"protected",
"void",
"sleep",
"(",
")",
"{",
"try",
"{",
"Thread",
".",
"sleep",
"(",
"sleepIntervalInMillis",
")",
";",
"}",
"catch",
"(",
"InterruptedException",
"exception",
")",
"{",
"Thread",
".",
"currentThread",
"(",
")",
".",
"interrupt",
"(",
")",... | Sleeps for a few milliseconds. | [
"Sleeps",
"for",
"a",
"few",
"milliseconds",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/android/AndroidWait.java#L85-L92 |
53,380 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/SelendroidStandaloneDriver.java | SelendroidStandaloneDriver.addToAppsStore | public void addToAppsStore(File file) throws AndroidSdkException {
AndroidApp app = null;
try {
app = selendroidApkBuilder.resignApp(file);
} catch (Exception e) {
throw new SessionNotCreatedException(
"An error occurred while resigning the app '" + file.getName()
+ "'. "... | java | public void addToAppsStore(File file) throws AndroidSdkException {
AndroidApp app = null;
try {
app = selendroidApkBuilder.resignApp(file);
} catch (Exception e) {
throw new SessionNotCreatedException(
"An error occurred while resigning the app '" + file.getName()
+ "'. "... | [
"public",
"void",
"addToAppsStore",
"(",
"File",
"file",
")",
"throws",
"AndroidSdkException",
"{",
"AndroidApp",
"app",
"=",
"null",
";",
"try",
"{",
"app",
"=",
"selendroidApkBuilder",
".",
"resignApp",
"(",
"file",
")",
";",
"}",
"catch",
"(",
"Exception"... | This function will sign an android app and add it to the App Store. The function is made public because it also be
invoked by the Folder Monitor each time a new application dropped into this folder.
@param file
- The file to be added to the app store
@throws AndroidSdkException | [
"This",
"function",
"will",
"sign",
"an",
"android",
"app",
"and",
"add",
"it",
"to",
"the",
"App",
"Store",
".",
"The",
"function",
"is",
"made",
"public",
"because",
"it",
"also",
"be",
"invoked",
"by",
"the",
"Folder",
"Monitor",
"each",
"time",
"a",
... | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/SelendroidStandaloneDriver.java#L130-L153 |
53,381 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/SelendroidStandaloneDriver.java | SelendroidStandaloneDriver.startFolderMonitor | private void startFolderMonitor() {
if (serverConfiguration.getAppFolderToMonitor() != null) {
try {
folderMonitor = new FolderMonitor(this, serverConfiguration);
folderMonitor.start();
} catch (IOException e) {
log.warning("Could not monitor the given folder: "
+ ser... | java | private void startFolderMonitor() {
if (serverConfiguration.getAppFolderToMonitor() != null) {
try {
folderMonitor = new FolderMonitor(this, serverConfiguration);
folderMonitor.start();
} catch (IOException e) {
log.warning("Could not monitor the given folder: "
+ ser... | [
"private",
"void",
"startFolderMonitor",
"(",
")",
"{",
"if",
"(",
"serverConfiguration",
".",
"getAppFolderToMonitor",
"(",
")",
"!=",
"null",
")",
"{",
"try",
"{",
"folderMonitor",
"=",
"new",
"FolderMonitor",
"(",
"this",
",",
"serverConfiguration",
")",
";... | Applications folder. | [
"Applications",
"folder",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/SelendroidStandaloneDriver.java#L535-L545 |
53,382 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/InstrumentationArguments.java | InstrumentationArguments.readFile | private String readFile(File file) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(file));
String line = null;
StringBuilder sb = new StringBuilder();
String separator = System.getProperty("line.separator");
while ((line = reader.readLine()) != null... | java | private String readFile(File file) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(file));
String line = null;
StringBuilder sb = new StringBuilder();
String separator = System.getProperty("line.separator");
while ((line = reader.readLine()) != null... | [
"private",
"String",
"readFile",
"(",
"File",
"file",
")",
"{",
"BufferedReader",
"reader",
"=",
"null",
";",
"try",
"{",
"reader",
"=",
"new",
"BufferedReader",
"(",
"new",
"FileReader",
"(",
"file",
")",
")",
";",
"String",
"line",
"=",
"null",
";",
... | There's no nio on Android and it's not worth importing Apache commons | [
"There",
"s",
"no",
"nio",
"on",
"Android",
"and",
"it",
"s",
"not",
"worth",
"importing",
"Apache",
"commons"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/InstrumentationArguments.java#L76-L107 |
53,383 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/util/Intents.java | Intents.createStartActivityIntent | public static Intent createStartActivityIntent(Context context, String mainActivityName) {
Intent intent = new Intent();
intent.setClassName(context, mainActivityName);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
| Intent.FLAG_ACTIVITY_SI... | java | public static Intent createStartActivityIntent(Context context, String mainActivityName) {
Intent intent = new Intent();
intent.setClassName(context, mainActivityName);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
| Intent.FLAG_ACTIVITY_SI... | [
"public",
"static",
"Intent",
"createStartActivityIntent",
"(",
"Context",
"context",
",",
"String",
"mainActivityName",
")",
"{",
"Intent",
"intent",
"=",
"new",
"Intent",
"(",
")",
";",
"intent",
".",
"setClassName",
"(",
"context",
",",
"mainActivityName",
")... | Create an intent to start an activity, for both ServerInstrumentation and LightweightInstrumentation | [
"Create",
"an",
"intent",
"to",
"start",
"an",
"activity",
"for",
"both",
"ServerInstrumentation",
"and",
"LightweightInstrumentation"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/util/Intents.java#L14-L22 |
53,384 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/util/Intents.java | Intents.createUriIntent | public static Intent createUriIntent(String intentAction, String intentUri) {
if (intentAction == null) {
intentAction = Intent.ACTION_VIEW;
}
return new Intent(intentAction, Uri.parse(intentUri))
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_... | java | public static Intent createUriIntent(String intentAction, String intentUri) {
if (intentAction == null) {
intentAction = Intent.ACTION_VIEW;
}
return new Intent(intentAction, Uri.parse(intentUri))
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_REORDER_... | [
"public",
"static",
"Intent",
"createUriIntent",
"(",
"String",
"intentAction",
",",
"String",
"intentUri",
")",
"{",
"if",
"(",
"intentAction",
"==",
"null",
")",
"{",
"intentAction",
"=",
"Intent",
".",
"ACTION_VIEW",
";",
"}",
"return",
"new",
"Intent",
"... | Create an implicit intent based on the given URI. | [
"Create",
"an",
"implicit",
"intent",
"based",
"on",
"the",
"given",
"URI",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/util/Intents.java#L27-L34 |
53,385 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/util/Intents.java | Intents.createStartServiceIntent | public static Intent createStartServiceIntent(
Context context, String serviceClassName, String intentAction) {
Intent intent = intentAction != null ? new Intent(intentAction) : new Intent();
return intent.setClassName(context, serviceClassName);
} | java | public static Intent createStartServiceIntent(
Context context, String serviceClassName, String intentAction) {
Intent intent = intentAction != null ? new Intent(intentAction) : new Intent();
return intent.setClassName(context, serviceClassName);
} | [
"public",
"static",
"Intent",
"createStartServiceIntent",
"(",
"Context",
"context",
",",
"String",
"serviceClassName",
",",
"String",
"intentAction",
")",
"{",
"Intent",
"intent",
"=",
"intentAction",
"!=",
"null",
"?",
"new",
"Intent",
"(",
"intentAction",
")",
... | Create an Intent to start a service using the given class name and action. | [
"Create",
"an",
"Intent",
"to",
"start",
"a",
"service",
"using",
"the",
"given",
"class",
"name",
"and",
"action",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/util/Intents.java#L39-L43 |
53,386 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/model/SessionCookieManager.java | SessionCookieManager.getDomainsFromUrl | private List<String> getDomainsFromUrl(URL url) {
String host = url.getHost();
String[] paths = new String[] {};
if (url.getPath() != null) {
paths = url.getPath().split("/");
}
List<String> domains = new ArrayList<String>(paths.length + 1);
StringBuilder rela... | java | private List<String> getDomainsFromUrl(URL url) {
String host = url.getHost();
String[] paths = new String[] {};
if (url.getPath() != null) {
paths = url.getPath().split("/");
}
List<String> domains = new ArrayList<String>(paths.length + 1);
StringBuilder rela... | [
"private",
"List",
"<",
"String",
">",
"getDomainsFromUrl",
"(",
"URL",
"url",
")",
"{",
"String",
"host",
"=",
"url",
".",
"getHost",
"(",
")",
";",
"String",
"[",
"]",
"paths",
"=",
"new",
"String",
"[",
"]",
"{",
"}",
";",
"if",
"(",
"url",
".... | Gets the list of domains associated to a URL.
@param url
@return List of domains as strings | [
"Gets",
"the",
"list",
"of",
"domains",
"associated",
"to",
"a",
"URL",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/model/SessionCookieManager.java#L95-L111 |
53,387 | selendroid/selendroid | selendroid-server-common/src/main/java/io/selendroid/server/common/SelendroidResponse.java | SelendroidResponse.forCatchAllError | public static SelendroidResponse forCatchAllError(String sessionId, Throwable e) {
try {
return new SelendroidResponse(sessionId, StatusCode.UNKNOWN_ERROR.getCode(), e, CATCH_ALL_ERROR_MESSAGE_PREFIX);
} catch (JSONException err) {
return new SelendroidResponse(sessionId, StatusCode.UNKNOWN_ERROR.ge... | java | public static SelendroidResponse forCatchAllError(String sessionId, Throwable e) {
try {
return new SelendroidResponse(sessionId, StatusCode.UNKNOWN_ERROR.getCode(), e, CATCH_ALL_ERROR_MESSAGE_PREFIX);
} catch (JSONException err) {
return new SelendroidResponse(sessionId, StatusCode.UNKNOWN_ERROR.ge... | [
"public",
"static",
"SelendroidResponse",
"forCatchAllError",
"(",
"String",
"sessionId",
",",
"Throwable",
"e",
")",
"{",
"try",
"{",
"return",
"new",
"SelendroidResponse",
"(",
"sessionId",
",",
"StatusCode",
".",
"UNKNOWN_ERROR",
".",
"getCode",
"(",
")",
","... | It is currently hard to detect whether a test failed because of a legitimate
error by a developer or because something is going wrong in selendroid
internals. This response marks error responses from the server that indicate
something has gone wrong in the internals of selendroid. | [
"It",
"is",
"currently",
"hard",
"to",
"detect",
"whether",
"a",
"test",
"failed",
"because",
"of",
"a",
"legitimate",
"error",
"by",
"a",
"developer",
"or",
"because",
"something",
"is",
"going",
"wrong",
"in",
"selendroid",
"internals",
".",
"This",
"respo... | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server-common/src/main/java/io/selendroid/server/common/SelendroidResponse.java#L76-L82 |
53,388 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java | DeviceStore.release | public void release(AndroidDevice device, AndroidApp aut) {
log.info("Releasing device " + device);
if (devicesInUse.contains(device)) {
if (aut != null) {
// stop the app anyway - better in case people do use snapshots
try {
device.kill(aut);
} catch (Exception e) {
... | java | public void release(AndroidDevice device, AndroidApp aut) {
log.info("Releasing device " + device);
if (devicesInUse.contains(device)) {
if (aut != null) {
// stop the app anyway - better in case people do use snapshots
try {
device.kill(aut);
} catch (Exception e) {
... | [
"public",
"void",
"release",
"(",
"AndroidDevice",
"device",
",",
"AndroidApp",
"aut",
")",
"{",
"log",
".",
"info",
"(",
"\"Releasing device \"",
"+",
"device",
")",
";",
"if",
"(",
"devicesInUse",
".",
"contains",
"(",
"device",
")",
")",
"{",
"if",
"(... | After a test session a device should be released. That means id will be removed from the list
of devices in use and in case of an emulator it will be stopped.
@param device The device to release
@see {@link #findAndroidDevice(SelendroidCapabilities)} | [
"After",
"a",
"test",
"session",
"a",
"device",
"should",
"be",
"released",
".",
"That",
"means",
"id",
"will",
"be",
"removed",
"from",
"the",
"list",
"of",
"devices",
"in",
"use",
"and",
"in",
"case",
"of",
"an",
"emulator",
"it",
"will",
"be",
"stop... | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java#L85-L117 |
53,389 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java | DeviceStore.addDeviceToStore | protected synchronized void addDeviceToStore(AndroidDevice device) throws AndroidDeviceException {
if (androidDevices.containsKey(device.getTargetPlatform())) {
List<AndroidDevice> platformDevices = androidDevices.get(device.getTargetPlatform());
if (!platformDevices.contains(device)) {
platform... | java | protected synchronized void addDeviceToStore(AndroidDevice device) throws AndroidDeviceException {
if (androidDevices.containsKey(device.getTargetPlatform())) {
List<AndroidDevice> platformDevices = androidDevices.get(device.getTargetPlatform());
if (!platformDevices.contains(device)) {
platform... | [
"protected",
"synchronized",
"void",
"addDeviceToStore",
"(",
"AndroidDevice",
"device",
")",
"throws",
"AndroidDeviceException",
"{",
"if",
"(",
"androidDevices",
".",
"containsKey",
"(",
"device",
".",
"getTargetPlatform",
"(",
")",
")",
")",
"{",
"List",
"<",
... | Internal method to add an actual device to the store.
@param device The device to add.
@throws AndroidDeviceException | [
"Internal",
"method",
"to",
"add",
"an",
"actual",
"device",
"to",
"the",
"store",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/server/model/DeviceStore.java#L186-L195 |
53,390 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/android/WebViewKeySender.java | WebViewKeySender.send | @Override
public void send(final CharSequence text) {
final KeyCharacterMap characterMap = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);
long timeout =
System.currentTimeMillis()
+ serverInstrumentation.getAndroidWait().getTimeoutInMillis();
SelendroidLogger.info("Using time... | java | @Override
public void send(final CharSequence text) {
final KeyCharacterMap characterMap = KeyCharacterMap.load(KeyCharacterMap.VIRTUAL_KEYBOARD);
long timeout =
System.currentTimeMillis()
+ serverInstrumentation.getAndroidWait().getTimeoutInMillis();
SelendroidLogger.info("Using time... | [
"@",
"Override",
"public",
"void",
"send",
"(",
"final",
"CharSequence",
"text",
")",
"{",
"final",
"KeyCharacterMap",
"characterMap",
"=",
"KeyCharacterMap",
".",
"load",
"(",
"KeyCharacterMap",
".",
"VIRTUAL_KEYBOARD",
")",
";",
"long",
"timeout",
"=",
"System... | Sends key strokes to the given text to the element in focus within the webview.
Note: This assumes that the focus has been set before on the element at sake.
@param text | [
"Sends",
"key",
"strokes",
"to",
"the",
"given",
"text",
"to",
"the",
"element",
"in",
"focus",
"within",
"the",
"webview",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/android/WebViewKeySender.java#L28-L59 |
53,391 | selendroid/selendroid | selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java | SelendroidCapabilities.addBootstrapClass | public SelendroidCapabilities addBootstrapClass(String className) {
String currentClassNames = getBootstrapClassNames();
if (currentClassNames == null || currentClassNames.isEmpty()) {
setCapability(BOOTSTRAP_CLASS_NAMES, className);
} else {
setCapability(BOOTSTRAP_CLASS_NAMES, currentClassName... | java | public SelendroidCapabilities addBootstrapClass(String className) {
String currentClassNames = getBootstrapClassNames();
if (currentClassNames == null || currentClassNames.isEmpty()) {
setCapability(BOOTSTRAP_CLASS_NAMES, className);
} else {
setCapability(BOOTSTRAP_CLASS_NAMES, currentClassName... | [
"public",
"SelendroidCapabilities",
"addBootstrapClass",
"(",
"String",
"className",
")",
"{",
"String",
"currentClassNames",
"=",
"getBootstrapClassNames",
"(",
")",
";",
"if",
"(",
"currentClassNames",
"==",
"null",
"||",
"currentClassNames",
".",
"isEmpty",
"(",
... | Adds a class to run on app startup. Class names are stored as a string separated by commas. | [
"Adds",
"a",
"class",
"to",
"run",
"on",
"app",
"startup",
".",
"Class",
"names",
"are",
"stored",
"as",
"a",
"string",
"separated",
"by",
"commas",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java#L286-L294 |
53,392 | selendroid/selendroid | selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java | SelendroidCapabilities.getDefaultVersion | private String getDefaultVersion(Set<String> keys, String appName) {
SortedSet<String> listOfApps = new TreeSet<String>();
for (String key : keys) {
if (key.split(":")[0].contentEquals(appName)) {
listOfApps.add(key);
}
}
return listOfApps.size() > 0 ? listOfApps.last() : null;
} | java | private String getDefaultVersion(Set<String> keys, String appName) {
SortedSet<String> listOfApps = new TreeSet<String>();
for (String key : keys) {
if (key.split(":")[0].contentEquals(appName)) {
listOfApps.add(key);
}
}
return listOfApps.size() > 0 ? listOfApps.last() : null;
} | [
"private",
"String",
"getDefaultVersion",
"(",
"Set",
"<",
"String",
">",
"keys",
",",
"String",
"appName",
")",
"{",
"SortedSet",
"<",
"String",
">",
"listOfApps",
"=",
"new",
"TreeSet",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"String",
"key",
... | the latest version of the app. | [
"the",
"latest",
"version",
"of",
"the",
"app",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java#L475-L483 |
53,393 | selendroid/selendroid | selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java | SelendroidCapabilities.getBooleanCapability | private Boolean getBooleanCapability(String key) {
Object o = getRawCapabilities().get(key);
if (o == null) {
return null;
} else if (o instanceof Boolean) {
return (Boolean) o;
} else if (o instanceof String
&& ("true".equalsIgnoreCase((String) o)
|| "false".equalsIg... | java | private Boolean getBooleanCapability(String key) {
Object o = getRawCapabilities().get(key);
if (o == null) {
return null;
} else if (o instanceof Boolean) {
return (Boolean) o;
} else if (o instanceof String
&& ("true".equalsIgnoreCase((String) o)
|| "false".equalsIg... | [
"private",
"Boolean",
"getBooleanCapability",
"(",
"String",
"key",
")",
"{",
"Object",
"o",
"=",
"getRawCapabilities",
"(",
")",
".",
"get",
"(",
"key",
")",
";",
"if",
"(",
"o",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"if",
"(",... | throws exception if user didn't pass the capability as a boolean or String parsable as boolean | [
"throws",
"exception",
"if",
"user",
"didn",
"t",
"pass",
"the",
"capability",
"as",
"a",
"boolean",
"or",
"String",
"parsable",
"as",
"boolean"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java#L486-L501 |
53,394 | selendroid/selendroid | selendroid-server/src/main/java/io/selendroid/server/model/AndroidWebElement.java | AndroidWebElement.getLocation | public Point getLocation() {
JSONObject result =
(JSONObject) driver.executeAtom(AndroidAtoms.GET_TOP_LEFT_COORDINATES, null, this);
try {
return new Point(result.getInt("x"), result.getInt("y"));
} catch (JSONException e) {
throw new SelendroidException(e);
}
} | java | public Point getLocation() {
JSONObject result =
(JSONObject) driver.executeAtom(AndroidAtoms.GET_TOP_LEFT_COORDINATES, null, this);
try {
return new Point(result.getInt("x"), result.getInt("y"));
} catch (JSONException e) {
throw new SelendroidException(e);
}
} | [
"public",
"Point",
"getLocation",
"(",
")",
"{",
"JSONObject",
"result",
"=",
"(",
"JSONObject",
")",
"driver",
".",
"executeAtom",
"(",
"AndroidAtoms",
".",
"GET_TOP_LEFT_COORDINATES",
",",
"null",
",",
"this",
")",
";",
"try",
"{",
"return",
"new",
"Point"... | Where on the page is the top left-hand corner of the rendered element? it's part of
RenderedWebElement
@return A point, containing the location of the top left-hand corner of the element | [
"Where",
"on",
"the",
"page",
"is",
"the",
"top",
"left",
"-",
"hand",
"corner",
"of",
"the",
"rendered",
"element?",
"it",
"s",
"part",
"of",
"RenderedWebElement"
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-server/src/main/java/io/selendroid/server/model/AndroidWebElement.java#L182-L191 |
53,395 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/DefaultDeviceManager.java | DefaultDeviceManager.initializeAdbConnection | protected void initializeAdbConnection() {
// Get a device bridge instance. Initialize, create and restart.
try {
AndroidDebugBridge.init(false);
} catch (IllegalStateException e) {
if (!shouldKeepAdbAlive) {
log.log(
Level.WARNING,
"AndroidDebugBridge may have be... | java | protected void initializeAdbConnection() {
// Get a device bridge instance. Initialize, create and restart.
try {
AndroidDebugBridge.init(false);
} catch (IllegalStateException e) {
if (!shouldKeepAdbAlive) {
log.log(
Level.WARNING,
"AndroidDebugBridge may have be... | [
"protected",
"void",
"initializeAdbConnection",
"(",
")",
"{",
"// Get a device bridge instance. Initialize, create and restart.",
"try",
"{",
"AndroidDebugBridge",
".",
"init",
"(",
"false",
")",
";",
"}",
"catch",
"(",
"IllegalStateException",
"e",
")",
"{",
"if",
"... | Initializes the AndroidDebugBridge and registers the DefaultHardwareDeviceManager with the
AndroidDebugBridge device change listener. | [
"Initializes",
"the",
"AndroidDebugBridge",
"and",
"registers",
"the",
"DefaultHardwareDeviceManager",
"with",
"the",
"AndroidDebugBridge",
"device",
"change",
"listener",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/DefaultDeviceManager.java#L51-L96 |
53,396 | selendroid/selendroid | selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/DefaultDeviceManager.java | DefaultDeviceManager.shutdown | public void shutdown() {
log.info("Notifying device listener about shutdown");
for (HardwareDeviceListener listener : deviceListeners) {
for (AndroidDevice device : connectedDevices.values()) {
listener.onDeviceDisconnected(connectedDevices.get(device));
}
}
log.info("Removing Device... | java | public void shutdown() {
log.info("Notifying device listener about shutdown");
for (HardwareDeviceListener listener : deviceListeners) {
for (AndroidDevice device : connectedDevices.values()) {
listener.onDeviceDisconnected(connectedDevices.get(device));
}
}
log.info("Removing Device... | [
"public",
"void",
"shutdown",
"(",
")",
"{",
"log",
".",
"info",
"(",
"\"Notifying device listener about shutdown\"",
")",
";",
"for",
"(",
"HardwareDeviceListener",
"listener",
":",
"deviceListeners",
")",
"{",
"for",
"(",
"AndroidDevice",
"device",
":",
"connect... | Shutdown the AndroidDebugBridge and clean up all connected devices. | [
"Shutdown",
"the",
"AndroidDebugBridge",
"and",
"clean",
"up",
"all",
"connected",
"devices",
"."
] | a32c1a96c973b80c14a588b1075f084201f7fe94 | https://github.com/selendroid/selendroid/blob/a32c1a96c973b80c14a588b1075f084201f7fe94/selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/DefaultDeviceManager.java#L101-L116 |
53,397 | lopspower/CircularProgressBar | circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java | CircularProgressBar.onDraw | @Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawOval(rectF, backgroundPaint);
float realProgress = progress * DEFAULT_MAX_VALUE / progressMax;
float angle = (rightToLeft ? 360 : -360) * realProgress / 100;
canvas.drawArc(rectF, startAngle, an... | java | @Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.drawOval(rectF, backgroundPaint);
float realProgress = progress * DEFAULT_MAX_VALUE / progressMax;
float angle = (rightToLeft ? 360 : -360) * realProgress / 100;
canvas.drawArc(rectF, startAngle, an... | [
"@",
"Override",
"protected",
"void",
"onDraw",
"(",
"Canvas",
"canvas",
")",
"{",
"super",
".",
"onDraw",
"(",
"canvas",
")",
";",
"canvas",
".",
"drawOval",
"(",
"rectF",
",",
"backgroundPaint",
")",
";",
"float",
"realProgress",
"=",
"progress",
"*",
... | region Draw Method | [
"region",
"Draw",
"Method"
] | a805979677f76f6a441dfca2f85f3b01ae6a3e18 | https://github.com/lopspower/CircularProgressBar/blob/a805979677f76f6a441dfca2f85f3b01ae6a3e18/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java#L98-L105 |
53,398 | lopspower/CircularProgressBar | circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java | CircularProgressBar.onMeasure | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
final int height = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec);
final int width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec);
final int min = Math.min(width, height);
... | java | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
final int height = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec);
final int width = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec);
final int min = Math.min(width, height);
... | [
"@",
"Override",
"protected",
"void",
"onMeasure",
"(",
"int",
"widthMeasureSpec",
",",
"int",
"heightMeasureSpec",
")",
"{",
"final",
"int",
"height",
"=",
"getDefaultSize",
"(",
"getSuggestedMinimumHeight",
"(",
")",
",",
"heightMeasureSpec",
")",
";",
"final",
... | region Mesure Method | [
"region",
"Mesure",
"Method"
] | a805979677f76f6a441dfca2f85f3b01ae6a3e18 | https://github.com/lopspower/CircularProgressBar/blob/a805979677f76f6a441dfca2f85f3b01ae6a3e18/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java#L114-L122 |
53,399 | lopspower/CircularProgressBar | circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java | CircularProgressBar.setProgressWithAnimation | public void setProgressWithAnimation(float progress, int duration) {
if (progressAnimator != null) {
progressAnimator.cancel();
}
progressAnimator = ValueAnimator.ofFloat(this.progress, progress);
progressAnimator.setDuration(duration);
progressAnimator.addUpdateListe... | java | public void setProgressWithAnimation(float progress, int duration) {
if (progressAnimator != null) {
progressAnimator.cancel();
}
progressAnimator = ValueAnimator.ofFloat(this.progress, progress);
progressAnimator.setDuration(duration);
progressAnimator.addUpdateListe... | [
"public",
"void",
"setProgressWithAnimation",
"(",
"float",
"progress",
",",
"int",
"duration",
")",
"{",
"if",
"(",
"progressAnimator",
"!=",
"null",
")",
"{",
"progressAnimator",
".",
"cancel",
"(",
")",
";",
"}",
"progressAnimator",
"=",
"ValueAnimator",
".... | Set the progress with an animation.
@param progress The progress it should animate to it.
@param duration The length of the animation, in milliseconds. | [
"Set",
"the",
"progress",
"with",
"an",
"animation",
"."
] | a805979677f76f6a441dfca2f85f3b01ae6a3e18 | https://github.com/lopspower/CircularProgressBar/blob/a805979677f76f6a441dfca2f85f3b01ae6a3e18/circularprogressbar/src/main/java/com/mikhaellopez/circularprogressbar/CircularProgressBar.java#L211-L229 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.