MCPcopy Index your code
hub / github.com/Paroca72/sc-gauges

github.com/Paroca72/sc-gauges @3.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.6.0 ↗ · + Follow
508 symbols 1,219 edges 22 files 369 documented · 73%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sc-gauges

This is a library of gauges.

For see the documentation please refer to the link below

DOCS

IMPORTANT

The 3.x version it is NOT compatible with the previous versions.

Some implementation

Gauges Reality

The idea

The idea was to create a base (solid) class that help the user to design more quickly every type of gauges. Now the base is, still raw and improvable, for this every fork or help is welcome.

I would like to have some help to produce some examples of vary design of gauges, using the existing ScArcGauge and ScLinearGauge, or creating new classes specialized. If you start to use this framework you will note that the possibility is very infinite and can be funny to create and publishing new gauge design. If we can increase the number of the example the final users could be use it without the effort to create it from zero and customizing the example by the case.

Every suggestions are welcome.

Usage

via Gradle:

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

Add the dependency

dependencies {
    ...
    compile 'com.github.paroca72:sc-gauges:3.5.4'
}

License

 Copyright 2015 Samuele Carassai

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in  writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,  either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

Extension points exported contracts — how you extend this code

OnDrawRepetitionListener (Interface)
Define the draw listener interface [1 implementers]
library/src/main/java/com/sccomponents/gauges/library/ScRepetitions.java
OnDrawListener (Interface)
Define the draw listener interface [1 implementers]
library/src/main/java/com/sccomponents/gauges/library/ScGauge.java
OnDrawContourListener (Interface)
Define the draw listener interface [1 implementers]
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java
OnPropertyChangedListener (Interface)
Define the property change listener interface [1 implementers]
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java
OnPathTouchListener (Interface)
Generic event listener
library/src/main/java/com/sccomponents/gauges/library/ScDrawer.java

Core symbols most depended-on inside this repo

onPropertyChange
called by 30
library/src/main/java/com/sccomponents/gauges/library/ScCopier.java
getPainter
called by 28
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java
getLength
called by 22
library/src/main/java/com/sccomponents/gauges/library/ScPathMeasure.java
getMeasure
called by 20
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java
getAttributeId
called by 19
library/src/main/java/com/sccomponents/gauges/library/ScGauge.java
equals
called by 14
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java
y
called by 14
docs/assets/prettify.js
findFeatures
called by 11
library/src/main/java/com/sccomponents/gauges/library/ScDrawer.java

Shape

Method 363
Function 111
Class 20
Enum 8
Interface 6

Languages

Java78%
TypeScript22%

Modules by API surface

library/src/main/java/com/sccomponents/gauges/library/ScGauge.java69 symbols
library/src/main/java/com/sccomponents/gauges/library/ScFeature.java60 symbols
library/src/main/java/com/sccomponents/gauges/library/ScDrawer.java52 symbols
library/src/main/java/com/sccomponents/gauges/library/ScNotches.java38 symbols
library/src/main/java/com/sccomponents/gauges/library/ScWriter.java35 symbols
library/src/main/java/com/sccomponents/gauges/library/ScRepetitions.java32 symbols
docs/assets/doclava-developer-docs.js30 symbols
docs/assets/prettify.js26 symbols
library/src/main/java/com/sccomponents/gauges/library/ScPointer.java25 symbols
library/src/main/java/com/sccomponents/gauges/library/ScCopier.java25 symbols
docs/assets/jquery-resizable.min.js24 symbols
library/src/main/java/com/sccomponents/gauges/library/ScPathMeasure.java19 symbols

For agents

$ claude mcp add sc-gauges \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page